Skip to content

Commit

Permalink
Preserve Custom Properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Oct 8, 2020
1 parent 907d37f commit cc1d517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ const processStyleObject = (
* borderColor => border-color
*/
const hyphenAndVendorPrefixCssProp = (cssProp: string, vendorProps: any[], vendorPrefix: string) => {
const isVendorPrefixed = cssProp[0] === cssProp[0].toUpperCase();
const isVendorPrefixed = /^[A-Z]/.test(cssProp);
let cssHyphenProp = cssProp
.split(/(?=[A-Z])/)
.map((g) => g.toLowerCase())
Expand Down

0 comments on commit cc1d517

Please sign in to comment.