Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: font weight bug fix (#267) #326

Merged
merged 6 commits into from
Nov 5, 2024
Merged

fix: font weight bug fix (#267) #326

merged 6 commits into from
Nov 5, 2024

Conversation

florin01hyma
Copy link
Contributor

-Made the font weight case insensitive;
-Extra checks for style and weight values, confusions cleared up in the code;
-font style and value are not both mandatory, it is fine if only one is specified;
-if font style is not provided, the style field will take the weight value;
-the bug from issue #267 is fixed.

Copy link

changeset-bot bot commented Nov 4, 2024

🦋 Changeset detected

Latest commit: 3c1d222

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tokens-studio/sd-transforms Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@jorenbroekema jorenbroekema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small stuff, and run npx changeset locally for a patch changelog entry, make sure to git add and commit that as well

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/transformFontWeight.ts Outdated Show resolved Hide resolved
src/transformFontWeight.ts Outdated Show resolved Hide resolved
.changeset/breezy-impalas-shout.md Outdated Show resolved Hide resolved
src/transformFontWeight.ts Outdated Show resolved Hide resolved
test/spec/transformFontWeights.spec.ts Show resolved Hide resolved
@jorenbroekema jorenbroekema merged commit 26cf7f9 into main Nov 5, 2024
2 checks passed
@jorenbroekema jorenbroekema deleted the font-weight-fix branch November 5, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants