Accessibility · Library v2.7.1
Tree Accessibility Overview
Tree provides expandable nodes, labeled selection checkboxes and a named tree container. Visible nodes, including leaves, share one roving tab stop.
Keyboard interaction
| Key | Action |
|---|---|
| Tab / Shift+Tab | Enter or leave the tree at its active node. |
| Enter | Toggle expansion of the focused parent node. |
| Space | Toggle selection when checkboxes are enabled; otherwise toggle expansion. |
| Right / Left | Expand or enter children; collapse or move to the parent. |
| Up / Down; Home / End | Move through visible nodes, including leaves, or to either boundary. |
| Printable characters | Find the next matching visible label. |
In your application
- Set i18n.treeLabel to describe the hierarchy.
- Use clear node labels and retain stable node objects when updating the tree.
Keep focus indicators visible, check contrast with your theme, and test at browser zoom. Try the component examples using only a keyboard.
Current limitations
- Applications should test focus when replacing or externally collapsing nodes while a descendant is focused.
- Selection uses native checkboxes; do not assume aria-selected or cascading selection on tree items.
This reference is based on the shipped source. It is not a WCAG conformance certificate or a claim that every browser and screen reader combination has been tested.
Compare your workflow with the W3C authoring pattern. The pattern describes the target interaction, not a guarantee of current component support.