PedanticDesign System · aCo

Header

The navy bar at the top of every aCo page. It carries the brand, the product name, and primary navigation — and nothing else. The header at the top of this page is a live instance.

Anatomy

<header class="pds-header">
  <div class="pds-header__inner">
    <a class="pds-header__brand" href="/">
      <img src="/assets/aco-logo-circle.png" alt="" width="40" height="40">
      <span>Pedantic<small>Design System · aCo</small></span>
    </a>
    <button class="pds-nav__toggle" type="button" aria-expanded="false"
      aria-controls="primary-nav-list">Menu</button>
    <nav class="pds-nav" aria-label="Primary">
      <ul class="pds-nav__list" id="primary-nav-list">
        <li><a class="pds-nav__link" href="/" aria-current="page">Overview</a></li>
        <li><a class="pds-nav__link" href="/foundations.html">Foundations</a></li>
        <li><a class="pds-nav__link" href="/components/buttons.html">Components</a></li>
      </ul>
    </nav>
  </div>
</header>

Rules

Do

Keep the header to brand + primary navigation. Put page-level actions in the page, not the header.

Always precede the header with the skip link.

Don’t

Don’t add a second navigation row, a promotional banner, or a search box to the header unless the product spec calls for it — search has its own component and placement rules.

Accessibility notes