Skip to content

Commit cfb97d1

Browse files
Andrew Seguinandrewseguin
authored andcommitted
fix(material/snack-bar): use inverse primary for button color
1 parent 8860e65 commit cfb97d1

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/material/snack-bar/_m2-snack-bar.scss

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,14 @@
66
@function get-tokens($theme) {
77
$system: m2-utils.get-system($theme);
88

9-
// TODO: Use system colors instead of checking theme type and using primary hues
10-
$snack-bar-button-color: map.get($system, inverse-primary);
11-
@if (meta.type-of($theme) == map and map.get($theme, color)) {
12-
$is-dark: inspection.get-theme-type($theme) == dark;
13-
$snack-bar-button-color: if(
14-
$is-dark,
15-
inspection.get-theme-color($theme, primary, 500),
16-
inspection.get-theme-color($theme, primary, 100)
17-
);
18-
}
19-
209
@return (
2110
base: (
2211
snack-bar-container-shape: 4px,
2312
),
2413
color: (
2514
snack-bar-container-color: map.get($system, inverse-surface),
2615
snack-bar-supporting-text-color: map.get($system, inverse-on-surface),
27-
snack-bar-button-color: $snack-bar-button-color
16+
snack-bar-button-color: map.get($system, inverse-primary)
2817
),
2918
typography: (
3019
snack-bar-supporting-text-font: map.get($system, body-medium-font),

0 commit comments

Comments
 (0)