mui / mui/material-ui

[slider][material-next] Refactor style to use CSS variables

Open
#38,981 4 comments 0 reactions 1 assignee View on GitHub

@DiegoAndai is already working on this.

Since Sep 14, 2023.

design: material you on hold scope: slider type: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.