mirror of
https://github.com/material-components/material-web.git
synced 2024-10-27 14:07:17 +03:00
fix(sass): allow resolved shape tokens to be overridden
PiperOrigin-RevId: 420858748
This commit is contained in:
parent
339d97074b
commit
6d906caad7
@ -37,14 +37,15 @@
|
|||||||
@each $token in $shape-tokens {
|
@each $token in $shape-tokens {
|
||||||
$shape-theme: meta.call($resolver, $shape: map.get($theme, $token));
|
$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: map.merge(
|
||||||
$theme,
|
|
||||||
(
|
(
|
||||||
'#{$token}-start-start': map.get($shape-theme, start-start),
|
'#{$token}-start-start': map.get($shape-theme, start-start),
|
||||||
'#{$token}-start-end': map.get($shape-theme, start-end),
|
'#{$token}-start-end': map.get($shape-theme, start-end),
|
||||||
'#{$token}-end-end': map.get($shape-theme, end-end),
|
'#{$token}-end-end': map.get($shape-theme, end-end),
|
||||||
'#{$token}-end-start': map.get($shape-theme, end-start),
|
'#{$token}-end-start': map.get($shape-theme, end-start),
|
||||||
)
|
),
|
||||||
|
$theme
|
||||||
);
|
);
|
||||||
|
|
||||||
$theme: map.remove($theme, $token);
|
$theme: map.remove($theme, $token);
|
||||||
|
Loading…
Reference in New Issue
Block a user