Human and agent selector
The selector at the bottom of the window switches a page between two views. Human shows the page as designed, and Agent shows the same content as plain text.
One page, two views
It floats at the bottom center of the window, in the same place on each page, and your choice holds as you move from page to page. For agents describes what the Agent view holds.
Anatomy
A capsule with two options, the chosen one filled in Werklist blue. It floats above the page and the header, and below menus and dialogs.
- Height
- 48 px
- Option
- 40 px high, 16 px padding each side
- --space-4
- Inner padding
- 4 px
- --space-1
- Label
- 14 px on 20 px, weight 500
- --type-nav
- Shape
- Full radius
- --radius-full
- Surface
- Raised
- --surface-1
- Shadow
- Level 2
- --elevation-2
- Distance from the bottom
- 16 px plus the safe area
- Layer
- Above the header, below menus and dialogs
- --layer-selector
States
The blue moves to the option you choose, with a 150 ms fade that reduced motion drops. In high contrast mode, where fills disappear, the chosen option keeps an outline.
The selector hides when you print, and while a dialog or the menu is open.
- Option at rest
- Muted ink
- --text-muted
- Option on hover
- Control fill, full ink
- --surface-control
- Chosen option
- Werklist blue, white label
- --brand-true
- Focus
- 2 px ring
- --focus-ring
Keyboard and screen readers
The selector is a radio group named View, placed right after the skip link, so the keyboard reaches it before the header. Choosing a view changes the page at once and leaves focus on the selector.
- Tab
- Reaches the chosen option
- Arrow keys
- Move to the other option and choose it
- Home and End
- Choose the first or the last option
Permitted and not permitted
Permitted
Two options with plain names
Human and Agent.
Not permitted
A switch or a checkbox for the view
The two views are equals, not on and off.
Hiding the selector while you scroll
People look for it in the same place each time.
More controls in the capsule
The theme switch has its own place at the top.