mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
🐛 Treat vendor specific props correctly on attrs->props
This commit is contained in:
parent
896602903f
commit
a2e3da2c07
1 changed files with 6 additions and 2 deletions
|
@ -558,8 +558,12 @@
|
|||
(defn- camelize
|
||||
[s]
|
||||
(when (string? s)
|
||||
#?(:cljs (js* "~{}.replace(\":\", \"-\").replace(/-./g, x=>x[1].toUpperCase())", s)
|
||||
:clj (str/camel s))))
|
||||
(let [vendor? (str/starts-with? s "-")
|
||||
result #?(:cljs (js* "~{}.replace(\":\", \"-\").replace(/-./g, x=>x[1].toUpperCase())", s)
|
||||
:clj (str/camel s))]
|
||||
(if ^boolean vendor?
|
||||
(str/capital result)
|
||||
result))))
|
||||
|
||||
(defn parse-style
|
||||
[style]
|
||||
|
|
Loading…
Reference in a new issue