-
Notifications
You must be signed in to change notification settings - Fork 6.3k
feat(select): scroll buttons #7649
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.
Files not reviewed (2)
- packages/ui-components/Common/Select/index.module.css: Language not supported
- packages/ui-components/package.json: Language not supported
Comments suppressed due to low confidence (2)
packages/ui-components/Common/Select/index.tsx:170
- Replacing the ScrollPrimitive.Root wrapper with separate scroll buttons may affect the scroll context for the Viewport; please verify that the new structure maintains the intended scroll functionality.
<SelectPrimitive.ScrollUpButton>
apps/site/next.config.mjs:86
- Ensure that removing the '@radix-ui/react-scroll-area' dependency does not affect other parts of the codebase that might be relying on it.
'@radix-ui/react-scroll-area',
Lighthouse Results
|
IMO scroll when over is too quick but I didn't fond anything about config of that on radix doc. |
I disagree. I think it's fine.
https://64c7d71358830e9105808652-wqpavshimg.chromatic.com/?path=/story/common-select--without-label&globals=viewport:large has the ⬆️ Chevron, but ya, maybe adding a few more values just to be sure |
I think we're going down too fast, all the way to the bottom, so we don't have time to see all the options. For example, if you go to the download page and select the version, you'll see that navigating with this new button is complicated. |
I think the speed feels right. Hovering over the "down" arrow scrolls faster, while the scrollbar allows for more precise control. |
IMO faster-than-normal scroll speed in these areas is a design choice. The goal seems to be helping users quickly navigate from the first item to the bottom of a long list. At the same time, users who prefer a slower pace can still scroll more gradually using standard scroll behavior. But, it would still be nice to have control over the scroll speed 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
It's true that on a long list as the story shows it goes. And there's always the arrow keys to move around the options.
Description
We were using a custom scrollbar with the Select component. With this PR, we’re replacing the existing behavior with scroll buttons that offer a better user experience
Validation
Scroll buttons should be visible in the Select components in the preview
Related Issues
fixes #7468
Check List
npm run format
to ensure the code follows the style guide.npm run test
to check if all tests are passing.npx turbo build
to check if the website builds without errors.