Skip to content

Commit a59d053

Browse files
committed
fix(material/theming): remove shadow css variable
1 parent 94a0834 commit a59d053

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
@@ -1030,6 +1030,10 @@
10301030
}
10311031

10321032
@function _get-sys-color($type, $use-sys-vars, $ref) {
1033+
$mdc-sys-color: if($type == dark,
1034+
mdc-tokens.md-sys-color-values-dark($ref),
1035+
mdc-tokens.md-sys-color-values-light($ref));
1036+
10331037
@if $use-sys-vars {
10341038
@return (
10351039
'background': var(--sys-background),
@@ -1066,7 +1070,7 @@
10661070
'secondary-container': var(--sys-secondary-container),
10671071
'secondary-fixed': var(--sys-secondary-fixed),
10681072
'secondary-fixed-dim': var(--sys-secondary-fixed-dim),
1069-
'shadow': var(--sys-shadow),
1073+
'shadow': map.get($mdc-sys-color, shadow),
10701074
'surface': var(--sys-surface),
10711075
'surface-bright': var(--sys-surface-bright),
10721076
'surface-container': var(--sys-surface-container),
@@ -1084,9 +1088,7 @@
10841088
);
10851089
}
10861090

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

10921094
@function _get-sys-typeface($use-sys-vars, $ref) {

0 commit comments

Comments
 (0)