Breadcrumbs and back links
The way up from a page: a back link when the page sits one level below its parent, a breadcrumb trail when it sits two or more levels down.
When to use
- Back link: a page one level below a list or a section: a job opened from the results ("Back to results"), a Security sub-page ("Back to Security"), an admin page under People ("Back to people") (canonical §10.17, D-CSN-17).
- Trail: a page two or more levels below the top of its area: Global ID's guest import, under one guest list (Guest lists / Open Doors / Import guests).
- The detail template starts with it, above the notices and the title block (canonical §11 template 5); the admin record starts with it (template 7).
When not to use
- Top-level pages: the site header or the app's navigation shows where people are.
- Steps of one task: use the stepper and its Back button, not a trail.
- Leaving an app for its home page in a console: the drawer's outlined "Back to …" button belongs to the navigation drawer (canonical §10.15).
- A "Back" that only replays browser history: link to the real parent page instead, so the link works when the page was opened directly.
- Never both on one page: one level up takes the back link, two or more the trail.
Anatomy
Back link
- Navigation (
<nav class="oa-breadcrumb" aria-label="Breadcrumb">). - Link (
oa-back-link): 48px tall. - Icon:
arrow_backat 20px, mirrored in RTL. - Label: "Back to {place}".
Trail
- Navigation (
<nav class="oa-breadcrumb" aria-label="Breadcrumb">). - List (
<ol class="oa-breadcrumb__list">), from the top level down. - Item (
oa-breadcrumb__item) holding a link (oa-breadcrumb__link) and a separator (oa-breadcrumb__sep, "/",aria-hidden). - Current page (
oa-breadcrumb__current): last, plain text,aria-current="page".
Variants
| Variant | Use for | Key tokens |
|---|---|---|
| Back link | one level up | --color-primary-ink, --text-label-lg, --size-touch-target |
| Trail | two or more levels | --text-body-md, --color-on-surface-variant links, --color-on-surface current |
Sizes
| Part | Height | Padding | Type style | Icon |
|---|---|---|---|---|
| Back link | 48px, at least 48px wide | 8px at the inline end, taken back by a −8px margin, so the focus ring clears the last letter; 8px between icon and label | label-lg |
arrow_back 20px (oa-icon--md) |
| Trail link | 48px, at least 48px wide (a short label sits centered in it) | none | body-md |
— |
| Separator | — | 8px on each side | body-md |
— |
| Current page | its line | none | body-md |
— |
Tokens
| Part | Property | Token |
|---|---|---|
| Back link | text and icon | --color-primary-ink, --text-label-lg |
| Back link | gap, end padding, height | --space-2 (the gap and the end padding), --size-touch-target |
| Trail | text | --text-body-md |
| Trail link | text | --color-on-surface-variant |
| Separator | color, space | --color-on-surface-variant, --space-2 |
| Current page | text | --color-on-surface |
| Links | focus | the ring (--color-focus-ring, --size-focus-ring, --size-focus-offset) with --radius-8px corners |
States
| State | Back link | Trail link |
|---|---|---|
| Enabled | primary-ink, no underline |
on-surface-variant, no underline |
| Hover (pointer devices) | underlined | underlined |
| Focus-visible | the 3px ring with 8px corners | the same ring |
| Pressed | no state layer (text links take none, canonical §2.7) | none |
| Current | — | the last item, plain on-surface text with aria-current="page" |
| Disabled | never: no link without a target | never |
Behavior
- The back link goes to the parent page, by URL: from search results it may return to them with their query ("Back to results"), otherwise to the list ("Back to people").
- The trail wraps onto more lines on narrow windows; it never truncates or scrolls sideways (canonical §10.17). Each line is 48px tall because each link is.
- Nothing animates; the arrow never nudges on hover (C-1).
Accessibility
<nav aria-label="Breadcrumb">("مسار التنقل", "Fil d’Ariane") for both forms, so screen-reader users find the way up the same way everywhere.- The trail is an ordered list; the current page is plain text with
aria-current="page", not a link to itself. Separators arearia-hidden. - The back link's accessible name is its visible text ("Back to Security"); the arrow is
aria-hidden. - Every link is at least 48 × 48px (D-LAY-12); a short label sits centered in its box, so the spacing around the separators stays even.
- Contrast:
primary-inkon the page color 6.79:1 (10.85:1 dark);on-surface-variant8.88:1 (10.87:1 dark).
RTL and languages
arrow_backmirrors in Arabic, pointing right, because back runs toward the inline start (canonical §8.3); the "/" separator never mirrors.- The trail runs from the right in Arabic. Names people typed, such as a list name, are isolated:
<bdi dir="auto">Open Doors</bdi>(user content, canonical §14.2). - Arabic labels keep
label-lgandbody-mdat line height 1.75 inside the 48px rows.
Content
- Back link: "Back to {place}", where {place} is the parent page's own title in sentence case: "Back to Security" / "العودة إلى الأمان" / "Retour à Sécurité"; "Back to results"; "Back to people" / "العودة إلى الأشخاص" / "Retour aux personnes". Never "Back" alone, never "Go back".
- Trail: each item is the page's own title: "Guest lists" / "قوائم الضيوف" / "Listes d’invités"; the list's own name ("Open Doors"); the current page last: "Import guests" / "استيراد الضيوف" / "Importer des invités".
- Product names stay Latin: "Back to my Global ID" / "العودة إلى Global ID الخاص بي" / "Retour à mon Global ID".
Do and don't
| Do | Don't |
|---|---|
Use "Back to {place}" with a mirrored arrow_back for one level. |
Use a forward arrow or a chevron for "back". |
| Use a trail only from two levels down. | Show a two-item trail for a page one level deep. |
| Let a long trail wrap. | Truncate trail items or scroll the trail sideways. |
Make the current page plain text with aria-current="page". |
Link the current page to itself. |
| Keep 48px targets. | Shrink back links to 44px or trail text to 13px. |
Code
HTML (reference CSS)
The back link:
<nav class="oa-breadcrumb" aria-label="Breadcrumb">
<a class="oa-back-link" href="#security"><span class="oa-icon oa-icon--md oa-icon--mirror" aria-hidden="true" translate="no">arrow_back</span>Back to Security</a>
</nav>The trail:
<nav class="oa-breadcrumb" aria-label="Breadcrumb">
<ol class="oa-breadcrumb__list">
<li class="oa-breadcrumb__item"><a class="oa-breadcrumb__link" href="#guest-lists">Guest lists</a><span class="oa-breadcrumb__sep" aria-hidden="true">/</span></li>
<li class="oa-breadcrumb__item"><a class="oa-breadcrumb__link" href="#open-doors">Open Doors</a><span class="oa-breadcrumb__sep" aria-hidden="true">/</span></li>
<li class="oa-breadcrumb__item"><span class="oa-breadcrumb__current" aria-current="page">Import guests</span></li>
</ol>
</nav>Tailwind CSS v4
<nav aria-label="Breadcrumb">
<a href="/security" class="-me-2 inline-flex min-h-12 min-w-12 items-center gap-2 rounded-8px pe-2 text-label-lg text-primary-ink no-underline underline-offset-4 hover:underline">
<span class="oa-icon oa-icon--md oa-icon--mirror" aria-hidden="true" translate="no">arrow_back</span>Back to Security
</a>
</nav>
<nav aria-label="Breadcrumb">
<ol class="m-0 flex list-none flex-wrap items-center p-0 text-body-md text-on-surface-variant">
<li class="inline-flex min-w-0 items-center"><a href="/admin/guests" class="inline-flex min-h-12 min-w-12 items-center justify-center rounded-8px text-on-surface-variant no-underline underline-offset-4 hover:underline">Guest lists</a><span class="mx-2" aria-hidden="true">/</span></li>
<li class="inline-flex min-w-0 items-center"><span class="text-on-surface wrap-anywhere" aria-current="page">Import guests</span></li>
</ol>
</nav>On the arrow, write oa-icon--mirror in place of rtl:-scale-x-100, never both: together they flip it back. Every setup keeps the .oa-icon block, which defines the class (canonical §8.3, D-BCP-33).
React
| Prop | Type | Default | Description |
|---|---|---|---|
back |
{ href: string; label: string } |
— | One level up: renders the back link; label is the full "Back to {place}". |
trail |
{ href: string; label: string }[] |
— | Two or more levels: the ancestors, top first. |
current |
string |
— | The current page's title, last in the trail. |
label |
string |
'Breadcrumb' |
Localized name of the nav. |
<Breadcrumb back={{ href: '/security', label: 'Back to Security' }} />
<Breadcrumb
trail={[{ href: '/admin/guests', label: 'Guest lists' }, { href: '/admin/guests/open-doors', label: 'Open Doors' }]}
current="Import guests"
/>