-
Notifications
You must be signed in to change notification settings - Fork 185
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
Colors are missing when importing charts/styles/styles.scss #866
Comments
@kgibb can you provide more details about how to produce this issue? Thank you. |
I've just forked a codepen sample. Updated description with the link. |
I am aware it's working when pulling in the built out CSS. I am using Fixing the |
I've just downloaded the sandbox and got it working. Seems like your imports are the issue here Here's what worked for me: @import "~@carbon/themes/scss/themes";
$carbon--theme: $carbon--theme--g10;
@import "~@carbon/charts/styles/styles.scss";
|
The chart styles are resolved in the remote sandbox without the tilde, it's just the I've created a Storybook sample using |
Storybook is a bit weird. When importing the colors module manually everything works... Eitherway, I've added the global flag |
charts version:
0.40.11
VanillaIssue description
Colors are missing when importing
charts/styles/styles.scss
SCSS file directly.Using
[email protected]
.Screenshot or recording
carbon-charts/packages/core/src/styles/colors.scss
Lines 275 to 280 in 27e1725
The above block should use the
!global
flag to update the global scope$color-map
.carbon-charts/packages/core/src/styles/colors.scss
Line 250 in 27e1725
Example: https://codesandbox.io/s/carbon-chart-missing-colors-2jgh2
The text was updated successfully, but these errors were encountered: