Skip to content
Snippets Groups Projects
Commit 8536f3cc authored by HJ's avatar HJ :fire:
Browse files

small fix

parent e070ec4b
No related branches found
No related tags found
No related merge requests found
......@@ -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'] : [])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment