feat(slider): add pointer cursor to slider track and thumb#1470
feat(slider): add pointer cursor to slider track and thumb#1470xon52 wants to merge 2 commits intounovue:devfrom
Conversation
|
V4 registry of main shadcn ui: https://ui.shadcn.com/docs/components/slider V3 Registry (legacy docs): https://v3.shadcn.com/docs/components/slider Both slider track cursor is |
|
Thanks for taking a look @sadeghbarati . I'm not sure what you are saying? Must It may be more controversial than I thought. I felt it was an obvious ui oversight. When using it without a cursor it is easy to miss it when you click as you cannot see when your cursor is on the right spot. |
|
Yes we need to match the main shadcn ui |
|
I raised a corresponding change with shadcn ui: shadcn-ui/ui#8437 Looking at their backlog of PR's I don't have high hopes, but I'll keep an eye on it for as long as this PR is left open. |
🔗 Linked issue
❓ Type of change
📚 Description
Adds
cursor-pointerclass to the slider component to improve UX by visually indicating that both the slider track and thumb are interactive elements.Changes:
cursor-pointertoSliderTrackcomponent in all stylescursor-pointertoSliderThumbcomponent in all stylesFiles Modified:
apps/www/src/registry/default/ui/slider/Slider.vueapps/www/src/registry/new-york/ui/slider/Slider.vueapps/v4/registry/new-york-v4/ui/slider/Slider.vue📸 Screenshots (if appropriate)
Recording.2025-10-12.090527.mp4
📝 Checklist