aphrodite icon indicating copy to clipboard operation
aphrodite copied to clipboard

CSS Custom Properties Should not be kebabified

Open dmiller9911 opened this issue 6 years ago • 0 comments

Currently if a user tries to overwrite css custom properties using aphrodite the key will run through kebabify, and could possibily end up with the wrong value.

Example: ###In

const styles = StyleSheet.create({
  item: {
    '--Some-Custom_Property': '#fff',
  }
});

Out

.item_someHash {
  ---some--custom_-property: #fff;
}

The issue lies in the kebabifyStyleName utility.

dmiller9911 avatar Aug 14 '18 19:08 dmiller9911