-
Help! My InlineNotification looks like this in dark mode |
Beta Was this translation helpful? Give feedback.
Answered by
tw15egan
Mar 31, 2021
Replies: 1 comment
-
Based on an update in #7808, Notifications use the $feature-flags: (
enable-css-custom-properties: true,
);
@import '~carbon-components/scss/globals/scss/theme';
@import '~carbon-components/scss/globals/scss/component-tokens';
@import '~carbon-components/src/components/tag/tag';
@import '~carbon-components/src/components/notification/notification';
:root {
@include carbon--theme($carbon--theme--g100, true) {
@include emit-component-tokens($tag-colors);
@include emit-component-tokens($notification-colors);
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tw15egan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on an update in #7808, Notifications use the
component-token
approach. If you are enabling CSS custom properties, you will need to import thetheme
andcomponent-token
files before your component imports, like so: