From 7354b6f7062def8bd1ac0a0e457cd05256eba0d5 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 23 Jan 2020 00:35:56 +0200 Subject: fixed get(Layer|Opacity)Slot not working properly which broke Mojave theme --- src/components/style_switcher/style_switcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/style_switcher/style_switcher.js') diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js index 76e6cdb7..06ef71a7 100644 --- a/src/components/style_switcher/style_switcher.js +++ b/src/components/style_switcher/style_switcher.js @@ -246,7 +246,7 @@ export default { if (!slotIsText) return acc const { layer, variant } = slotIsBaseText ? { layer: 'bg' } : value const background = variant || layer - const opacitySlot = getOpacitySlot(SLOT_INHERITANCE[background]) + const opacitySlot = getOpacitySlot(background) const textColors = [ key, ...(background === 'bg' ? ['cRed', 'cGreen', 'cBlue', 'cOrange'] : []) -- cgit v1.2.3-70-g09d2