Clinia UI

Site header

What the header of a Clinia site holds, how it behaves on the home page, inner pages and phones, and what to keep out of it.

What the header does

The header tells users which Clinia site they're on. It lets them search the site, move between its sections and reach its main action. The developer documentation and the help centre share one header, so a user crossing from one to the other keeps their bearings.

Show the header of
An inner page. Pick a tab, then scroll inside the frame: the shadow fades in under the header.

Anatomy

On a wide screen the header has two rows.

  1. Site row: the product lockup on the left, search in the centre, and the utilities on the right.
  2. Section tabs: one tab per top-level section of the site, with the current one marked.
  1. 1Product lockupdata-slot="header-lockup"
  2. 2Searchdata-slot="header-search"
  3. 3Utilitiesdata-slot="header-utilities"
  4. 4Section tabsdata-slot="header-tabs"
  5. 5Current tabdata-slot="header-current-tab"border-accent
PartWhat it holdsRule
Product lockupThe wordmark and the site's nameLinks to the site's home page. See Logo.
SearchA field-shaped button that opens the site's searchCentred, with its keyboard shortcut shown.
UtilitiesLinks to other Clinia sites, then a link to a page of this site that users need from anywhere, then the language, the theme and the main actionRight-aligned. Only what the site needs: a site without a dark theme has no theme switch. The help centre's page link is Submit a request.
Section tabsThe site's top-level sections, in its own orderPages on this site only.

Home page and inner pages

Inner pages

Inner pages set the header on a solid panel in the page's background colour, edge to edge. No line sits under it: once the page scrolls, a soft shadow fades in and separates it from the content.

An article on the help centre: the shadow fades in as the page scrolls, and the header keeps its size.

The home page

The home page header starts transparent, over its hero. When the page scrolls, the panel slides down behind the header. The hero runs up under the header: pull it up by the header's height, or a strip of page colour shows above the hero. The home page can drop the search when its hero holds a search field, and the tabs when the page lists the sections itself.

The help centre's home page: the panel slides down once the hero passes under the header, and back up at the top.
The home page. Scroll inside the frame: the panel slides down behind the header once the hero passes under it.

Phones and tablets

Below 1024px the tabs move into a menu. The site row keeps the lockup, a search button, the language and a menu button. Links to other sites and the page link move into the menu with the tabs.

Help Centre
FR

Getting Started

Getting Started

Below 1024px. Open the menu to move between sections, or scroll the page.

Do and don't

Do mark the current tab with ink text and a Trust underline.
Don't set tab text in Trust: at 14px it fails contrast.
Do let a soft shadow separate the header once the page scrolls.
Don't draw a line under the header.
Do keep the main action as the only filled button.
Don't add a second filled button beside it.
Do draw the search field at the 8px controls radius.
Don't round it into a pill.
Do put links to other sites in the site row, with an outward arrow.
Don't mix them in with the tabs, which move within the site.

Also:

  • Keep the header identical on every inner page of a site. Only the current tab changes.
  • Keep tab labels to one to three words. If the tabs don't fit at 1024px, cut a tab rather than shrink the text.
  • Open links to other sites in a new tab.
  • Keep the header the same height as the page scrolls: never shrink or hide it, and never use Vital in it.

Accessibility

  • The header is a header landmark, and the tabs a nav with its own label.
  • The current tab carries aria-current="page", so screen readers announce it too.
  • Every control is at least 24px tall and shows the focus ring.
  • The search button names its shortcut. Closing the search returns focus to the button that opened it.
  • With reduced motion, the home page's panel appears without sliding.