Skip to content

Commit 9535454

Browse files
authored
fix(material/divider): move unthemable tokens to theme mixin (#27881)
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 f0697d9 commit 9535454

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/material/divider/_divider-theme.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
@use '../core/tokens/m2/mat/divider' as tokens-mat-divider;
66

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

1114
@mixin color($theme) {

src/material/divider/divider.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
@use '../core/tokens/token-utils';
22
@use '../core/tokens/m2/mat/divider' as tokens-mat-divider;
33

4-
54
$inset-margin: 80px;
65

76
.mat-divider {
8-
@include token-utils.create-token-values(
9-
tokens-mat-divider.$prefix, tokens-mat-divider.get-unthemable-tokens());
10-
117
display: block;
128
margin: 0;
139
border-top-style: solid;

0 commit comments

Comments
 (0)