primitives icon indicating copy to clipboard operation
primitives copied to clipboard

[DropdownMenu] Tab press should focus next focusable element outside DropdownMenu

Open luisorbaiceta opened this issue 3 years ago • 6 comments

Bug report

To meet WAI-ARIA requirements tab press inside the DropdownMenu should focus the next focusable element outside it

Current Behavior

Nothing happens

Expected behavior

Focus next focusable element outside the primitive

luisorbaiceta avatar Jul 24 '22 21:07 luisorbaiceta

i'm assuming you are referring to a non-modal dropdown menu but I am curious which WAI ARIA requirements say this?

jjenzz avatar Jul 25 '22 11:07 jjenzz

found it !

image

https://w3c.github.io/aria-practices/#keyboard-interaction-12

jjenzz avatar Jul 25 '22 11:07 jjenzz

That's it! 😉

luisorbaiceta avatar Jul 25 '22 11:07 luisorbaiceta

Isn't this a duplicate of #1308

benoitgrelard avatar Aug 01 '22 14:08 benoitgrelard

Whether the menu is modal or non-modal, Tab press gets hijacked here and prevents default behavior

luisorbaiceta avatar Aug 01 '22 19:08 luisorbaiceta

Yeah that's because we had decided that menus aren't tabbable so we did it in there. But regardless, I still think it's a duplicate no?

benoitgrelard avatar Aug 01 '22 21:08 benoitgrelard

duplicate of #1308

luisorbaiceta avatar Sep 28 '22 17:09 luisorbaiceta