forked from AkkomaGang/akkoma-fe
fixed transparent + semi-transparent inheritance case
This commit is contained in:
parent
2274976c09
commit
73dd7209dd
1 changed files with 2 additions and 3 deletions
|
@ -352,9 +352,8 @@ export const getColors = (sourceColors, sourceOpacity) => SLOT_ORDERED.reduce(({
|
||||||
}
|
}
|
||||||
const opacitySlot = getOpacitySlot(key)
|
const opacitySlot = getOpacitySlot(key)
|
||||||
if (opacitySlot && outputColor.a === undefined) {
|
if (opacitySlot && outputColor.a === undefined) {
|
||||||
const deps = getDependencies(key, SLOT_INHERITANCE)
|
const dependencySlot = deps[0]
|
||||||
const dependencySlot = deps && deps[0]
|
if (dependencySlot && colors[dependencySlot] === 'transparent') {
|
||||||
if (dependencySlot && sourceColors[dependencySlot] === 'transparent') {
|
|
||||||
outputColor.a = 0
|
outputColor.a = 0
|
||||||
} else {
|
} else {
|
||||||
outputColor.a = Number(sourceOpacity[opacitySlot]) || OPACITIES[opacitySlot].defaultValue || 1
|
outputColor.a = Number(sourceOpacity[opacitySlot]) || OPACITIES[opacitySlot].defaultValue || 1
|
||||||
|
|
Loading…
Reference in a new issue