+234 Design System

Sub-nav

Section level navigation: the price pages, the account panes, the categories under the masthead.

Price pages

HTML
<nav class="p234-subnav" aria-label="Cost of living">
  <ul>
    <li><a href="#" aria-current="page">Petrol</a></li>
    <li><a href="#">Diesel</a></li>
    <li><a href="#">Kerosene</a></li>
    <li><a href="#">Cooking gas</a></li>
    <li><a href="#">Food</a></li>
    <li><a href="#">Transport</a></li>
    <li><a href="#">Healthy diet</a></li>
  </ul>
</nav>

Account

HTML
<nav class="p234-subnav" aria-label="Account">
  <ul>
    <li><a href="#">Profile</a></li>
    <li><a href="#" aria-current="page">Saved</a></li>
    <li><a href="#">Following</a></li>
    <li><a href="#">Digest</a></li>
    <li><a href="#">API keys</a></li>
    <li><a href="#">Security</a></li>
  </ul>
</nav>

Scrolls, never wraps

On a phone the row scrolls sideways. Wrapping to a second line pushes the page content down and makes the nav look like content. The scrollbar is hidden, so the overflowing item has to be partly visible at the edge: that sliver is the only thing telling a reader there is more.

Rules

Tokens this component reads

--p234-color-ink--p234-color-ink-muted--p234-color-rule--p234-color-brand--p234-type-ui-sm-*--p234-space-4--p234-space-5--p234-layout-container--p234-border-hairline--p234-border-thick