What's new Report an issue
GIG Cymru NHS Wales, Digital Health and Care Wales

Breadcrumbs

Where the current screen sits in the product's hierarchy, and the way back up it. Two types from one set of items — the full trail, or a single step back.

Type: Multilevel

The full trail, separated by /. The current page is the last item and is never a link. Four levels is the practical maximum.

<nav aria-label="Breadcrumb">
  <ol class="sr-breadcrumbs">
    <li class="sr-breadcrumbs__item">
      <a class="sr-breadcrumbs__link" href="/">Home</a>
      <span class="sr-breadcrumbs__separator" aria-hidden="true">/</span>
    </li>
    …
    <li class="sr-breadcrumbs__item">
      <span class="sr-breadcrumbs__current" aria-current="page">Case note volume 3</span>
    </li>
  </ol>
</nav>

Type: Back

One chevron-left link to the level immediately above. For narrow screens and deep hierarchies, where the full trail would wrap onto a second line. It names its destination rather than saying "Back", because the component does not control browser history and cannot promise where "back" goes.

<nav aria-label="Breadcrumb">
  <ol class="sr-breadcrumbs sr-breadcrumbs--back">
    <li class="sr-breadcrumbs__item">
      <span class="sr-breadcrumbs__back-icon">…</span>
      <a class="sr-breadcrumbs__link" href="/patients/1">Back to JOHN, Elvet George</a>
    </li>
  </ol>
</nav>

The trail showing where the current screen sits in the product's hierarchy, and the way back up it.


When to use

When not to use

How it works

Do and don't

Accessibility

Content

Accessibility requirements

RequirementWCAG SCHow Single Record meets itTest method
Trail is a navigation landmark1.3.1A nav element labelled "Breadcrumb" wrapping an ordered list, so position and order are both conveyed.Landmark review, screen reader
Current page is identified4.1.2The last item carries aria-current="page" and is plain text, not a link to the page already open.Screen reader announce
Separators are not announced1.3.1The "/" and the back chevron are aria-hidden — visual punctuation only.Screen reader read-through
Link purpose is clear from the text2.4.4Each crumb uses its destination’s own page heading; the back link names the destination rather than saying "Back".Links-list review
Focus visible2.4.7SR cyan ring on every link.Keyboard tab