From fbfff07decffef9f1ac452b2ce55bf6dbc7bb303 Mon Sep 17 00:00:00 2001 From: Eva Date: Mon, 22 May 2023 09:27:18 +0200 Subject: [PATCH] :bug: Fix background property changing it for background-color --- CHANGES.md | 1 + frontend/src/app/util/code_gen.cljs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index a976e1b8c..be830a0e6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,7 @@ ### :bug: Bugs fixed +- Fix background-color property on inspect code [Taiga #5300](https://tree.taiga.io/project/penpot/issue/5300) - Fix problem with rulers not placing correctly [Taiga #5093](https://tree.taiga.io/project/penpot/issue/5093) - Fix page context menu [Taiga #5145](https://tree.taiga.io/project/penpot/issue/5145) - Fix project file count [Taiga #5148](https://tree.taiga.io/project/penpot/issue/5148) diff --git a/frontend/src/app/util/code_gen.cljs b/frontend/src/app/util/code_gen.cljs index 321119509..f3cf5eea4 100644 --- a/frontend/src/app/util/code_gen.cljs +++ b/frontend/src/app/util/code_gen.cljs @@ -95,7 +95,7 @@ :height #(get-size :height %)} :multi {:r1 [:r1 :r2 :r3 :r4]}} :fill {:props [:fills] - :to-prop {:fills (if (> (count (:fills shape)) 1) "background-image" "background")} + :to-prop {:fills (if (> (count (:fills shape)) 1) "background-image" "background-color")} :format {:fills format-fill-color}} :stroke {:props [:strokes] :to-prop {:strokes "border"}