zillow / react-slider

Accessible, CSS agnostic, slider component for React.
https://zillow.github.io/react-slider
MIT License
891 stars 232 forks source link

Custom Class Names with CSS Modules #81

Closed jacobp100 closed 4 years ago

jacobp100 commented 8 years ago

For the barClassName, you set the class to something like bar bar-1.

However, when using CSS Modules, it is impossible to target .bar-1, since the class names generated from bar and bar-1 are completely separate, and have no relation to each other.

Maybe a solution would be to allow barClassName to take an array of names to use.

jamesbrauman commented 8 years ago

@jacobp100 Any chance you could submit an example pull request that shows how you would like this work?

ghost commented 8 years ago

put :global infront of your class and it will work

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.