chore(menusurface): update to use local custom properties

PiperOrigin-RevId: 485660041
This commit is contained in:
Elizabeth Mitchell 2022-11-02 12:10:10 -07:00 committed by Copybara-Service
parent 70a9bde8d4
commit a1943be23a

View File

@ -48,11 +48,17 @@ $light-theme: (
$theme: theme.validate-theme-styles($light-theme, $theme);
$theme: theme.create-theme-vars($theme, $_custom-property-prefix);
& {
@each $token, $value in $theme {
--_#{$token}: #{$value};
}
}
@include elevation-theme.theme-styles(
(
shadow: map.get($theme, 'container-elevation-shadow'),
shadow: var(--_container-elevation-shadow),
)
);
border-radius: map.get($theme, 'container-shape');
border-radius: var(--_container-shape);
}