Skip to content

Commit

Permalink
fix(notification): background-warning-token to use yellow10 (#17621)
Browse files Browse the repository at this point in the history
  • Loading branch information
ariellalgilmore authored Oct 1, 2024
1 parent a43779e commit c0b1af5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
21 changes: 3 additions & 18 deletions packages/styles/scss/components/notification/_tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,30 +84,15 @@ $notification-background-info: (
) !default;

$notification-background-warning: (
fallback:
color.mix(
map.get(notification.$color-map, yellow-30),
map.get(notification.$color-map, white-0),
15%
),
fallback: map.get(notification.$notification-background-warning, white-theme),
values: (
(
theme: themes.$white,
value:
color.mix(
map.get(notification.$color-map, yellow-30),
map.get(notification.$color-map, white-0),
15%
),
value: map.get(notification.$notification-background-warning, white-theme),
),
(
theme: themes.$g10,
value:
color.mix(
map.get(notification.$color-map, yellow-30),
map.get(notification.$color-map, white-0),
15%
),
value: map.get(notification.$notification-background-warning, g-10),
),
(
theme: themes.$g90,
Expand Down
11 changes: 3 additions & 8 deletions packages/themes/src/component-tokens/notification/tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
gray90,
green10,
blue10,
yellow30,
yellow10,
white0,
} from '@carbon/colors';
import {
Expand Down Expand Up @@ -50,14 +50,9 @@ export const notificationBackgroundInfo = {
g100: gray90,
};

export const colorMap = {
yellow30,
white0,
};

export const notificationBackgroundWarning = {
whiteTheme: colorMap,
g10: colorMap,
whiteTheme: yellow10,
g10: yellow10,
g90: gray80,
g100: gray90,
};
Expand Down

0 comments on commit c0b1af5

Please sign in to comment.