Skip to content

Commit 9387234

Browse files
committed
fix(material-experimental/mdc-snack-bar): increase the specificity of
styles targeting the action buttons. Currently the order of the button theme vs the snackbar theme matters, this will make the snackbar theme always take precedence
1 parent 87ab033 commit 9387234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material-experimental/mdc-snack-bar/_snack-bar-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
mdc-snackbar.$dismiss-ink-color: $orig-dismiss-ink-color;
3737

3838
// The extra level of nesting here is to increase the specificity.
39-
.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-actions .mdc-snackbar__action {
39+
.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-actions .mdc-snackbar__action.mdc-snackbar__action {
4040
$is-dark-theme: map.get($config, is-dark);
4141
$accent: map.get($config, accent);
4242
color: if($is-dark-theme, inherit, theming.get-color-from-palette($accent, text));

0 commit comments

Comments
 (0)