From 09d73a2f5133c43a8f3959605fcfe6f249cb4cb3 Mon Sep 17 00:00:00 2001 From: AzazelN28 Date: Tue, 7 Jan 2025 13:42:18 +0100 Subject: [PATCH] :bug: Fix pasting text changes opacity to 0 --- frontend/text-editor/src/editor/content/dom/Style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/text-editor/src/editor/content/dom/Style.js b/frontend/text-editor/src/editor/content/dom/Style.js index a4a883770..b7abe2f8b 100644 --- a/frontend/text-editor/src/editor/content/dom/Style.js +++ b/frontend/text-editor/src/editor/content/dom/Style.js @@ -139,7 +139,7 @@ export function normalizeStyles(node, styleDefaults = getStyleDefaultsDeclaratio // a --fills CSS variable property. const fills = styleDeclaration.getPropertyValue("--fills"); const color = styleDeclaration.getPropertyValue("color"); - if (color) { + if (color && !fills) { styleDeclaration.removeProperty("color"); styleDeclaration.setProperty("--fills", getFills(color)); } else {