Skip to content

Commit a4fc0a0

Browse files
committed
fix(material/theming): remove shadow css variable (#28953)
(cherry picked from commit 940f840)
1 parent a9a0ba5 commit a4fc0a0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/material/core/tokens/_m3-tokens.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,10 @@
10311031
}
10321032

10331033
@function _get-sys-color($type, $ref) {
1034+
$mdc-sys-color: if($type == dark,
1035+
mdc-tokens.md-sys-color-values-dark($ref),
1036+
mdc-tokens.md-sys-color-values-light($ref));
1037+
10341038
@if (sass-utils.$use-system-color-variables) {
10351039
@return (
10361040
'background': var(--sys-background),
@@ -1067,7 +1071,7 @@
10671071
'secondary-container': var(--sys-secondary-container),
10681072
'secondary-fixed': var(--sys-secondary-fixed),
10691073
'secondary-fixed-dim': var(--sys-secondary-fixed-dim),
1070-
'shadow': var(--sys-shadow),
1074+
'shadow': map.get($mdc-sys-color, shadow),
10711075
'surface': var(--sys-surface),
10721076
'surface-bright': var(--sys-surface-bright),
10731077
'surface-container': var(--sys-surface-container),
@@ -1085,9 +1089,7 @@
10851089
);
10861090
}
10871091

1088-
@return if($type == dark,
1089-
mdc-tokens.md-sys-color-values-dark($ref),
1090-
mdc-tokens.md-sys-color-values-light($ref));
1092+
@return $mdc-sys-color;
10911093
}
10921094

10931095
@function _get-sys-typeface($ref) {

0 commit comments

Comments
 (0)