Skip to content

Commit 6c724c7

Browse files
authored
fix(material/snack-bar): Emit tokens under mixin root selector (#27667)
1 parent b3e4d57 commit 6c724c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@mixin color($config-or-theme) {
1717
$config: theming.get-color-config($config-or-theme);
1818

19-
.mat-mdc-snack-bar-container {
19+
@include sass-utils.current-selector-or-root() {
2020
@include mdc-snackbar-theme.theme(tokens-mdc-snack-bar.get-color-tokens($config));
2121
@include token-utils.create-token-values(
2222
tokens-mat-snack-bar.$prefix,
@@ -29,7 +29,7 @@
2929
$config: typography.private-typography-to-2018-config(
3030
theming.get-typography-config($config-or-theme));
3131

32-
.mat-mdc-snack-bar-container {
32+
@include sass-utils.current-selector-or-root() {
3333
@include mdc-snackbar-theme.theme(tokens-mdc-snack-bar.get-typography-tokens($config));
3434
}
3535
}

0 commit comments

Comments
 (0)