Skip to content

Commit

Permalink
fix(material-experimental/mdc-snack-bar): simple snack button should …
Browse files Browse the repository at this point in the history
…be accent (#21384)

(cherry picked from commit 9f5cfbd)
  • Loading branch information
andrewseguin authored and annieyw committed Jan 9, 2021
1 parent 97aac4e commit 8e57fc8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/material-experimental/mdc-snack-bar/_snack-bar-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
$mdc-snackbar-fill-color: $orig-mdc-snackbar-fill-color !global;
$mdc-snackbar-label-ink-color: $orig-mdc-snackbar-label-ink-color !global;
$mdc-snackbar-dismiss-ink-color: $orig-mdc-snackbar-dismiss-ink-color !global;

.mat-mdc-simple-snack-bar .mdc-snackbar__action {
$is-dark-theme: map-get($config, is-dark);
$accent: map-get($config, accent);
color: if($is-dark-theme, inherit, mat-color($accent, text));
}
}

@mixin mat-mdc-snack-bar-typography($config-or-theme) {
Expand Down

0 comments on commit 8e57fc8

Please sign in to comment.