1
0
Fork 0
forked from srxl/akkoma-fe

small fix

This commit is contained in:
Henry Jameson 2020-01-16 21:59:06 +02:00
parent e070ec4b66
commit 8536f3cc32

View file

@ -163,8 +163,8 @@ export default {
)
if (!slotIsText) return acc
const { layer, variant } = slotIsBaseText ? { layer: 'bg' } : value
const opacitySlot = getOpacitySlot(SLOT_INHERITANCE[variant || layer])
const background = variant || layer
const opacitySlot = getOpacitySlot(SLOT_INHERITANCE[background])
const textColors = [
key,
...(background === 'bg' ? ['cRed', 'cGreen', 'cBlue', 'cOrange'] : [])