-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for optional marks (a styled element at each step) #35
Comments
Could you describe it more? |
When I use the Example from material-ui: |
There is no "out of the box" support but you have a complete access to the "track element". It comes with the getTrackBackground utility that generates a linear gradient to set different background "before" and "after". You could write your own function to also add steps. Or introduce steps as a second background / layer. Really up to you at this point. |
@tajo but I assume the lib already knows where the steps are, that's how you can 'stick' the thumb to the step correct position. Consumers of the library would have to add code to calculate where the steps should be based on width, size etc.. |
Yea, the Do you want to give it a try? |
That's a nice idea! I'll give it a shot during the weekend. Thanks for the tip |
This comment has been minimized.
This comment has been minimized.
It's been not. |
You can also do this by setting one of the colors in getTrackBackground to "transparent", and by having the linear gradient in a containing div. |
Hi, was anyone able to style the step break? |
I'm working on this now. |
is there a way to style steps? if not, would you accept a PR to do that?
The text was updated successfully, but these errors were encountered: