From 1de9171d500c7fb8a15be4824642d92115ee7045 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 29 Jan 2024 18:32:29 +0100 Subject: [PATCH] :sparkles: Add mask-type style parsing (react now supports it) --- common/src/app/common/svg.cljc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/common/src/app/common/svg.cljc b/common/src/app/common/svg.cljc index 4ea6278cc9..92a500a6e9 100644 --- a/common/src/app/common/svg.cljc +++ b/common/src/app/common/svg.cljc @@ -517,10 +517,6 @@ :text :view}) -;; Props not supported by react we need to keep them lowercase -(def non-react-props - #{:mask-type}) - ;; Defaults for some tags per spec https://www.w3.org/TR/SVG11/single-page.html ;; they are basically the defaults that can be percents and we need to replace because ;; otherwise won't work as expected in the workspace @@ -622,10 +618,9 @@ res)) :else - (let [k (if (contains? non-react-props k) - k - (-> k d/name camelize keyword))] + (let [k (-> k d/name camelize keyword)] (assoc res k v))) + res)) {} attrs)))