<nav aria-label="breadcrumb">
<ol class="breadcrumbs">
<li class="breadcrumbs__breadcrumb">
<a href="#" class="breadcrumbs__breadcrumb-link">Home</a>
</li>
<li class="breadcrumbs__breadcrumb">
<a href="#" class="breadcrumbs__breadcrumb-link">Parent</a>
</li>
<li class="breadcrumbs__breadcrumb">
<span class="breadcrumbs__breadcrumb-link" aria-current="page">Child</span>
</li>
</ol>
</nav>
<nav aria-label="breadcrumb">
<ol class="breadcrumbs">
<li class="breadcrumbs__breadcrumb">
<a href="#" class="breadcrumbs__breadcrumb-link">Home</a>
</li>
<li class="breadcrumbs__breadcrumb">
<a href="#" class="breadcrumbs__breadcrumb-link">Parent</a>
</li>
<li class="breadcrumbs__breadcrumb">
<span class="breadcrumbs__breadcrumb-link" aria-current="page">Child</span>
</li>
</ol>
</nav>
/* No context defined for this component. */
.breadcrumbs {
display: flex;
flex-direction: row;
margin: 0;
padding: 0;
&__breadcrumb {
display: flex;
margin: 0;
list-style-type: none;
&:not(:last-child) {
&::after {
padding: 0 .5rem;
color: color(neutral, base);
content: '/';
}
}
}
&__breadcrumb-link {
&[aria-current] {
color: color(neutral, dark);
}
}
}
Breadcrumbs are used to track and display where the user is in the hierarchy of the current page, relative to the structure of the website.
nav
element with aria-label=“breadcrumb”
aria-current
attribute.Tab
= Move to next focusable elementEnter
= Navigate to focused linkWhen interacting with breadcrumb navigation, screen readers should announce the following information:
When navigating the breadcrumb list, the following tab order is expected: