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(packages-type): fix custom properties breakpoint #8763

Merged
merged 3 commits into from
May 26, 2021
Merged

fix(packages-type): fix custom properties breakpoint #8763

merged 3 commits into from
May 26, 2021

Conversation

andreancardona
Copy link
Contributor

@andreancardona andreancardona commented May 25, 2021

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 set export 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

Screen Shot 2021-05-25 at 2 47 53 PM

@netlify
Copy link

netlify bot commented May 25, 2021

✔️ 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

Copy link
Member

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

🎉 👏🏻

@netlify
Copy link

netlify bot commented May 25, 2021

✔️ Deploy Preview for carbon-components-react ready!
Built without sensitive environment variables

🔨 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

@andreancardona andreancardona enabled auto-merge (squash) May 26, 2021 15:38
@andreancardona andreancardona merged commit 1014e32 into carbon-design-system:main May 26, 2021
@jnm2377 jnm2377 mentioned this pull request May 26, 2021
22 tasks
emyarod pushed a commit to emyarod/carbon that referenced this pull request Jun 10, 2021
…ystem#8763)

Co-authored-by: Scott Strubberg <sstrubberg@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@include carbon--type-style doesn't work with enable-css-custom-properties on
4 participants