mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 20:28:11 +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)
|
||||
(filter string?))
|
||||
(tree-seq map? :children (:content shape)))]
|
||||
(apply str (interpose "," colors))))
|
||||
(if (empty? colors)
|
||||
"#000000"
|
||||
(apply str (interpose "," colors)))))
|
||||
|
||||
(mf/defc text-shape
|
||||
{::mf/wrap-props false}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user