small fix

This commit is contained in:
Henry Jameson 2020-01-16 21:59:06 +02:00
parent e070ec4b66
commit 8536f3cc32
1 changed files with 1 additions and 1 deletions

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'] : [])