fix(css): box-shadow none handling (#10445)

closes https://github.com/NativeScript/NativeScript/issues/10403
This commit is contained in:
Nathan Walker
2023-11-19 15:30:07 -08:00
committed by GitHub
parent 5b9d861fa3
commit 67440095f4
7 changed files with 20 additions and 33 deletions

View File

@ -37,11 +37,7 @@ export function parseCSSShorthand(value: string): {
const first = parts[0];
if (['', 'none', 'unset'].includes(first)) {
return {
inset: false,
color: undefined,
values: [],
};
return null;
} else {
const invalidColors = ['inset', 'unset'];
const inset = parts.includes('inset');