← All analysers · Multi-model analysers

KeyboardNavigationAnalyzer

Validates that custom widgets implement the keyboard patterns their roles imply.

What it detects

An element with `role="tablist"` is expected to support left/right arrow navigation between tabs. This analyser checks each widget role in the DOMModel against the keyboard interactions actually wired up in the ActionLanguage tree, reporting where the expected interactions are missing.

WCAG criteria

  • 2.1.1Keyboard
  • 4.1.2Name, Role, Value

Source

analyzers/KeyboardNavigationAnalyzer.ts

More