From 62e2c1cc148827d5903812cb32794f2ab67a0878 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 11 Aug 2020 11:54:15 +0200 Subject: [PATCH] :sparkles: Make shape transparent when no fill-color is assigned. --- frontend/src/uxbox/main/ui/shapes/attrs.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/uxbox/main/ui/shapes/attrs.cljs b/frontend/src/uxbox/main/ui/shapes/attrs.cljs index 71dea3b538..3da03551be 100644 --- a/frontend/src/uxbox/main/ui/shapes/attrs.cljs +++ b/frontend/src/uxbox/main/ui/shapes/attrs.cljs @@ -21,7 +21,7 @@ (defn extract-style-attrs [shape] (let [stroke-style (:stroke-style shape :none) - attrs #js {:fill (:fill-color shape nil) + attrs #js {:fill (or (:fill-color shape) "transparent") :fillOpacity (:fill-opacity shape nil) :rx (:rx shape nil) :ry (:ry shape nil)}]