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
Variants and sizes
k-appbar: web, 64px,paperwith adividerbelow.k-topbar: phone, 56px, no divider; the avatar on the left, search and notifications on the right after ak-appbar__spacer.k-topbar--back: phone,arrow_backon the left andmore_horizon the right for the page's options; its 4px inset lines the arrow up with the 16px page margin.
States
- The bars have no states of their own: icon buttons and Add take the hover and pressed layers (
state-hover,state-pressed), and Add presses to 98%. - Focus: the 2px
focus-ring. The search pill draws it around the whole pill while its field has focus. - New notifications: say so in the button's name, "Notifications, 2 new", not with a dot alone.
Do and don’t
Do
Keep one Add button, in ink, in the same place on every web screen.
Keep search in the middle of the web bar and at the top right on phones.
Don’t
Paint Add with
accent: the accent belongs to the one highlighted action on the page.Show the FAB and the app bar's Add button at the same time.
Add more than two icon buttons on the right, and don't show Back and the avatar together.
What you provide
- The product name (its square takes the product's
accent) and the search field's placeholder, name and scope. - The Add action, the notifications action and its count of new items, the signed-in person's initial and the account action.
- On phones, the date line and the title; for the back variant, Back's target and the page's options.