-
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(packages-type): fix custom properties breakpoint #8763
fix(packages-type): fix custom properties breakpoint #8763
Conversation
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 58c12f9 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/60ae6835826584000777aeb8 😎 Browse the preview: https://deploy-preview-8763--carbon-elements.netlify.app |
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.
🎉 👏🏻
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 58c12f9 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/60ae68355bca7400079e0365 😎 Browse the preview: https://deploy-preview-8763--carbon-components-react.netlify.app |
…ystem#8763) Co-authored-by: Scott Strubberg <sstrubberg@protonmail.com>
Closes #8668
We are removing the expected
breakpoints
property when custom properties are enabled since the default state for$fluid
is false. The bug was breaking type styles when custom properties are enabled.Testing
cd
packages/react
and in your terminal / command line setexport CARBON_REACT_STORYBOOK_USE_SASS_LOADER=true
*** don't forget to change this back after testing by running:
export CARBON_REACT_STORYBOOK_USE_SASS_LOADER=false
in the
packages --> react --> .storbyook --> .styles.scss
on line 12 add the following:$feature-flags: ( enable-css-custom-properties: true, );
To test for example accordion add the following css selector
.bx--accordion__title {
@include carbon--type-style('expressive-heading-05');
}
run storybook
you should see just like something below where the accordion title is receiving the correct type style while custom properties are enabled
in your terminal run:
export CARBON_REACT_STORYBOOK_USE_SASS_LOADER=false