User experience
Angular Aria
Watch Angular Aria manage tab focus, selection, and the panel associated with each tab.
Angular 22.3.2 · trace
Objective
Distinguish focus from activation in a keyboard-accessible tab list.
Transcript
Angular 22.3.2
- Angular Aria composes a tab list, individual tabs, and their panels. It sets the roles and connects each tab to its panel.
- With explicit activation, ArrowRight moves keyboard focus. The selected tab stays selected until Enter activates the focused tab.
- With follow activation, moving focus also changes selection. Use follow activation when switching content can happen promptly.
- The fixture reads the focused element, aria-selected, and aria-controls after real keyboard events on Angular Aria directives.