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

[docs][material-ui][Slider] Remove valueLabelFormat from restricted values demo so that the tooltip thumb label displays the same as the value text #41567

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

StylesTrip
Copy link
Contributor

@StylesTrip StylesTrip commented Mar 20, 2024

Preview: https://deploy-preview-41567--material-ui.netlify.app/material-ui/react-slider/#restricted-values

Issue

Going through the Slider documentation, for all code examples that have value labels and tooltip thumb labels, these values match (see Custom marks and Label always visible examples) except for the Restricted values example.

Screenshot 2024-03-19 at 10 35 33 PM

Proposed Change

I'm proposing this change to have the tooltip thumb label match the value label by removing the valueLabelFormat prop from the example. Doing this will then make the example look like the below screenshot:
Screenshot 2024-03-19 at 10 35 15 PM

@ZeeshanTamboli ZeeshanTamboli added docs Improvements or additions to the documentation component: slider This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material labels Mar 20, 2024
@ZeeshanTamboli ZeeshanTamboli changed the title [mui][Slider] Removing valueLabelFormat in code example so that tooltip thumb label displays the same as the value text [docs][material-ui][Slider] Removing valueLabelFormat in code example so that tooltip thumb label displays the same as the value text Mar 20, 2024
@ZeeshanTamboli ZeeshanTamboli changed the title [docs][material-ui][Slider] Removing valueLabelFormat in code example so that tooltip thumb label displays the same as the value text [docs][material-ui][Slider] Remove valueLabelFormat from restricted values demo so that the tooltip thumb label displays the same as the value text Mar 20, 2024
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

Makes sense to me. valueLabelFormat isn't relevant in this demo.

@ZeeshanTamboli ZeeshanTamboli merged commit b96215e into mui:next Mar 20, 2024
11 of 12 checks passed
@StylesTrip StylesTrip deleted the slider-doc-update branch March 20, 2024 13:30
ZeeshanTamboli pushed a commit to ZeeshanTamboli/material-ui that referenced this pull request Mar 27, 2024
… values demo so that the tooltip thumb label displays the same as the value text (mui#41567)
pluvio72 pushed a commit to pluvio72/material-ui that referenced this pull request Mar 29, 2024
… values demo so that the tooltip thumb label displays the same as the value text (mui#41567)
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! docs Improvements or additions to the documentation package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants