Skip to content

Commit e1cf284

Browse files
authoredMar 19, 2025
fix(multiple): avoid repeating selectors in m3 themes (#30645)
1 parent fb6a38f commit e1cf284

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+322
-291
lines changed
 

‎src/dev-app/theme-m3.scss

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ html {
3535
color-scheme: light;
3636
body:not(.demo-experimental-theme) {
3737
@include mat.all-component-themes($light-theme);
38+
@include mat.checkbox-overrides((
39+
disabled-label-color: orange,
40+
label-text-color: red,
41+
));
3842
@include mat.system-level-colors($light-theme);
3943
@include mat.system-level-typography($light-theme);
4044
// TODO(mmalerba): Support M3 for experimental components.

‎src/material/autocomplete/_autocomplete-theme.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
1313
} @else {
1414
@include sass-utils.current-selector-or-root() {
15-
@include token-utils.create-token-values(
15+
@include token-utils.create-token-values-mixed(
1616
tokens-mat-autocomplete.$prefix,
1717
tokens-mat-autocomplete.get-unthemable-tokens()
1818
);
@@ -25,7 +25,7 @@
2525
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
2626
} @else {
2727
@include sass-utils.current-selector-or-root() {
28-
@include token-utils.create-token-values(
28+
@include token-utils.create-token-values-mixed(
2929
tokens-mat-autocomplete.$prefix,
3030
tokens-mat-autocomplete.get-color-tokens($theme)
3131
);
@@ -38,7 +38,7 @@
3838
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
3939
} @else {
4040
@include sass-utils.current-selector-or-root() {
41-
@include token-utils.create-token-values(
41+
@include token-utils.create-token-values-mixed(
4242
tokens-mat-autocomplete.$prefix,
4343
tokens-mat-autocomplete.get-typography-tokens($theme)
4444
);
@@ -51,7 +51,7 @@
5151
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
5252
} @else {
5353
@include sass-utils.current-selector-or-root() {
54-
@include token-utils.create-token-values(
54+
@include token-utils.create-token-values-mixed(
5555
tokens-mat-autocomplete.$prefix,
5656
tokens-mat-autocomplete.get-density-tokens($theme)
5757
);

0 commit comments

Comments
 (0)
Failed to load comments.