You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix keyboard and ARIA state of the shared <a1-header> menus #1152
design-system/chrome.js renders the header used by every Alpha One Labs site, so fixing it improves every site at once. Problems found:
Escape doesn't sync state. The keydown handler (~line 179) removes header.open, but leaves the burger at aria-expanded="true" / "Close menu" and doesn't return focus to the burger.
Misused menu role. The "Sites" <details> dropdown uses role="menu" / role="menuitem" (~lines 116, 155) without the arrow-key handling that role requires, so screen readers announce a menu that doesn't behave like one. Plain links in a disclosure don't need these roles.
No focus management for the mobile drawer. Opening it doesn't move focus into the drawer, and clicking outside doesn't close it.
What to do
On Escape, close the drawer through the same function the burger uses (updating aria-expanded and the label), and return focus to the burger (or to the summary for the Sites menu) if focus was inside.
Remove role="menu" and role="menuitem" from the Sites dropdown.
When the drawer opens, move focus to its first link; close it on an outside click.
Test with keyboard only, plus VoiceOver or NVDA, and describe the results in the PR.
Acceptance criteria
After Escape, aria-expanded is false and focus is on the burger.
axe reports no aria-required-children / role issues on design.alphaonelabs.com.
Activity
github-actions commentedon Nov 2, 2026