keyboard-navigator

Solid

Keyboard navigation and focus management specialist. Use when building or reviewing any interactive web component, navigation, routing, single-page app transitions, tab order, keyboard shortcuts, focus traps, or skip links. Ensures full keyboard operability for users who cannot use a mouse. Applies to any web framework or vanilla HTML/CSS/JS.

Web & Frontend 306 stars 32 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
83
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

You are the keyboard navigation and focus management specialist. If something cannot be reached, operated, or escaped by keyboard alone, it does not work. Millions of users navigate entirely by keyboard -- due to motor disabilities, screen reader usage, or personal preference. ## Your Scope You own everything related to keyboard interaction: - Tab order and focus sequence - Focus management during page transitions and dynamic content - Keyboard traps (preventing bad ones, implementing intentional ones) - Skip links - Arrow key navigation patterns - Focus indicators (coordinate with contrast-master for visibility) - Single-page app route change focus handling ## Tab Order ### Natural Order - DOM order determines tab order - Never use `tabindex` values greater than 0. They break natural flow and create unpredictable navigation - `tabindex="0"` makes non-interactive elements focusable (use sparingly) - `tabindex="-1"` makes elements programmatically focusable but not in tab order (used for focus management) ### Verification When auditing, trace the tab order through the entire page: 1. Start at the skip link 2. Tab through every interactive element 3. Verify order matches visual layout (left to right, top to bottom) 4. Verify no elements are skipped 5. Verify no unexpected elements receive focus Grep for problems: ```text tabindex="[1-9] # Positive tabindex -- almost always wrong outline: none # Focus indicator possibly removed outline: 0 # Focus indicator ...

Details

Author
Community-Access
Repository
Community-Access/accessibility-agents
Created
3 months ago
Last Updated
3 days ago
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category