-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
[Slider] Swap thumbs on range slider when thumbs are overlapping #1220
Comments
Related to #420 @benjavicente We decided to not allow thumbs to cross each other for two main reasons:
There is a <Slider.Root value={[10, 20]} step={1} minStepsBetweenValues={1} /> |
Coming from
@mui/base
,@base-ui-components/react
seems to lack the correct thumb placement (will be fixed with #1175), marks, and the ability to swap thumbs. While swapping values does not follow the Slider WAI-ARIA design pattern (see relevant RadixUI discussion about that), swapping might provide better UX, specially when thumbs are overlapping.Where is a comparison with
@base-ui-components/react
vs@mui/base
. In the base ui example, since the clicks happen on the left side of the thumb, the left thumb is selected, even thought there is an intent to slide to the right.Screen.Recording.2024-12-23.at.14.04.18.mov
Screen.Recording.2024-12-23.at.14.06.45.mov
So, it could be great to have the ability to enable always thumb swaping like in
mui-base
, and would be amazing if this library manages to include a threshold of when it should overlap. I couldn't find a library that does this last behavior 🤔The text was updated successfully, but these errors were encountered: