User experience

Angular Aria

Watch Angular Aria manage tab focus, selection, and the panel associated with each tab.

Angular 22.3.2 · trace
Lesson flow Compose. Focus. Activate. Panel.
Compose
Focus
Activate
Panel

Objective

Distinguish focus from activation in a keyboard-accessible tab list.

Transcript

Angular 22.3.2

  1. Angular Aria composes a tab list, individual tabs, and their panels. It sets the roles and connects each tab to its panel.
  2. With explicit activation, ArrowRight moves keyboard focus. The selected tab stays selected until Enter activates the focused tab.
  3. With follow activation, moving focus also changes selection. Use follow activation when switching content can happen promptly.
  4. The fixture reads the focused element, aria-selected, and aria-controls after real keyboard events on Angular Aria directives.

Sources