Skip to content

Commit bf4a042

Browse files
committed
fix(material/expansion): move unthemable tokens to theme mixin
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 bf4a042

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/material/expansion/_expansion-theme.scss

Lines changed: 4 additions & 1 deletion
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

Lines changed: 0 additions & 2 deletions
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)