[slider][material-next] Refactor style to use CSS variables
@DiegoAndai is already working on this.
Since Sep 14, 2023.
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Refactor material-next's Slider style implementation to use CSS Variables similar to Joy UI's Slider.
The goal of doing this is to make the style implementation DRYer. For example, adding a --md-comp-slider-track-size variable used for the track's height on horizontal sliders and the track's width on vertical sliders. This will also enable customization via CSS variables.
It should take inspiration from Joy UI's slider, using similar variables if applicable. It doesn't have to be a 1:1 copy; some variables in Joy UI might not be helpful in Material UI, and some might have to be added.
The variables should follow Material You's token syntax: --md-comp-slider-token-in-kebab-case.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.