Skip to content

Commit

Permalink
fix(material/expansion): move unthemable tokens to theme mixin
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
mmalerba committed Oct 14, 2023
1 parent 702ccbe commit bf4a042
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/material/expansion/_expansion-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
@use '../core/tokens/m2/mat/expansion' as tokens-mat-expansion;

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

@mixin color($theme) {
Expand Down
2 changes: 0 additions & 2 deletions src/material/expansion/expansion-panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
@use '../core/style/elevation';

.mat-expansion-panel {
@include token-utils.create-token-values(
tokens-mat-expansion.$prefix, tokens-mat-expansion.get-unthemable-tokens());
@include elevation.overridable-elevation(2);
box-sizing: content-box;
display: block;
Expand Down

0 comments on commit bf4a042

Please sign in to comment.