Skip to content

Commit 263c920

Browse files
authored
fix(box-shadow): support for 'none' (#9418)
1 parent 4ef49f2 commit 263c920

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/core/ui/styling/css-shadow.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ export function parseCSSShadow(value: string): CSSShadow {
4040
const first = parts[0];
4141
const last = parts[parts.length - 1];
4242

43+
if (first === 'none') {
44+
return null;
45+
}
46+
4347
let colorRaw = 'black';
4448
if (!isLength(first) && first !== 'inset') {
4549
colorRaw = first;

0 commit comments

Comments
 (0)