0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 17:18:21 -05:00

Make shape transparent when no fill-color is assigned.

This commit is contained in:
Andrey Antukh 2020-08-11 11:54:15 +02:00 committed by Hirunatan
parent fee5b001e8
commit 62e2c1cc14

View file

@ -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)}]