Navigation Menu #6441
Unanswered
andrecasal
asked this question in
Q&A
Navigation Menu
#6441
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to build a Navigation Menu.
According to the WAI-ARIA Authoring Practices 1.2 (please correct me if I'm wrong):
a. Menus should typically open on Enter or Space key press.
b. Submenus should open when focused using arrow keys (e.g., Arrow Down for horizontal menus, Arrow Right for vertical menus), or on Enter or Space key press when the menu item is focused.
a. Menus and submenus should close on pressing Escape (Esc) key.
b. Submenus should also close when moving focus away from the submenu, such as by pressing arrow keys to move to another menu item (like a parent) or clicking outside the submenu.
I tried implementing this with:
Status:
2.a. ❌
MenuTriggerisn't triggered onSpace,Enter, orArrow Down. PressingSpacescrolls the page. PressingEnterdoes nothing.2.b. ❔ I'll try updating the example with submenus later. I'm trying to figure out the menu first.
3.a. ✅ The menu correctly closes on
Esc3.b. ❔ I'll try updating the example with submenus later. I'm trying to figure out the menu first.
I couldn't find any reference to or examples of a
Navigation Menuon the docs (or Google). Am I using the right components? What am I missing to make theMenuwork correctly?Beta Was this translation helpful? Give feedback.
All reactions