Menu

Simple grid-based list of menu items intended for subnavigation. Columns can be controlled using u-size* utilities.

<ul class="Menu">
  <li class="Menu-cell u-md-size1of2">
    <a class="Menu-item" href="">
        Mabelle Reed
      </a>
  </li>
  <li class="Menu-cell u-md-size1of2">
    <a class="Menu-item" href="">
        Jeanette Conner
      </a>
  </li>
  <li class="Menu-cell u-md-size1of2">
    <a class="Menu-item" href="">
        Helen Cooper
      </a>
  </li>
  <li class="Menu-cell u-md-size1of2">
    <a class="Menu-item" href="">
        Ola Green
      </a>
  </li>
  <li class="Menu-cell u-md-size1of2">
    <a class="Menu-item" href="">
        Chase Mullins
      </a>
  </li>
  <li class="Menu-cell u-md-size1of2">
    <a class="Menu-item" href="">
        Sarah Barker
      </a>
  </li>
</ul>

It can be helpful to highlight the currently selected item in a menu.

We recommend using the aria-current attribute for this, but if that's not possible you can achieve the same styling with the is-current state class.

<ul class="Menu">
  <li class="Menu-cell">
    <a class="Menu-item"

      href="#">
      Elsie Fields
    </a>
  </li>
  <li class="Menu-cell">
    <a class="Menu-item"

      href="#">
      Sadie Jennings
    </a>
  </li>
  <li class="Menu-cell">
    <a class="Menu-item"
      aria-current="page"
      href="#">
      Lucas Curry
    </a>
  </li>
  <li class="Menu-cell">
    <a class="Menu-item"

      href="#">
      Minerva Bishop
    </a>
  </li>
  <li class="Menu-cell">
    <a class="Menu-item"

      href="#">
      Samuel Vega
    </a>
  </li>
  <li class="Menu-cell">
    <a class="Menu-item"

      href="#">
      Randy Freeman
    </a>
  </li>
</ul>

You can nest Menus inside of other menus. When doing this you should include the Menu--nested modifier on the nested menus.

Theoretically you could create a very deeply nested menu structure, but in practice we don't recommend nesting menus more than 3 levels deep.

This pattern works best with single column menus.

<ul class="Menu">
  <li class="Menu-cell">
    <a class="Menu-item" href="">
        Douglas Ingram
      </a>
    <ul class="Menu Menu--nested">
      <li class="Menu-cell">
        <a class="Menu-item" href="">
              Carolyn Briggs
            </a>
      </li>
      <li class="Menu-cell">
        <a class="Menu-item" href="">
              Chase Robertson
            </a>
      </li>
      <li class="Menu-cell">
        <a class="Menu-item" href="">
              Sallie Meyer
            </a>
      </li>
    </ul>
  </li>
  <li class="Menu-cell">
    <a class="Menu-item" href="">
        Winnie Myers
      </a>
    <ul class="Menu Menu--nested">
      <li class="Menu-cell">
        <a class="Menu-item" href="">
              Terry Waters
            </a>
      </li>
      <li class="Menu-cell">
        <a class="Menu-item" href="">
              Jeremy Frank
            </a>
      </li>
      <li class="Menu-cell">
        <a class="Menu-item" href="">
              Estella Frank
            </a>
      </li>
    </ul>
  </li>
</ul>

By default the menu is horizontally aligned with other page content. If you'd prefer the menu cells to be horizontally aligned with other page content you can achieve this with the Menu--flush modifier.

Use care when using this modifier. It relies on negative margins, so may extend out of its container.

<div class="u-pad1">
  <h4>Flush Menu</h4>

  <ul class="Menu Menu--flush">
    <li class="Menu-cell u-md-size1of2">
      <a class="Menu-item" href="">
          Jason Patton
        </a>
    </li>
    <li class="Menu-cell u-md-size1of2">
      <a class="Menu-item" href="">
          Alma Sherman
        </a>
    </li>
    <li class="Menu-cell u-md-size1of2">
      <a class="Menu-item" href="">
          Sara Parker
        </a>
    </li>
    <li class="Menu-cell u-md-size1of2">
      <a class="Menu-item" href="">
          Shane Francis
        </a>
    </li>
    <li class="Menu-cell u-md-size1of2">
      <a class="Menu-item" href="">
          Stephen Reeves
        </a>
    </li>
    <li class="Menu-cell u-md-size1of2">
      <a class="Menu-item" href="">
          Johnny Long
        </a>
    </li>
  </ul>
</div>

A more product-like menu display can be achieved using the optional Menu-object and Menu-label descendants.

<ul class="Menu">
  <li class="Menu-cell u-size1of2 u-md-size1of3 u-lg-size1of4">
    <a class="Menu-item" href="">
        <img class="Menu-object" src="data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22150%22%20height%3D%22150%22%20viewBox%3D%220%200%20150%20150%22%3E%3Crect%20fill%3D%22%23116bb1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%2F%3E%3Ctext%20fill%3D%22%23c7e4fa%22%20font-family%3D%22sans-serif%22%20font-size%3D%2230%22%20dy%3D%2212%22%20font-weight%3D%22bold%22%20x%3D%2250%25%22%20y%3D%2250%25%22%20text-anchor%3D%22middle%22%3E%3C%2Ftext%3E%3C%2Fsvg%3E" alt="">
        <span class="Menu-label">
          Christine Dawson
        </span>
      </a>
  </li>
  <li class="Menu-cell u-size1of2 u-md-size1of3 u-lg-size1of4">
    <a class="Menu-item" href="">
        <img class="Menu-object" src="data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22150%22%20height%3D%22150%22%20viewBox%3D%220%200%20150%20150%22%3E%3Crect%20fill%3D%22%23116bb1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%2F%3E%3Ctext%20fill%3D%22%23c7e4fa%22%20font-family%3D%22sans-serif%22%20font-size%3D%2230%22%20dy%3D%2212%22%20font-weight%3D%22bold%22%20x%3D%2250%25%22%20y%3D%2250%25%22%20text-anchor%3D%22middle%22%3E%3C%2Ftext%3E%3C%2Fsvg%3E" alt="">
        <span class="Menu-label">
          Jared Murray
        </span>
      </a>
  </li>
  <li class="Menu-cell u-size1of2 u-md-size1of3 u-lg-size1of4">
    <a class="Menu-item" href="">
        <img class="Menu-object" src="data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22150%22%20height%3D%22150%22%20viewBox%3D%220%200%20150%20150%22%3E%3Crect%20fill%3D%22%23116bb1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%2F%3E%3Ctext%20fill%3D%22%23c7e4fa%22%20font-family%3D%22sans-serif%22%20font-size%3D%2230%22%20dy%3D%2212%22%20font-weight%3D%22bold%22%20x%3D%2250%25%22%20y%3D%2250%25%22%20text-anchor%3D%22middle%22%3E%3C%2Ftext%3E%3C%2Fsvg%3E" alt="">
        <span class="Menu-label">
          Sallie Harmon
        </span>
      </a>
  </li>
  <li class="Menu-cell u-size1of2 u-md-size1of3 u-lg-size1of4">
    <a class="Menu-item" href="">
        <img class="Menu-object" src="data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22150%22%20height%3D%22150%22%20viewBox%3D%220%200%20150%20150%22%3E%3Crect%20fill%3D%22%23116bb1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%2F%3E%3Ctext%20fill%3D%22%23c7e4fa%22%20font-family%3D%22sans-serif%22%20font-size%3D%2230%22%20dy%3D%2212%22%20font-weight%3D%22bold%22%20x%3D%2250%25%22%20y%3D%2250%25%22%20text-anchor%3D%22middle%22%3E%3C%2Ftext%3E%3C%2Fsvg%3E" alt="">
        <span class="Menu-label">
          Elnora Marsh
        </span>
      </a>
  </li>
  <li class="Menu-cell u-size1of2 u-md-size1of3 u-lg-size1of4">
    <a class="Menu-item" href="">
        <img class="Menu-object" src="data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22150%22%20height%3D%22150%22%20viewBox%3D%220%200%20150%20150%22%3E%3Crect%20fill%3D%22%23116bb1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%2F%3E%3Ctext%20fill%3D%22%23c7e4fa%22%20font-family%3D%22sans-serif%22%20font-size%3D%2230%22%20dy%3D%2212%22%20font-weight%3D%22bold%22%20x%3D%2250%25%22%20y%3D%2250%25%22%20text-anchor%3D%22middle%22%3E%3C%2Ftext%3E%3C%2Fsvg%3E" alt="">
        <span class="Menu-label">
          Micheal Montgomery
        </span>
      </a>
  </li>
  <li class="Menu-cell u-size1of2 u-md-size1of3 u-lg-size1of4">
    <a class="Menu-item" href="">
        <img class="Menu-object" src="data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22150%22%20height%3D%22150%22%20viewBox%3D%220%200%20150%20150%22%3E%3Crect%20fill%3D%22%23116bb1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%2F%3E%3Ctext%20fill%3D%22%23c7e4fa%22%20font-family%3D%22sans-serif%22%20font-size%3D%2230%22%20dy%3D%2212%22%20font-weight%3D%22bold%22%20x%3D%2250%25%22%20y%3D%2250%25%22%20text-anchor%3D%22middle%22%3E%3C%2Ftext%3E%3C%2Fsvg%3E" alt="">
        <span class="Menu-label">
          Eula Ball
        </span>
      </a>
  </li>
</ul>