Skip to content

[Slider][material-next] Refactor style to use CSS variables #38981

@DiegoAndai

Description

@DiegoAndai

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.

Metadata

Metadata

Assignees

Labels

design: material youscope: sliderChanges related to the slider.type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

Status

In progress

Status

To process

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions