Skip to content

Commit cd225d3

Browse files
author
Andrew Seguin
committed
fix(material/snack-bar): use inverse primary for button color
1 parent 25c31fd commit cd225d3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,12 @@
1212

1313
// Tokens that can be configured through Angular Material's color theming API.
1414
@function get-color-tokens($theme) {
15-
$is-dark: inspection.get-theme-type($theme) == dark;
1615
$system: m2-utils.get-system($theme);
1716

1817
@return (
1918
snack-bar-container-color: map.get($system, inverse-surface),
2019
snack-bar-supporting-text-color: map.get($system, inverse-on-surface),
21-
snack-bar-button-color:
22-
if(
23-
$is-dark,
24-
inspection.get-theme-color($theme, primary, 500),
25-
inspection.get-theme-color($theme, primary, 100)
26-
)
20+
snack-bar-button-color: map.get($system, inverse-primary),
2721
);
2822
}
2923

0 commit comments

Comments
 (0)