mirror of
https://github.com/penpot/penpot.git
synced 2026-09-11 06:28:47 +00:00
🐛 Assign the default color on rendering text object.
This commit is contained in:
parent
313723cfe1
commit
eb02f420ec
@ -123,7 +123,9 @@
|
|||||||
(let [colors (into #{} (comp (map :fill)
|
(let [colors (into #{} (comp (map :fill)
|
||||||
(filter string?))
|
(filter string?))
|
||||||
(tree-seq map? :children (:content shape)))]
|
(tree-seq map? :children (:content shape)))]
|
||||||
(apply str (interpose "," colors))))
|
(if (empty? colors)
|
||||||
|
"#000000"
|
||||||
|
(apply str (interpose "," colors)))))
|
||||||
|
|
||||||
(mf/defc text-shape
|
(mf/defc text-shape
|
||||||
{::mf/wrap-props false}
|
{::mf/wrap-props false}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user