[Slider] Show value tooltip when hovering a slider thumb with disableSwap true #30753
Open
2 tasks done
Labels
component: slider
This is the name of the generic UI component, not the React module!
new feature
New feature or request
Duplicates
Latest version
Summary 💡
Hovering on a slider thumb should make a tooltip with the thumb's value pop out when
valueLabelDisplay
is set toauto
anddisableSwap
is set. Just like it does whendisableSwap
is not set.Examples 🌈
https://codesandbox.io/s/pensive-dream-w91mx?file=/src/App.js
In this example, the only difference between the two sliders is that
disableSwap
is set on the second one.A tooltip showing the value of the thumb should pop out when hovering on the thumb regardless of whether disableSwap is set or not.
Motivation 🔦
I don't think that setting
disableSwap
should change the behavior ofvalueLabelDisplay
.It is unexpected and makes
disableSwap
unusable when you need to maintain the ability to show the thumbs' value on hover.I thought it was a bug at first, but it seem it may have been the intended behavior (#25547 (review)), so I'm filing a feature request instead.
I could take a stab at it.
The text was updated successfully, but these errors were encountered: