-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(column): remove percentage character only if present #15312
Conversation
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Thanks for the fix!
I'm personally still on the fence about these percentage classes. 😅 We only kind of "soft-support" them - I think there's only classes for 25%, 50%, 75%, 100%? It was a new idea added in the initial CSSGrid implementation that IIRC we didn't have previously with FlexGrid. Anyway, I'm glad someone is using them, and appreciate you submitting this fix!
@tay1orjones I am actually not using the percentage classes in any designs and did not know they exist. 😅 I came across this when I was prototyping without TypeScript for a change and did not remember that the type should be |
…gn-system#15312) Co-authored-by: Guilherme Datilio Ribeiro <[email protected]>
Closes #15311
See issue for details. Currently, if the user passes
md="8"
it will generate the following css classname:cds--md:col-span-
. Passing inlg="16"
will result tocds--lg:col-span-1
.Changelog
Changed
Testing / Reviewing