-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix(exporter-tokens): Camel case invariant Xlarge and Xsmall strings #1932
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for spirit-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for spirit-design-system-storybook canceled.
|
// This will not work in this implementation: `size-xxlarge`-> `sizeXXlarge` | ||
// ['size-xxlarge', 'sizeXXLarge'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How difficult is it to implement? Isn't it all about matching xx
first and then trying x
?
Because I think anyone can extend the scales anytime, so we should be ready for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a big deal, however, this is some kind of exception and @crishpeen has doubts about this change.
Description
Converts strings like
heading-xsmall
toheadingXSmall
camel case. This is applied only for characters going after theX
so it can have some drawbacks.For instance
xxlarge
will be transformed to theXXlarge
. We can also address this problem. But this should be only applied to the T-shirt sizes.Additional context
Issue reference