mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
🐛 Treat vendor specific props correctly on attrs->props
This commit is contained in:
parent
896602903f
commit
a2e3da2c07
@ -558,8 +558,12 @@
|
|||||||
(defn- camelize
|
(defn- camelize
|
||||||
[s]
|
[s]
|
||||||
(when (string? s)
|
(when (string? s)
|
||||||
#?(:cljs (js* "~{}.replace(\":\", \"-\").replace(/-./g, x=>x[1].toUpperCase())", s)
|
(let [vendor? (str/starts-with? s "-")
|
||||||
:clj (str/camel 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
|
(defn parse-style
|
||||||
[style]
|
[style]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user