Indicate the current page’s location within a navigational hierarchy that automatically adds separators via CSS.
Changing the separator
Separators are automatically added in CSS through
::before as an inlined SVG in a
background-image, passed through Boosted’s
In order to change the breadcrumb divider, you can replace inlined
$breadcrumb-divider: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14'><path d='M9 2L7 0 0 7l7 7 2-2-5-5 5-5z'/></svg>");
The separator can be removed by setting
Since breadcrumbs provide a navigation, it’s a good idea to add a meaningful label such as
<p class="sr-only">You are here:</p> to describe the type of navigation provided in the
<nav> element, as well as applying an
aria-current="page" to the last item of the set to indicate that it represents the current page.
For more information, see the WAI-ARIA Authoring Practices for the breadcrumb pattern.