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

keyboard navigation in search modal #14

Merged
merged 2 commits into from Aug 15, 2022

Conversation

raffaelj
Copy link
Collaborator

Now I can navigate with tab key and press Enter or use middle mouse click to open a search result in a new tab.

I also changed the close icon to a button so it has a tabindex and closes the modal on focus+Enter. The button has inline styles, which should be moved to a css file and I only tested it with Firefox, so it might need some more css resets.

@aheinze aheinze merged commit 46471f8 into Cockpit-HQ:develop Aug 15, 2022
@aheinze
Copy link
Collaborator

aheinze commented Aug 15, 2022

Thanks for the contribution 🙏

@raffaelj raffaelj deleted the search-keyboard-navigation-a11y branch April 3, 2023 19:21
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.

None yet

2 participants