Skip to content
Honor Society®Brand system

v0.15.1

Navigation

Site header

The header of a subsite (the store, the help center): a return strip, then a sticky navy bar with the lockup and five fixed slots.

Block
.hs-header
CSS
components/header.css (in /brand.css)
JS
components/header.js: load it only on a page with this component
Status
Built, open to change
Markdown
/components/header.md

What it is

The header of every page on a subsite, on flat navy deep (--hs-navy-deep). It has two parts:

  1. Return strip (desktop only, 40px): the way back to www, up to two utility links, then the account. It scrolls away.
  2. Main bar (64px, 72px from 62rem): it sticks. It holds five slots in a fixed order: lockup, nav, search, account, action.

The lockup is the Honor Society logo, a hairline and the subsite name in the serif’s small caps: “Honor Society | Store”, “Honor Society | Help Center”. It shows which part of Honor Society the visitor is in. www keeps its own header and has no lockup: it is the parent.

When to use

  • Every page of a subsite: the store and the help center.
  • A future subsite: give it a name and fill the slots it needs.

When not to use

  • www: it keeps its own header.
  • An email, a print page or a page inside a dialog.

Rules

  • Compose it as header.hs-header[data-section="header"] > .hs-header__strip + .hs-header__bar. Load header.css after search.css and button.css, and load header.js.
  • Keep the five slots in this order: lockup, nav, search, account, action. A subsite fills a slot or leaves it empty. It never moves a slot.
  • Lockup: a.hs-header__lockup > img.hs-header__mark + span.hs-header__name, with no space between the two. The image is the white logo SVG (207×43, alt="Honor Society®"). The link goes to the subsite home. The name is “Store” or “Help Center”.
  • The CSS sets the lockup sizes: logo 28px / 32px / 36px high, name 14px / 15px / 16px (phone, from 36rem, from 62rem). The name sits on the baseline of the logo’s wordmark. Below 375px the name is Mukta 600 13px.
  • The lockup name is the one serif text under 16px in the brand. It is part of the logo, not text.
  • Strip: a.hs-header__strip-link.hs-header__back first, with the text “HonorSociety.org” in span.hs-header__strip-text, to https://www.honorsociety.org/. Then up to two utility links (the store: phone and contact). The account comes last, as a.hs-header__strip-link.hs-header__account or the platform’s own user menu.
  • Nav: nav.hs-header__nav > ul.hs-header__nav-list > a.hs-header__nav-link, at most six links. The nav needs a desktop row of 60rem or more; on a narrower row its links stay in the menu panel, and the menu button stays. From 60rem to 69rem the header search is the magnifier and its panel; from 69rem it is the box. The current page takes aria-current="page". Hover and the current page show a white underline, never gold. A nav item that opens a platform dropdown keeps that dropdown and takes this link style.
  • With a nav, the nav sits centred between the lockup and the end group. Without a nav, the end group goes to the end of the bar.
  • Search: the compact Search with .hs-header__search, in .hs-header__end. A page that has its own search shows no header search, in the bar or as a phone panel.
  • Action: one per subsite. The help center uses the gold .hs-button.hs-button--sm.hs-header__action “Contact Member Services” in .hs-header__end. The store uses the cart: a.hs-header__icon with span.hs-header__count, in .hs-header__tools, at every width.
  • One gold element per viewport: header.js sets .hs-header--quiet while a gold button of the page is in view, and the header button turns white.
  • Phone: .hs-header__tools holds the search panel button, the icon links, then the menu panel button. Each panel is details.hs-header__drawer[name="hs-header"] with a summary.hs-header__icon, so opening one closes the other.
  • Menu panel: ul.hs-header__menu with the nav links, then the account links, then li.hs-header__menu-back with the link to www. The help center action follows the list as .hs-button.hs-button--block.
  • A band on navy under the header starts one step lighter (the treatment B ground from navy), so the header and the band read as two bands.
  • Each link carries the platform’s PostHog attributes, with cta-loc header-top (strip), header-logo, header, or header-menu.

Accessibility

  • The lockup link reads “Honor Society® Help Center”: the image alt, then the visible name.
  • Landmarks: header, the desktop nav (named after the subsite, such as “Store”) and the menu panel nav (“Store menu”). Each name is unique on the page.
  • Each panel button holds a visually hidden name (“Search”, “Menu”). Each SVG is aria-hidden="true" focusable="false". The cart link names its count (“Cart, 2 items”).
  • Targets: the panel buttons and icon links are 44px squares, the nav links 44px tall, the strip links 40px tall.
  • Focus: the 3px action-gold outline. On the 44px buttons it sits inside the button (-2px offset).
  • Contrast on navy deep: white 14.8:1, white 86% 11.2:1, gold menu text on hover 12.4:1, the cart count 14.8:1.
  • Without JavaScript the panels still open and close, and the header button stays gold. header.js adds Escape to close, focus in the search field and close on a link click.
  • While a phone panel is open, the page under it does not scroll. Transitions stop under prefers-reduced-motion: reduce.

Variants

Help center

No nav. The search and the gold button share the end group; the phone menu ends with the button.

Full-width preview: the snippet sets its own ground

Honor Society®Help Center
Contact Member Services
Menu
<header class="hs-header" data-section="header">
  <div class="hs-header__strip">
    <div class="hs-container hs-header__strip-row">
      <a class="hs-header__strip-link hs-header__back" href="https://www.honorsociety.org/"><span class="hs-header__strip-text">HonorSociety.org</span></a>
      <a class="hs-header__strip-link hs-header__account" href="/hc/en-us/signin">Sign in</a>
    </div>
  </div>
  <div class="hs-header__bar">
    <div class="hs-container hs-header__row">
      <a class="hs-header__lockup" href="/hc/en-us"><img class="hs-header__mark" src="/placeholders/logo-white.svg" width="207" height="43" alt="Honor Society®"><span class="hs-header__name">Help Center</span></a>
      <div class="hs-header__end">
        <form class="hs-search hs-search--compact hs-header__search" role="search" method="get" action="/hc/en-us/search">
          <label class="hs-visually-hidden" for="header-search-hc">Search help articles</label>
          <input class="hs-search__input" id="header-search-hc" type="search" name="query" placeholder="Search help articles">
          <button class="hs-search__clear" type="button" aria-label="Clear search"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" aria-hidden="true" focusable="false"><path d="M6 6l12 12M18 6 6 18"/></svg></button>
          <button class="hs-search__button hs-search__button--icon" type="submit" aria-label="Search"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" aria-hidden="true" focusable="false"><circle cx="11" cy="11" r="6.5"/><path d="m16 16 4.5 4.5"/></svg></button>
        </form>
        <a class="hs-button hs-button--sm hs-header__action" href="/hc/en-us/requests/new">Contact Member Services</a>
      </div>
      <div class="hs-header__tools">
        <details class="hs-header__drawer hs-header__drawer--search" name="hs-header">
          <summary class="hs-header__icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" aria-hidden="true" focusable="false"><circle cx="10.5" cy="10.5" r="6.5"/><path d="M15.5 15.5 20.5 20.5"/></svg><span class="hs-visually-hidden">Search</span></summary>
          <div class="hs-header__panel">
            <form class="hs-search" role="search" method="get" action="/hc/en-us/search">
              <label class="hs-visually-hidden" for="panel-search-hc">Search help articles</label>
              <input class="hs-search__input" id="panel-search-hc" type="search" name="query" placeholder="Search help articles">
              <button class="hs-search__clear" type="button" aria-label="Clear search"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" aria-hidden="true" focusable="false"><path d="M6 6l12 12M18 6 6 18"/></svg></button>
              <button class="hs-button hs-button--navy hs-button--sm hs-search__button" type="submit">Search</button>
            </form>
          </div>
        </details>
        <details class="hs-header__drawer hs-header__drawer--menu" name="hs-header">
          <summary class="hs-header__icon"><span class="hs-header__burger" aria-hidden="true"><span></span><span></span><span></span><span></span></span><span class="hs-visually-hidden">Menu</span></summary>
          <nav class="hs-header__panel" aria-label="Help Center menu">
            <ul class="hs-header__menu">
              <li><a href="/hc/en-us/signin">Sign in</a></li>
              <li class="hs-header__menu-back"><a href="https://www.honorsociety.org/">HonorSociety.org</a></li>
            </ul>
            <a class="hs-button hs-button--block" href="/hc/en-us/requests/new">Contact Member Services</a>
          </nav>
        </details>
      </div>
    </div>
  </div>
</header>

Store

Five category links in the centre, the search, then the cart. The cart stays on a phone, between the two panel buttons.

Full-width preview: the snippet sets its own ground

<header class="hs-header" data-section="header">
  <div class="hs-header__strip">
    <div class="hs-container hs-header__strip-row">
      <a class="hs-header__strip-link hs-header__back" href="https://www.honorsociety.org/"><span class="hs-header__strip-text">HonorSociety.org</span></a>
      <a class="hs-header__strip-link" href="tel:+18663136311">Call 866-313-6311</a>
      <a class="hs-header__strip-link" href="/pages/contact">Contact us</a>
      <a class="hs-header__strip-link hs-header__account" href="/account/login">Sign in</a>
    </div>
  </div>
  <div class="hs-header__bar">
    <div class="hs-container hs-header__row">
      <a class="hs-header__lockup" href="/"><img class="hs-header__mark" src="/placeholders/logo-white.svg" width="207" height="43" alt="Honor Society®"><span class="hs-header__name">Store</span></a>
      <nav class="hs-header__nav" aria-label="Store">
        <ul class="hs-header__nav-list">
          <li><a class="hs-header__nav-link" href="/collections/all" aria-current="page">Shop all</a></li>
          <li><a class="hs-header__nav-link" href="/collections/member-packages">Member packages</a></li>
          <li><a class="hs-header__nav-link" href="/collections/branded-items">Branded items</a></li>
          <li><a class="hs-header__nav-link" href="/collections/graduation-regalia">Graduation regalia</a></li>
          <li><a class="hs-header__nav-link" href="/collections/apparel">Apparel</a></li>
        </ul>
      </nav>
      <div class="hs-header__end">
        <form class="hs-search hs-search--compact hs-header__search" role="search" method="get" action="/search">
          <label class="hs-visually-hidden" for="header-search-store">Search the store</label>
          <input class="hs-search__input" id="header-search-store" type="search" name="q" placeholder="Search the store">
          <button class="hs-search__clear" type="button" aria-label="Clear search"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" aria-hidden="true" focusable="false"><path d="M6 6l12 12M18 6 6 18"/></svg></button>
          <button class="hs-search__button hs-search__button--icon" type="submit" aria-label="Search"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" aria-hidden="true" focusable="false"><circle cx="11" cy="11" r="6.5"/><path d="m16 16 4.5 4.5"/></svg></button>
        </form>
      </div>
      <div class="hs-header__tools">
        <details class="hs-header__drawer hs-header__drawer--search" name="hs-header">
          <summary class="hs-header__icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" aria-hidden="true" focusable="false"><circle cx="10.5" cy="10.5" r="6.5"/><path d="M15.5 15.5 20.5 20.5"/></svg><span class="hs-visually-hidden">Search</span></summary>
          <div class="hs-header__panel">
            <form class="hs-search" role="search" method="get" action="/search">
              <label class="hs-visually-hidden" for="panel-search-store">Search the store</label>
              <input class="hs-search__input" id="panel-search-store" type="search" name="q" placeholder="Search the store">
              <button class="hs-search__clear" type="button" aria-label="Clear search"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" aria-hidden="true" focusable="false"><path d="M6 6l12 12M18 6 6 18"/></svg></button>
              <button class="hs-button hs-button--navy hs-button--sm hs-search__button" type="submit">Search</button>
            </form>
          </div>
        </details>
        <a class="hs-header__icon" href="/cart" aria-label="Cart, 2 items"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M5 8h14l-1 12H6zM9 8V6.5a3 3 0 0 1 6 0V8"/></svg><span class="hs-header__count" aria-hidden="true">2</span></a>
        <details class="hs-header__drawer hs-header__drawer--menu" name="hs-header">
          <summary class="hs-header__icon"><span class="hs-header__burger" aria-hidden="true"><span></span><span></span><span></span><span></span></span><span class="hs-visually-hidden">Menu</span></summary>
          <nav class="hs-header__panel" aria-label="Store menu">
            <ul class="hs-header__menu">
              <li><a href="/collections/all" aria-current="page">Shop all</a></li>
              <li><a href="/collections/member-packages">Member packages</a></li>
              <li><a href="/collections/branded-items">Branded items</a></li>
              <li><a href="/collections/graduation-regalia">Graduation regalia</a></li>
              <li><a href="/collections/apparel">Apparel</a></li>
              <li><a href="/account/login">Sign in</a></li>
              <li class="hs-header__menu-back"><a href="https://www.honorsociety.org/">HonorSociety.org</a></li>
            </ul>
          </nav>
        </details>
      </div>
    </div>
  </div>
</header>