-
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
Scoping SCSS under a different body class breaks some components #1711
Comments
cc @alisonjoseph did you run into this issue with bringing in v10 and core components in the same page? |
I wasn't able to just use a wrapper class, I had to actually use a different prefix when using v9/v10 together on our current site. https://www.carbondesignsystem.com/experimental/breadcrumb/code |
We considered swapping out the prefix, but that would have been a pretty massive change. Definitly would have side-stepped the issue though. |
Selector scoping is not a perfect approach, though it works to some extent, and it's the only viable way until Shadow DOM is supported by all browsers we support. That said, we expect some of the glitches that @cal-smith pointed out. If we see some of those can be solved by |
For sure! I'll make some time to look into it closer and see if there's a reasonable fix |
So I seem to have narrowed it down: if .#{$prefix}--structured-list--selection &:hover:not(.#{$prefix}--structured-list-row--header-row) becomes .bx--structured-list--selection .carbon .bx--structured-list-row:hover:not(.bx--structured-list-row--header-row) instead of .carbon .bx--structured-list--selection .bx--structured-list-row:hover:not(.bx--structured-list-row--header-row) This isn't an issue for most I'll open a PR for the 3 cases I'm aware of right now |
🎉 This issue has been resolved in version 9.70.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…gn-system#1711) * chore(build): supporting experimental for deploy preview * chore(storybook): center buttons in launch page
To preview experimental carbon in
carbon-components-angular
we generate twopreview.scss
files and import carbon under two different containing classes (.carbon
and.experimental
).As expected some tweaks are required to make this work (manually scoping the reset and fonts for example) ... but strangely enough some component styles also break (mainly padding/margins) ... see these lines for what I mean. It doesn't appear to be an issue for X, but it's definitely unexpected behavior.
The text was updated successfully, but these errors were encountered: