Skip to content

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. scope: slider Changes related to the slider. package: material-ui 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
@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

docs Improvements or additions to the documentation. scope: slider Changes related to the slider.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants