Toolbar
A toolbar holds the controls that act on the view under it. It stays on one line, and when room runs out its least used controls step aside first.
Example
A board's toolbar starts with its views and its search and ends with the one action that adds to the board. The formatting bar of an email works the same way for text.
When to use it
Use a toolbar for the controls people reach for again and again on the view in front of them, and keep it at the top of that view.
Moving between places belongs to the header, the side navigation or tabs. Settings used once a month belong behind More, or on a settings screen.
Anatomy
When room runs out
States
On a board, the tools rest on a faint fill. A pressed one, such as Assigned to me, takes a light brand tint, and the view in use takes the control gray.
In a formatting bar the tools have no fill at rest, and a pressed style such as Bold takes the selected gray.
- Tool at rest on a board
- Faint fill, muted ink
- --glass-fill-hover
- Tool at rest in a formatting bar
- No fill, muted ink
- --text-muted
- Hover
- Full ink, and the faint fill where there was none
- --text
- Pressed tool on a board
- Brand blue at 15 percent, brand ink
- --brand-ink
- View in use
- Control gray, text ink
- --surface-control
- Pressed in a formatting bar
- Selected gray, text ink
- --seg-selected
- Focus
- 2 px ring, 2 px offset
- --focus-ring
- Unavailable
- Stays in place at 50 percent opacity
Keyboard and screen readers
A toolbar has a name that says what it acts on, such as Board tools or Formatting. The controls share one Tab stop and the arrow keys move between them. The search field has a Tab stop of its own, so its arrow keys keep moving the caret. Icon only controls carry a name and a tooltip in the same words.
- Tab
- Enters at the last used control, then leaves
- Left and Right arrows
- Move between controls
- Home and End
- Jump to the first or last control
- Enter or Space
- Uses the focused control
Permitted and not permitted
Permitted
One action that adds, after the tools
Add candidate, Publish job.
A count on More
People see that controls moved, and how many.
Not permitted
A second row of tools on a wide screen
Let controls give way in their declared order.
Shrinking labels to icons to save room
Toolbars then look different from board to board.
Delete beside everyday tools
Keep destructive actions in their own group, away from the add action.