Convert 'none' to transparent shadow

To make shadow comma-separated list safe.
This commit is contained in:
Adam Wathan 2020-11-09 19:10:34 -05:00
parent 3cc2f70bfe
commit 4eecc2751c
5 changed files with 97 additions and 97 deletions

View file

@ -8,7 +8,7 @@ export default function () {
return [
nameClass('shadow', modifier),
{
'--box-shadow': value,
'--box-shadow': value === 'none' ? '0 0 #0000' : value,
'box-shadow': 'var(--box-shadow)',
},
]