A breadcrumb trail consists of a list of links to the parent pages of the current page in hierarchical order. It helps users find their place within a website or web application. This should be placed before a page’s main content.
nav element labeled Breadcrumb identifies the structure as a breadcrumb trail and makes it a navigation landmark so that it is easy to locate.nav element with its aria-label of Breadcrumb. Therefore using a display technique that is not used by screen readers prevents redundant and potentially distracting verbosity.When implementing breadcrumbs ensure that the output is inline with no whitespace.
<li class="breadcrumb__item"><a href="#Another thing" class="breadcrumb__link pluto">Another thing</a></li><li class...Not
<li class="breadcrumb__item">
<a href="#Another thing" class="breadcrumb__link pluto">Another thing</a>
</li>Based upon W3 principles
Global
/components/_breadcrumb.scssvars/_colours.scss
<nav class="breadcrumb" aria-label="Breadcrumb">
<ol class="breadcrumb__items">
<li class="breadcrumb__item"><a href="#Home" class="breadcrumb__link pluto">Home</a></li>
<li class="breadcrumb__item"><a href="#Item one" class="breadcrumb__link pluto">Item one</a></li>
<li class="breadcrumb__item"><a href="#Another thing" class="breadcrumb__link pluto">Another thing</a></li>
<li class="breadcrumb__item"><a href="#The other thing" class="breadcrumb__link pluto">The other thing</a></li>
<li class="breadcrumb__item breadcrumb__item--current pluto" aria-current="page">Current page</li>
</ol>
</nav>
{
"items": [
{
"item": "Home"
},
{
"item": "Item one"
},
{
"item": "Another thing"
},
{
"item": "The other thing"
}
],
"current": "Current page"
}