What the person is doing
The choices are naturally hierarchical, such as folders, permissions, taxonomy categories, organization units, product groups, or nested settings.
Application · lesson 15 of 20 · Selection And Choice
Underlying principle: Choice controls express how many options are available, how many may be selected, and when the selection takes effect. The control should reveal the meaning and consequence of each choice.
Provide a labelled tree selection widget with expandable branches, selectable treeitems, explicit selected or checked state, mixed parent state when needed, focus independent from selection, keyboard navigation, typeahead, and clear rules for branch and leaf selection.
Choice controls express how many options are available, how many may be selected, and when the selection takes effect. The control should reveal the meaning and consequence of each choice.
The choices are naturally hierarchical, such as folders, permissions, taxonomy categories, organization units, product groups, or nested settings.
Provide a labelled tree selection widget with expandable branches, selectable treeitems, explicit selected or checked state, mixed parent state when needed, focus independent from selection, keyboard navigation, typeahead, and clear rules for branch and leaf selection.
Initial tree state with visible label and root-level nodes.
Is the hierarchy meaningful to the selection decision, or is this a flat list with indentation?
The tree container has role tree and a visible label referenced by aria-labelledby or an accessible name.
The choices are naturally hierarchical, such as folders, permissions, taxonomy categories, organization units, product groups, or nested settings.
The full lab is intentionally loaded on request. That keeps this reading page fast while preserving the strong and weak states, keyboard checks, and failure scenarios.
The choices are naturally hierarchical, such as folders, permissions, taxonomy categories, organization units, product groups, or nested settings.
Provide a labelled tree selection widget with expandable branches, selectable treeitems, explicit selected or checked state, mixed parent state when needed, focus independent from selection, keyboard navigation, typeahead, and clear rules for branch and leaf selection.
Initial tree state with visible label and root-level nodes.
Collapsed selected descendants become invisible and unannounced.
Use role tree on the container and provide an accessible name.
W3C Web Accessibility Initiative - checked
APG defines tree view hierarchy, expansion, focus movement, single and multi-select behavior, focus versus selection, typeahead, aria-activedescendant, labels, and selected-state properties.
MDN Web Docs - checked
MDN documents tree role hierarchy, accessible names, aria-expanded placement, aria-multiselectable, focus versus selected state, keyboard navigation, and dynamic node properties.
MDN Web Docs - checked
MDN documents treeitem selection with aria-selected or aria-checked, single versus multi-selection constraints, accessible names, group nesting, and JavaScript keyboard requirements.
MUI X - checked
MUI documents practical tree selection modes, checkbox selection, multi-selection, leaf-only selectable items, controlled selected items, and selection-change tracking.
Source trail checked: