mirror of
https://github.com/penpot/penpot.git
synced 2025-06-23 21:56:59 +02: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
|
(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…
Add table
Add a link
Reference in a new issue