Breadcrumbs

Overview

Breadcrumbs are used to help users navigate the SAMHSA website.

Usage

Breadcrumbs are used on breakpoints large and greater. They are displayed on all pages with the exception of Home and Search.

Functionality

Accessibility

There is not HTML property for breadcrumbs. So to help make them usuable for screen readers, it is recommended that these guidelines are followed.

Code

HTML

  <nav class="breadcrumb" aria-label="breadcrumb">
  <ol>
    <li><a href="/">Home</a></li>
    <li><a href="/grandparent">Grandparent</a></li>
    <li><a href="/parent">Parent</a></li>
    <li aria-current>Current Location</li>
  </ol>
</nav>

SCSS

Note link color and styling is consistent with global styles.

  .breadcrumb ol {
  padding: 10px 16px;
  list-style: none;
  li {
    display: inline;
    font-size: .75rem;
  }
  li+li:before {
    padding: 8px;
    color: black;
    content: "/\00a0";
  }
}

- footer here -