aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2020-01-16 21:59:06 +0200
committerHenry Jameson <me@hjkos.com>2020-01-16 21:59:06 +0200
commit8536f3cc320d550340a834c8357e1c8fd4318649 (patch)
tree1170933611a23334335a40becb9c8bdbeb5fde90 /src
parente070ec4b66e10c6f18acd0dbdb9dceb7eb0514b7 (diff)
small fix
Diffstat (limited to 'src')
-rw-r--r--src/components/style_switcher/style_switcher.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js
index b78d8236..03cbb2a1 100644
--- a/src/components/style_switcher/style_switcher.js
+++ b/src/components/style_switcher/style_switcher.js
@@ -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'] : [])