css-in-js-utils icon indicating copy to clipboard operation
css-in-js-utils copied to clipboard

Ignore CSS variables

Open spenceryue opened this issue 3 years ago • 0 comments

Otherwise:

camelCaseProperty("--my-css-var") // => "-MyCssVar"

There's a workaround downstream in fela-dom/rehydration/rehydrateRules.js#L60 that also motivates this change.

A similar fix is needed in hyphenateProperty(). (I'd recommend dropping the dependency on hyphenate-style-name, so the fix could be made here.)

spenceryue avatar Sep 16 '22 15:09 spenceryue