Navigation
Navigation bar
The navigation bar is the row of three to five destinations at the bottom of a phone screen; use it to move between a product's top-level sections.
In kanso-ui as NavigationBar
Accessibility
- Role and name:
<nav aria-label="Main">around real links. Each label is its link's name; icons arearia-hidden="true". The current destination carriesaria-current="page". - Keyboard: Tab and Shift+Tab move through the destinations in order; Enter follows the link. No arrow keys: these are links, not tabs.
- Targets: at 390px each destination is 76 × 52px, above the 48px phone minimum (
size-control-lg). - Contrast: rest label and icon,
ink-mutedonsurface, 6.7:1 in light and 8.1:1 in dark; current label,inkonsurface, 17.4:1 and 14.4:1; current icon,on-inkonink, 16.7:1 and 15.9:1; focus ring,accentonsurface, 7.6:1 and 8.2:1. - Motion: the pill's fill fades in
--k-motion-short(150ms);prefers-reduced-motion: reduceturns the fade off.