-
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
feat(classNames): move classNames to outer wrapper #9491
feat(classNames): move classNames to outer wrapper #9491
Conversation
❌ Deploy Preview for carbon-react-next failed. 🔨 Explore the source changes: 1e40e6b 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/613b3bf8e393060007a55192 |
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 1e40e6b 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/613b3bf854eb7c000736b0e2 😎 Browse the preview: https://deploy-preview-9491--carbon-elements.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 1e40e6b 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/613b3bf83903b0000841d099 😎 Browse the preview: https://deploy-preview-9491--carbon-components-react.netlify.app |
43fa8f1
to
706409f
Compare
ca082ae
to
ce4ec25
Compare
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.
Tested the component stories and they're working as expected! 🎉 🎉 🔥
963eb3e
to
f82a3aa
Compare
bump @joshblack when you have a chance 👍🏻 |
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.
So sorry about the delay! Looks great 👀
f82a3aa
to
dd12afb
Compare
Refs #9465
Refs #9502
Closes #5853
Uses the
feature-flags
package to move theclassName
prop to the outer wrapper.Changelog
New
className
prop to the outermost wrapper so that all elements inside are targetable via cssChanged
className
prop was being added inside an element, it now returns null when the V11 feature flag is enabled. Instead, it is placed on the outer wrapperTesting / Reviewing
Test the following components, which each have a test story that will be removed before merging:
Ensure
className
is placed on the outer wrapper if wrapped in theFeatureFlag
element.className
should remain in the same spot otherwise