Skip to content

Commit efe8666

Browse files
committed
fix(material-experimental/mdc-snack-bar): increase the specificity of styles targeting the action buttons.
1 parent 9387234 commit efe8666

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
mdc-snackbar.$label-ink-color: $orig-label-ink-color;
3636
mdc-snackbar.$dismiss-ink-color: $orig-dismiss-ink-color;
3737

38-
// The extra level of nesting here is to increase the specificity.
38+
// Four classes is necessary to make it higher specificity than the mdc-button theme styles.
39+
// This ensures the correct styles will be applied regardless of the order te mixins are
40+
// @included.
3941
.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-actions .mdc-snackbar__action.mdc-snackbar__action {
4042
$is-dark-theme: map.get($config, is-dark);
4143
$accent: map.get($config, accent);

0 commit comments

Comments
 (0)