Skip to content

Commit

Permalink
fix(material/divider): move unthemable tokens to theme mixin (#27881)
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)

(cherry picked from commit 9535454)
  • Loading branch information
mmalerba committed Oct 19, 2023
1 parent 34d6258 commit c6fa905
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/material/divider/_divider-theme.scss
Expand Up @@ -5,7 +5,10 @@
@use '../core/tokens/m2/mat/divider' as tokens-mat-divider;

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

@mixin color($theme) {
Expand Down
4 changes: 0 additions & 4 deletions src/material/divider/divider.scss
@@ -1,13 +1,9 @@
@use '../core/tokens/token-utils';
@use '../core/tokens/m2/mat/divider' as tokens-mat-divider;


$inset-margin: 80px;

.mat-divider {
@include token-utils.create-token-values(
tokens-mat-divider.$prefix, tokens-mat-divider.get-unthemable-tokens());

display: block;
margin: 0;
border-top-style: solid;
Expand Down

0 comments on commit c6fa905

Please sign in to comment.