fix shadow control misbehaving in style tab
This commit is contained in:
parent
f4d29b5d5e
commit
d772f6cfeb
7 changed files with 83 additions and 31 deletions
|
|
@ -28,7 +28,7 @@ export const deserializeShadow = string => {
|
|||
if (string.startsWith('$') || string.startsWith('--')) {
|
||||
return string
|
||||
} else {
|
||||
throw new Error(`Invalid shadow definition: ${string}`)
|
||||
throw new Error(`Invalid shadow definition: '${string}'`)
|
||||
}
|
||||
} else {
|
||||
const numeric = new Set(['x', 'y', 'blur', 'spread', 'alpha'])
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ const components = {
|
|||
ChatMessage: null
|
||||
}
|
||||
|
||||
const findShadow = (shadows, { dynamicVars, staticVars }) => {
|
||||
export const findShadow = (shadows, { dynamicVars, staticVars }) => {
|
||||
return (shadows || []).map(shadow => {
|
||||
let targetShadow
|
||||
if (typeof shadow === 'string') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue