Skip to content
Snippets Groups Projects
Commit 7aa5bf08 authored by HJ's avatar HJ :fire:
Browse files

prioritize disabled opacity over transparent keyword

parent 9f2c1b40
No related branches found
No related tags found
2 merge requests!1082update master with develop changes,!1081fix several issues related to opacity
Pipeline #23475 failed
......@@ -354,10 +354,10 @@ export const getColors = (sourceColors, sourceOpacity) => SLOT_ORDERED.reduce(({
const opacitySlot = value.opacity || getOpacitySlot(key)
const ownOpacitySlot = value.opacity
if (sourceColor === 'transparent') {
outputColor.a = 0
} else if (ownOpacitySlot === null) {
if (ownOpacitySlot === null) {
outputColor.a = 1
} else if (sourceColor === 'transparent') {
outputColor.a = 0
} else {
const opacityOverriden = ownOpacitySlot && sourceOpacity[opacitySlot] !== undefined
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment