Screen header
Three zones on every device: where you came from, where you are, what you can do here.
Rules
Abstracted from Apple's navigation bar (iOS HIG; the same zones as a macOS window toolbar): leading = where you came from, center = where you are, trailing = what you can do here.
| Zone | Mobile top bar (setMobileHeader → MobileTopNavView) | Desktop content header (sidebar present, no top bar) |
|---|---|---|
| Leading | Below a domain root: back chevron to the parent. On a domain root: the sidebar menu. | Below a domain root: <PageBackLink>. On a domain root: nothing. |
| Center | The screen's title | Domain root: a large title (page-title) left-aligned. Deeper: the item's name as the title. |
| Trailing | The primary action as an icon (create = "+"), at most two | The same action as a page-level md button (btn btn-tinted btn-md, see Buttons) or an icon button |
- A domain root has no back affordance: the sidebar or tab bar is its "up" (Navigation → Going up one level). A root that links "back" to another product is a bug, not a shortcut.
- Create is the trailing "+", never a filled, shadowed button that outweighs the content it adds to. An empty list promotes create to its centered primary button ("Create your first X"). A grid of the user's own items may use a leading "+" tile instead (the home Hub card): one or the other per surface, never both.
- "⋯" only for two or more secondary actions. A one-item overflow menu adds a tap and hides the only action; put that action in the zone directly.
- One header per screen. On mobile the top bar carries the title, so the content column does not repeat it. Hub screens keep the top bar at every width: there the bar's center title is the screen's one
<h1>(centerTitleIsHeading, markeddata-screen-title) on desktop too, so the hub has no separate desktop content header; the rule is one pure function,resolveHubScreen/hubScreenTitleIsHeading(pkgs/util), excluding page detail (its Tiptap body may hold h1s) and sheets with their own header. Checked rendered bycheck-rendered-gutter --identity. - Button sizes in the trailing zone follow the button system's size scale; the two rules are kept in step.
- The bar's controls are
size-bar-control(48px), and its padding is fixed px; only the title is text. A control is not text, so it does not grow with the reader's text size, and 48px already clears the 44px target. Why: three rem circles plus rem padding came to about 350px at 200% text, wider than a 320 screen before any title, so the hub name vanished and the trailing "⋯" ran off the edge. A trailing control isnav-circle,btn-bar, or a pill held to the token, never a hand-sized copy. Inside the title pill the icon, gap and padding are px too, so the row's width goes to the name. - Under 22em the title takes its own row beneath the controls. An em media query, so it follows text size: a 320 screen at default text, or 390 at 150%, wraps; 768 never does. The DOM order is menu, title, actions in both states, and CSS order alone moves the title to its own row, so a screen reader reaches the page's name right after the menu; the title is still the screen's one
<h1>where it is the heading. A bar with no title never wraps. Content below clears the bar by its MEASURED height:MobileTopNavViewwrites it to--shell-mobile-top, and a layout never shadows that value with a constant, or a two-row bar covers the page's first line.
Live specimens
Weekend market notes
Weekend market notes