-
Notifications
You must be signed in to change notification settings - Fork 144
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(useravatar): variable change #6856
fix(useravatar): variable change #6856
Conversation
✅ Deploy Preview for carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ibm-products-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6856 +/- ##
=======================================
Coverage 81.31% 81.31%
=======================================
Files 397 399 +2
Lines 12959 12965 +6
Branches 4261 4262 +1
=======================================
+ Hits 10537 10543 +6
Misses 2422 2422
|
@@ -83,8 +83,8 @@ $sizes: ( | |||
@mixin setDarkBg($order, $color) { | |||
.#{$carbon-prefix}--g90 .#{$block-class}--#{$order}, | |||
.#{$carbon-prefix}--g100 .#{$block-class}--#{$order}, | |||
[storybook-carbon-theme='g90'] .#{$block-class}--#{$order}, | |||
[storybook-carbon-theme='g100'] .#{$block-class}--#{$order} { | |||
[data-carbon-theme='g90'] .#{$block-class}--#{$order}, |
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.
These styles will be applied to both versions of the UserAvatar component (react and web component). We also should update our web component storybook to use the data-carbon-theme
as the attribute controlling the theming.
The two files to update for that are
packages/ibm-products-web-components/.storybook/preview.ts
and
packages/ibm-products-web-components/.storybook/container.scss
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.
didn't think of this. good call!
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.
hey @matthewgallo , @davidmenendez Thanks for reviewing! I noticed that some other files are also using storybook-carbon-theme, so I updated those files too.
config/storybook-addon-carbon-theme/README.md
config/storybook-addon-carbon-theme/src/decorators/withCarbonTheme.js
packages/core/.storybook/index.scss
-> only comment change
2e6fc2b
Closes #6854
I noticed this while working on user avatar web components.
The root cause of issue is that the storybook theme variable is changed from storybook-carbon-theme to data-carbon-theme.
With wrapper it is working fine.
What did you change? packages/ibm-products-styles/src/components/UserAvatar/_user-avatar.scss
How did you test and verify your work? storybook