Breadcrumbs

On this page

Breadcrumbs show where a page sits in the app and link back to the pages above it. They go at the top of the page, above the header, on pages below the first level.

BreadcrumbsBreadcrumbs

Figure 1: Breadcrumbs from a list, through a clinic, to the current patient

<nav class="ph-breadcrumbs" aria-label="Breadcrumb">
  <a href="./">Patients</a>
  <a href="./">Ormsby Point</a>
  <span aria-current="page">Olivia Bennett</span>
</nav>

The kit adds the / separators. The last item is the current page: a <span> with aria-current="page", not a link.

Guidelines

  • Use relative links, so they work under the address Performance Hub serves the app from.
  • Don't show breadcrumbs on top-level pages.
  • Match each crumb to the title of the page it links to.