Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Navigation menu keyboard events #487

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Conversation

PietiKinnunen
Copy link
Contributor

@PietiKinnunen PietiKinnunen commented Jul 18, 2024

Preview: https://docs-git-pietikinnunen-nav-accessibility-goteleport.vercel.app/docs/

Enables very basic keyboard navigation for the header nav menu and aria-expanded values to improve the accessibility of the site.

  • Enable using tab or shift+tab to go through the header navigation items.
  • Pressing space or enter/return key when a main navigation menu item or a submenu is in focus should open it.
  • Pressing escape when any navigation item is in focus should close the navigation

Associated PRs in the other repos:
https://github.com/gravitational/next/pull/2542
https://github.com/gravitational/blog/pull/564

Copy link

vercel bot commented Jul 18, 2024

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

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2024 0:50am

@ptgott
Copy link
Contributor

ptgott commented Oct 2, 2024

Hello, would you mind adding a brief description of the expected behavior to help me test this? Thanks!

@PietiKinnunen
Copy link
Contributor Author

Hello, would you mind adding a brief description of the expected behavior to help me test this? Thanks!

Hey, yes absolutely, sorry about that! I added the expected behavior in the description

@PietiKinnunen PietiKinnunen merged commit 48e9ee6 into main Oct 4, 2024
8 of 9 checks passed
@PietiKinnunen PietiKinnunen deleted the PietiKinnunen/nav-accessibility branch October 4, 2024 09:55
@PietiKinnunen PietiKinnunen restored the PietiKinnunen/nav-accessibility branch December 4, 2024 11:30
@PietiKinnunen PietiKinnunen deleted the PietiKinnunen/nav-accessibility branch December 4, 2024 11:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants