Navigation
App bar
The app bar is the strip at the top of every screen of a product: on the web it holds the product, search, Add, notifications and the signed-in person, and on phones it becomes the top bar above the page title.
In kanso-ui as AppBar
Accessibility
- Role and name: on the web the bar is the page's
<header>. Search sits in an element withrole="search", and its field is named (aria-label="Search"): the placeholder is a hint, not a label. Every icon button has anaria-label: "Search", "Notifications", "Your account", "Back to projects", "Project options". - Keyboard: Tab follows the visual order: search, Add, notifications, account. The page title is the page's
h1. - Targets: icon buttons and the account button are 48px (
size-control-lg); Add is 40px (size-control-md), above the 32px web minimum. - Contrast: the product's name, icons and the title,
inkonpaper, 16.7:1 in light and 15.9:1 in dark; the date line,ink-mutedonpaper, 6.4:1 and 8.9:1; the placeholder,ink-mutedonsurface-sunken, 5.9:1 and 7.2:1; Add's label and the initial,on-inkonink, 16.7:1 and 15.9:1; the focus ring, 7.3:1 and 9.0:1. - Motion: only Add's press, which
prefers-reduced-motion: reduceremoves.