mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
✨ Add mask-type style parsing (react now supports it)
This commit is contained in:
parent
4a4aabd230
commit
1de9171d50
1 changed files with 2 additions and 7 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue