mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix pasting text changes opacity to 0
This commit is contained in:
@@ -139,7 +139,7 @@ export function normalizeStyles(node, styleDefaults = getStyleDefaultsDeclaratio
|
|||||||
// a --fills CSS variable property.
|
// a --fills CSS variable property.
|
||||||
const fills = styleDeclaration.getPropertyValue("--fills");
|
const fills = styleDeclaration.getPropertyValue("--fills");
|
||||||
const color = styleDeclaration.getPropertyValue("color");
|
const color = styleDeclaration.getPropertyValue("color");
|
||||||
if (color) {
|
if (color && !fills) {
|
||||||
styleDeclaration.removeProperty("color");
|
styleDeclaration.removeProperty("color");
|
||||||
styleDeclaration.setProperty("--fills", getFills(color));
|
styleDeclaration.setProperty("--fills", getFills(color));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user