forked from AkkomaGang/akkoma-fe
prioritize disabled opacity over transparent keyword
This commit is contained in:
parent
9f2c1b4008
commit
7aa5bf0896
1 changed files with 3 additions and 3 deletions
|
@ -354,10 +354,10 @@ export const getColors = (sourceColors, sourceOpacity) => SLOT_ORDERED.reduce(({
|
||||||
const opacitySlot = value.opacity || getOpacitySlot(key)
|
const opacitySlot = value.opacity || getOpacitySlot(key)
|
||||||
const ownOpacitySlot = value.opacity
|
const ownOpacitySlot = value.opacity
|
||||||
|
|
||||||
if (sourceColor === 'transparent') {
|
if (ownOpacitySlot === null) {
|
||||||
outputColor.a = 0
|
|
||||||
} else if (ownOpacitySlot === null) {
|
|
||||||
outputColor.a = 1
|
outputColor.a = 1
|
||||||
|
} else if (sourceColor === 'transparent') {
|
||||||
|
outputColor.a = 0
|
||||||
} else {
|
} else {
|
||||||
const opacityOverriden = ownOpacitySlot && sourceOpacity[opacitySlot] !== undefined
|
const opacityOverriden = ownOpacitySlot && sourceOpacity[opacitySlot] !== undefined
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue