fix(sass): allow resolved shape tokens to be overridden

PiperOrigin-RevId: 420858748
This commit is contained in:
Liz Mitchell 2022-01-10 14:34:20 -08:00 committed by Copybara-Service
parent 339d97074b
commit 6d906caad7

View File

@ -37,14 +37,15 @@
@each $token in $shape-tokens {
$shape-theme: meta.call($resolver, $shape: map.get($theme, $token));
// Add resolved values, but allow $theme to override the results if needed.
$theme: map.merge(
$theme,
(
'#{$token}-start-start': map.get($shape-theme, start-start),
'#{$token}-start-end': map.get($shape-theme, start-end),
'#{$token}-end-end': map.get($shape-theme, end-end),
'#{$token}-end-start': map.get($shape-theme, end-start),
)
),
$theme
);
$theme: map.remove($theme, $token);