Skip to content
Fleetline

Page header

Usage

Every Fleetline page opens with a page header: where you are (breadcrumbs), what this is (title + status), and what you can do (actions). It sits at the top of <main>, below the top nav.

Anatomy

  1. Breadcrumbs (optional) — .page-header__breadcrumbs
  2. Title — h1.page-header__title
  3. Description (optional) — .page-header__description
  4. Meta — ul.page-header__meta with .page-header__status[data-tone]
  5. Actions — .page-header__actions: buttons + overflow menu button
  6. Section tabs (optional) — nav.tabs.page-header__tabs

Examples

The overflow menu is live (js/menu.js). Narrow the window: actions wrap under the title (container query at 40rem).

API

HookValuesPurpose
.page-headerblock class<header> inside <main>; inline-size container
.page-header__breadcrumbs | __main | __heading | __title | __description | __meta | __meta-item | __meta-icon | __actions | __tabspartsSee anatomy
.page-header__status[data-tone]part + attributesuccess | warning | danger | info dot next to the status word

Do and don't

Title "Van KX-219" · status "In service" · actions "Print job sheet", "New work order", "More actions"

Do show one primary action and move the rest into the overflow menu.

Title "Details" · five primary buttons

Don't use a generic title or several primary actions.

Accessibility

Keyboard interaction
KeyBehavior
TabBreadcrumb links → actions → overflow menu → section tabs
↓ / Enter (More actions)Opens the overflow menu (see Menu button)

Tokens

Custom propertyPurpose
--typography-h1-font-family | -weight | -line-height, --typography-h2-font-sizeTitle
--color-text-mutedDescription and meta
--color-feedback-{success|warning|danger|info}-iconStatus dot
--space-*Rhythm between rows
--size-measureDescription line length