diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/style_switcher/style_switcher.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js index 16be209a..b78d8236 100644 --- a/src/components/style_switcher/style_switcher.js +++ b/src/components/style_switcher/style_switcher.js @@ -16,7 +16,8 @@ import { CURRENT_VERSION, SLOT_INHERITANCE, OPACITIES, - getLayers + getLayers, + getOpacitySlot } from '../../services/theme_data/theme_data.service.js' import ColorInput from '../color_input/color_input.vue' import RangeInput from '../range_input/range_input.vue' @@ -162,6 +163,7 @@ 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 textColors = [ key, @@ -171,6 +173,7 @@ export default { const layers = getLayers( layer, variant || layer, + opacitySlot, colorsConverted, opacity ) |
