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

Allow Tab and Shift+Tab when Listbox is open #3284

Merged
merged 3 commits into from
Jun 11, 2024
Merged

Conversation

RobinMalfait
Copy link
Collaborator

This PR updates the behavior of the Listbox component and allows you to use tab and shift+tab and it will go to the next or previous focusable element respectively.

Before this we used to focus trap, but now we will be consistent with the existing Combobox and Menu components. This also now reflects the ARIA Authoring Practices Guide.

Fixes: #3272

Copy link

vercel bot commented Jun 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2024 4:13pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2024 4:13pm

This will make it consistent with the `Menu` and the ARIA Authoring
Practices Guide.
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.

Accessibility: Keyboard focus with tab key is trapped within listbox
2 participants