chore: box shadow updates (#9220)

This commit is contained in:
William Tjondrosuharto
2021-02-20 13:39:06 +07:00
committed by Nathan Walker
parent 726ef9fd8f
commit 207edb94f4
6 changed files with 51 additions and 15 deletions

View File

@@ -1280,7 +1280,8 @@ const boxShadowProperty = new CssProperty<Style, CSSShadow>({
name: 'boxShadow',
cssName: 'box-shadow',
valueChanged: (target, oldValue, newValue) => {
target.boxShadow = newValue;
const background = target.backgroundInternal.withBoxShadow(newValue);
target.backgroundInternal = background;
},
valueConverter: (value) => {
return parseCSSShadow(value);