From c6fa905dd489b7a1b66c8a91efd68cdc07efed86 Mon Sep 17 00:00:00 2001 From: Miles Malerba Date: Thu, 19 Oct 2023 04:31:25 +0000 Subject: [PATCH] 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) (cherry picked from commit 9535454a9063f76aba3b21e69cda7337f829b224) --- src/material/divider/_divider-theme.scss | 5 ++++- src/material/divider/divider.scss | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/material/divider/_divider-theme.scss b/src/material/divider/_divider-theme.scss index f32c85b0a728..a05ce9b853ba 100644 --- a/src/material/divider/_divider-theme.scss +++ b/src/material/divider/_divider-theme.scss @@ -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) { diff --git a/src/material/divider/divider.scss b/src/material/divider/divider.scss index 3b0b66f252b5..e23890740e9c 100644 --- a/src/material/divider/divider.scss +++ b/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;