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(styles): emit correct values for component tokens in zones #11573

Merged
merged 2 commits into from
Jun 9, 2022

Conversation

joshblack
Copy link
Contributor

Closes #11550

This PR updates our zoning implementation to make sure that the correct values have been emitted for component tokens in zones. Previously, we were comparing component tokens to the current theme (theme.$theme) instead of the theme of the zone we were in.

Changelog

New

  • Add test for _zone.scss to capture component token use-case

Changed

  • Update _zone.scss implementation to match based on current theme of zone

Removed

Testing / Reviewing

  • Review the test and verify that it tests that the value of component tokens are correct in zones

@joshblack joshblack requested a review from a team as a code owner June 7, 2022 14:59
@netlify
Copy link

netlify bot commented Jun 7, 2022

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7d2cd06
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/62a10e615e660b00089d32b4
😎 Deploy Preview https://deploy-preview-11573--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jun 7, 2022

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 7d2cd06
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/62a10e6198177f0009857d59
😎 Deploy Preview https://deploy-preview-11573--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@kodiakhq kodiakhq bot merged commit 7f222a3 into carbon-design-system:main Jun 9, 2022
kennylam added a commit to kennylam/carbon that referenced this pull request Jul 30, 2024
…n-system#11573)

* Fixing display of invalid-text and warn-text

* chore(prettier): format code

---------

Co-authored-by: Kenny Lam <909118+kennylam@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Update component token exports to match current theme in zones
3 participants