Skip to content

Commit

Permalink
fix(material/theming): remove shadow css variable
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnermaciel committed Apr 25, 2024
1 parent e2bfb91 commit d24cc7d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/material/core/tokens/_m3-tokens.scss
Expand Up @@ -1031,6 +1031,10 @@
}

@function _get-sys-color($type, $ref) {
$mdc-sys-color: if($type == dark,
mdc-tokens.md-sys-color-values-dark($ref),
mdc-tokens.md-sys-color-values-light($ref));

@if (sass-utils.$use-system-color-variables) {
@return (
'background': var(--sys-background),
Expand Down Expand Up @@ -1067,7 +1071,7 @@
'secondary-container': var(--sys-secondary-container),
'secondary-fixed': var(--sys-secondary-fixed),
'secondary-fixed-dim': var(--sys-secondary-fixed-dim),
'shadow': var(--sys-shadow),
'shadow': map.get($mdc-sys-color, shadow),
'surface': var(--sys-surface),
'surface-bright': var(--sys-surface-bright),
'surface-container': var(--sys-surface-container),
Expand All @@ -1085,9 +1089,7 @@
);
}

@return if($type == dark,
mdc-tokens.md-sys-color-values-dark($ref),
mdc-tokens.md-sys-color-values-light($ref));
@return $mdc-sys-color;
}

@function _get-sys-typeface($ref) {
Expand Down

0 comments on commit d24cc7d

Please sign in to comment.