Skip to content

Commit 52c85e5

Browse files
authored
fix(material/expansion): move unthemable tokens to theme mixin (#27885)
Though these tokens are not currently affected by the theme, in the future they will be affected by the design system used for theming (M2 or M3)
1 parent 702ccbe commit 52c85e5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/material/expansion/_expansion-theme.scss

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
@use '../core/tokens/m2/mat/expansion' as tokens-mat-expansion;
77

88
@mixin base($theme) {
9-
// TODO(mmalerba): Move expansion panel base tokens here
9+
@include sass-utils.current-selector-or-root() {
10+
@include token-utils.create-token-values(
11+
tokens-mat-expansion.$prefix, tokens-mat-expansion.get-unthemable-tokens());
12+
}
1013
}
1114

1215
@mixin color($theme) {

src/material/expansion/expansion-panel.scss

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
@use '../core/style/elevation';
77

88
.mat-expansion-panel {
9-
@include token-utils.create-token-values(
10-
tokens-mat-expansion.$prefix, tokens-mat-expansion.get-unthemable-tokens());
119
@include elevation.overridable-elevation(2);
1210
box-sizing: content-box;
1311
display: block;

0 commit comments

Comments
 (0)