mirror of
https://github.com/penpot/penpot.git
synced 2025-02-08 08:09:14 -05:00
Merge pull request #5520 from penpot/azazeln28-fix-text-editor-issue-9285
Fix Copy/Paste text into the text block
This commit is contained in:
commit
60af8d0bcb
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue