mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
🐛 Assign the default color on rendering text object.
This commit is contained in:
parent
313723cfe1
commit
eb02f420ec
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue