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 24, 2024
1 parent 94a0834 commit a59d053
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/material/core/tokens/_m3-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,10 @@
}

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

@if $use-sys-vars {
@return (
'background': var(--sys-background),
Expand Down Expand Up @@ -1066,7 +1070,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 @@ -1084,9 +1088,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($use-sys-vars, $ref) {
Expand Down

0 comments on commit a59d053

Please sign in to comment.