lilactown / helix

A simple, easy to use library for React development in ClojureScript.
Eclipse Public License 2.0
627 stars 52 forks source link

Camel case transformation: CSS custom properties as special case #72

Closed stanislas closed 4 years ago

stanislas commented 4 years ago

React supports CSS Custom Properties in the style attribute facebook/react#6411

CSS custom properties are represented by names starting with '--' https://developer.mozilla.org/en-US/docs/Web/CSS/--*

The code in the PR modifies the camel case transformation so that CSS custom property names are not transformed. (The transformation is suppressed everywhere, not only for the style attribute; if you prefer, I can submit a PR with a special camel-case variant just for the style attribute).

stanislas commented 4 years ago

I forgot to add a test; sorry. I will add it right now.

lilactown commented 4 years ago

This looks great! Thank you for the contribution 💪