Skip to content
Design System
GitHub

A hierarchy from data: a nested list with guide lines, disclosure buttons and links (list), or a tree widget with arrow keys, type-ahead and one selected node (select).

Roles

What a screen reader is told each part is, measured in the examples on the Overview tab.

  • button
  • group
  • link
  • list
  • listitem
  • region
  • tree
  • treeitem

Keyboard

KeysAction
Tablist: move between links and disclosure buttons. select: move into the tree (one stop) and out
EnterSpacelist: open or close a branch, follow a link. select: select the focused node
↑↓select: previous or next node on screen
→select: open a closed branch; on an open one, move to its first child
←select: close an open branch; otherwise move to the parent
HomeEndselect: first or last node on screen
Type lettersselect: move to the next node whose name starts with them
*select: open every branch beside the focused node

Colour contrast

Computed from the shipped theme for the colours this component uses, on page and card backgrounds; the lower of the two is shown. WCAG 2.2 AA.