🐛 Fix problem with :multiple for colors and typographies

This commit is contained in:
alonso.torres 2021-05-24 21:28:37 +02:00 committed by Andrey Antukh
parent ed95b59003
commit 95cb6d132b
6 changed files with 43 additions and 30 deletions

View file

@ -75,7 +75,8 @@
;; (uc/hex->rgba fill-color fill-opacity))
[r g b a] (uc/hex->rgba fill-color fill-opacity)
text-color (str/format "rgba(%s, %s, %s, %s)" r g b a)
text-color (when (and (some? fill-color) (some? fill-opacity))
(str/format "rgba(%s, %s, %s, %s)" r g b a))
fontsdb (deref fonts/fontsdb)
base #js {:textDecoration text-decoration