Canopy Breadcrumb — Best Practices
SkillDev toolsBest practices for the Canopy Breadcrumb component. Trigger when adding site hierarchy navigation, breadcrumb trails, or location-based navigation to an Angular project using Canopy.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Canopy Breadcrumb — Best Practices skill
What this skill tells your AI
The instructions your AI receives, as published by legal-and-general/canopy in skills/best-practice/breadcrumb/SKILL.md and read by ahel’s review.
This skill provides usage guidance, dos and don'ts, and input reference for the Canopy lg-breadcrumb component from @legal-and-general/canopy.
Apply this skill whenever you use LgBreadcrumbComponent or lg-breadcrumb.
Import
import {
LgBreadcrumbComponent,
LgBreadcrumbItemComponent,
LgBreadcrumbItemEllipsisComponent,
} from '@legal-and-general/canopy';
Variants
page (default)
Use for top-level, full-page contexts. The page variant applies container alignment directly to the host element via CSS (max-width, margin: auto, container padding), aligning it consistently with the page grid. No DOM grid wrapper is added — <ng-content /> is rendered directly.
<lg-breadcrumb variant="page">
<lg-breadcrumb-item>
<a href="#">
<lg-icon name="home-outline"></lg-icon>
Home
</a>
</lg-breadcrumb-item>
<lg-breadcrumb-item>
<a href="#">Products</a>
</lg-breadcrumb-item>
<lg-breadcrumb-item>
Pension
</lg-breadcrumb-item>
</lg-breadcrumb>
embedded
Use when the breadcrumb is placed within another component that already provides grid structure. No container wrapper is added.
<lg-breadcrumb variant="embedded">
<lg-breadcrumb-item>
<a href="#">Home</a>
</lg-breadcrumb-item>
<lg-breadcrumb-item>
Current page
</lg-breadcrumb-item>
</lg-breadcrumb>
Collapsing Long Trails
When there are more than 3 levels, insert lg-breadcrumb-item-ellipsis manually between items:
<lg-breadcrumb>
<lg-breadcrumb-item><a href="#">Home</a></lg-breadcrumb-item>
<lg-breadcrumb-item-ellipsis></lg-breadcrumb-item-ellipsis>
<lg-breadcrumb-item><a href="#">Category</a></lg-breadcrumb-item>
<lg-breadcrumb-item>Current page</lg-breadcrumb-item>
</lg-breadcrumb>
This must be added manually — it is not added automatically. Use it sparingly.
Inputs
LgBreadcrumbComponent
| Input | Type | Default | Required | Description |
|---|---|---|---|---|
variant | 'page' | 'embedded' | 'page' | No | Layout variant. page applies container alignment via CSS on the host; embedded renders without any container alignment for use inside other components. |
Layout Tokens
| Token | Description |
|---|---|
--breadcrumb-gap | Gap between breadcrumb items |
--breadcrumb-min-width | Minimum width of the breadcrumb list |
--breadcrumb-padding-x | Horizontal padding on the breadcrumb list |
--breadcrumb-padding-y | Vertical padding on the breadcrumb list |
These are defined by Canopy design tokens and applied automatically.
Link Colour Tokens
Breadcrumb links use the link-mono token set:
| Token | State |
|---|---|
--link-mono-rest-colour | Default/rest state |
--link-mono-hover-colour | Hover state |
--link-mono-focus-colour | Focus-visible state |
--link-mono-active-colour | Active/pressed state |
--link-mono-visited-colour | Visited state |
Dos and Don'ts
Do
- Do make the first breadcrumb a link to the homepage.
- Do reflect the user's position in the site's hierarchical structure.
- Do include the current page label in the breadcrumb trail.
- Do use
embeddedwhen placing the breadcrumb inside a component that already has grid structure.
Don't
- Don't reflect the user's session history — breadcrumbs are location-based, not history-based.
- Don't make the current page's breadcrumb a link.
- Don't use on websites with a shallow or flat structure.
- Don't duplicate main menu or secondary navigation options.
Design Constraints
- On mobile, only the one level above the current page is shown — the current page itself is hidden.
- Breadcrumbs are pending brand modernisation.
Signals
- GitHub stars
- 23
- Forks
- 46
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
canopy-breadcrumb- Source
- github.com/legal-and-general/canopy