Skip to content
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

fix: keyboard navigation and scroll in select component #1467

Merged
merged 3 commits into from
Jan 29, 2025

Conversation

timwessman
Copy link
Contributor

@timwessman timwessman commented Jan 29, 2025

Description

Fixed keyboard navigation in select component. Now keyboard arrow up/down move focus in select component and don't scroll parent container. But anyway parent container will scroll automatically to keep focused option visible, this still happens when focused option is near view bottom

Related Issue

Closes HDS-2600

How Has This Been Tested?

Manually

Demos:

Links to demos are in the comments

Screenshots (if appropriate):

Add to changelog

  • Added needed line to changelog

@timwessman timwessman force-pushed the hds-2600-fix-select-keyboard-scroll branch from 5be7261 to 7699855 Compare January 29, 2025 09:14
Copy link

github-actions bot commented Jan 29, 2025

Test Results

  1 files   68 suites   12m 55s ⏱️
 87 tests  87 ✅ 0 💤 0 ❌
174 runs  174 ✅ 0 💤 0 ❌

Results for commit 124e889.

♻️ This comment has been updated with latest results.

Copy link

Preview found from hds-demo docs/preview_1467

Demos

Docs
Core Storybook
React Storybook

Copy link
Contributor

@mrTuomoK mrTuomoK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, when I incorporated this changed Select to my test-project, I can't scroll the page at all after using the Select at all.

Copy link
Contributor

@mrTuomoK mrTuomoK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good now, good job 👍

@timwessman timwessman merged commit e06c60c into development Jan 29, 2025
8 checks passed
@timwessman timwessman deleted the hds-2600-fix-select-keyboard-scroll branch January 29, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants