Focus Trapping for Dropdowns #168
Unanswered
WyattCast44
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to start a discussion about implementing focus trapping for Flux Dropdowns (navmenu's specifically).
Currently the Dropdown will close on 1) a click away and 2) An escape key input.
flux.navmenu
usage, the user is free to tab throughflux.navmenu.items
which is great - but when I tab after the last item the drop down stays open (not great).In an ideal world, the
flux.dropdrop
would close automatically if tabbing outside theui-dropdown
container, but also provide a prop that will either 1) enable focus trapping solely inside the dropdown or 2) enable focus trapping inside the dropdown and on the dropdown trigger.Not sure what the accessibility concerns would be. Thank you for a great product!
Beta Was this translation helpful? Give feedback.
All reactions