Skip to content

Commit ccedaa3

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) BREAKING CHANGE: There are new styles emitted by mat.expansion-theme that are not emitted by any of: mat.expansion-color, mat.expansion-typography, mat.expansion-density. If you rely on the partial mixins only and don't call mat.expansion-theme, you can add mat.expansion-base to get the missing styles.
1 parent 702ccbe commit ccedaa3

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)