Breadcrumbs

Breadcrumbs consist of a list of links that help a user visualize a page's location within the hierarchical structure of a website, and allow navigation up to any of its "ancestors".

Variations

copydone
copydone
copydone
copydone
copydone
copydone

Usage

Breadcrumbs consist of a list of links that help a user visualize a page's location within the hierarchical structure of a website, and allow navigation up to any of its "ancestors". On small screens only the last two elements are available. Links length is limited to 20 characters

Specs

Breadcrumbs come in 2 styles (elevated and flat). Text overflow ellipsis is used to prevent overflow on large texts. On smaller screens, only the current and the previous items are shown (to save screen real estate).

  • elevated: Elevated look with 3.5rem height, 1rem horizontal padding and 0.375rem (6px) border radius and drop shadow (shadow-md)
  • flat: No background or shadow, keeping the height the same as the line height 1.5rem (24px), better fit for minimal designs

Accessibility notes

Breadcrumbs are implemented with a <nav> HTML tag to apply semantic meaning to its use. The markup includes an aria-label="breadcrumbs" to describe the type of navigation. The aria-current="page" role is used for the last element that points to the current page. This will tell assistive technology (AT) devices that the focused link is pointing to the current page.