mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
fix(box-shadow): support for 'none' (#9418)
This commit is contained in:
@ -40,6 +40,10 @@ export function parseCSSShadow(value: string): CSSShadow {
|
|||||||
const first = parts[0];
|
const first = parts[0];
|
||||||
const last = parts[parts.length - 1];
|
const last = parts[parts.length - 1];
|
||||||
|
|
||||||
|
if (first === 'none') {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
let colorRaw = 'black';
|
let colorRaw = 'black';
|
||||||
if (!isLength(first) && first !== 'inset') {
|
if (!isLength(first) && first !== 'inset') {
|
||||||
colorRaw = first;
|
colorRaw = first;
|
||||||
|
Reference in New Issue
Block a user