Skip to content
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

[material-ui][Slider] Fix spacings in .md files #45388

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

sai6855
Copy link
Contributor

@sai6855 sai6855 commented Feb 24, 2025

@sai6855 sai6855 added component: slider This is the name of the generic UI component, not the React module! deprecation New deprecation message package: material-ui Specific to @mui/material v6.x needs cherry-pick The PR should be cherry-picked to master after merge labels Feb 24, 2025
@mui-bot
Copy link

mui-bot commented Feb 24, 2025

@@ -2011,35 +2011,35 @@ Here's how to migrate:
MuiSlider: {
styleOverrides: {
root: {
- [`&.${sliderClasses.thumbSizeSmall}`]: {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thumbSizeSmall class is applied to thumb, not root. hence, a space has been added here.

docs for same -> https://mui.com/material-ui/api/slider/#slider-classes-MuiSlider-thumbSizeSmall

@sai6855 sai6855 requested a review from DiegoAndai February 24, 2025 09:25
Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sai6855

@DiegoAndai DiegoAndai merged commit d85b936 into mui:master Feb 24, 2025
27 checks passed
Copy link

Cherry-pick PRs will be created targeting branches: v6.x

Comment on lines +2034 to +2035
- [`& .${sliderClasses.thumbColorInfo}`]: {
+ [`& .${sliderClasses.thumb}.${sliderClasses.colorInfo}`]: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @sai6855, I just noticed after merging that this is the other way around. It should be

[`&.${sliderClasses.colorInfo} > .${sliderClasses.thumb}`]: {

May I ask you to open a PR to update it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure I'll open PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: slider This is the name of the generic UI component, not the React module! deprecation New deprecation message needs cherry-pick The PR should be cherry-picked to master after merge package: material-ui Specific to @mui/material v6.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants