Sec Nav v1.1.0+

Sec Nav (i.e., secondary navigation) is a variation of navigation that is used in lieu of left navigation. It establishes a user's location within an application. Unless a firm implementation constraint requires Sec Nav, use the left navigation component for web applications.

Secondary Navigation

See the snippet below in isolation with the full-page demo.


<div id="vue-secNavDemo">
  <nav id="hxTopNav">
    <div class="hxNavGradient">
      <a class="hxTopNavLogo" href="#">
        <img src="images/helix-logo.svg" alt="Brand Logo" />
      </a>
      <div class="hxTopNavMenu hxTopNavOptionMenu">
        <hx-disclosure aria-controls="topnav-menu-options">
          <span>Select an option</span>
          <hx-icon class="hxPrimary" type="angle-down"></hx-icon>
        </hx-disclosure>
        <hx-menu id="topnav-menu-options">
          <section>
            <hx-menuitem>Option Alpha</hx-menuitem>
            <hx-menuitem>Option Beta Services</hx-menuitem>
            <hx-menuitem>Option Gamma</hx-menuitem>
          </section>
        </hx-menu>
      </div>
      <div class="hxTopNavIconMenu">
        <div>
          <a href="#" @click="notify()">
            <hx-icon type="bell"></hx-icon>
            <p>Notifications</p>
          </a>

          <a href="#" class="selected">
            <hx-icon type="ticketing"></hx-icon>
            <p>Tickets</p>
          </a>

          <a href="#">
            <hx-icon type="support"></hx-icon>
            <p>Support</p>
          </a>

          <a href="#" class="hxDisabled" id="billing">
            <hx-icon type="billing"></hx-icon>
            <p>Billing</p>
            <hx-tooltip for="billing" position="bottom-center">
              You do not have access to this area. Contact an account admin
              in your organization to request access to this item.
            </hx-tooltip>
          </a>

          <a href="#">
            <hx-icon type="account"></hx-icon>
            <p>Account</p>
          </a>
        </div>
        <div class="hxSpacer"></div>
        <div class="hxTopNavMenu">
          <hx-disclosure aria-controls="demo-user-menu">
            <hx-icon class="hxNavUser" type="user"></hx-icon>
            <span>Jane User</span>
            <hx-icon class="hxPrimary" type="angle-down"></hx-icon>
          </hx-disclosure>
          <hx-menu id="demo-user-menu" position="bottom-end">
            <section>
              <header>
                <hx-menuitem class="hxMenuKey">Account Number:</hx-menuitem>
                <hx-menuitem class="hxMenuValue">12345678</hx-menuitem>
              </header>
              <hr class="hxDivider">
              <hx-menuitem class="hxMenuValue">My Profile & Settings</hx-menuitem>
              <hr class="hxDivider">
              <footer>
                <button class="hxBtn">Log Out</button>
              </footer>
            </section>
          </hx-menu>
        </div>
      </div>
    </div>
  </nav>

  <!-- Secondary Navigation -->
  <nav id="hxSecNav">
    <a href="#" class="hxNavLink">SecNav One</a>
    <hx-disclosure aria-controls="secnav-option-menu">
      <span>SecNav Two</span>
      <hx-icon class="hxPrimary" type="angle-down"></hx-icon>
    </hx-disclosure>
    <hx-menu id="secnav-option-menu">
      <section>
          <hx-menuitem>Service Offering A</hx-menuitem>
          <hx-menuitem>Service Offering B</hx-menuitem>
          <hx-menuitem disabled>Service Offering C</hx-menuitem>
          <hx-menuitem>Service Offering D</hx-menuitem>
      </section>
    </hx-menu>
    <hx-disclosure aria-controls="secnav-option-menu-two">
      <span>SecNav Three</span>
      <hx-icon class="hxPrimary" type="angle-down"></hx-icon>
    </hx-disclosure>
    <hx-menu id="secnav-option-menu-two">
      <section>
        <header>
          L1 Section
        </header>
        <hx-menuitem>Link item 1-1</hx-menuitem>
        <hx-menuitem id="DisabledField" disabled>Link item 1-2</hx-menuitem>
          <hx-tooltip for="DisabledField" position="right-middle">
              You do not have access to this area. Contact an account admin
              in your organization to request access to this item.
          </hx-tooltip>
        </hx-menuitem>
        <hx-menuitem>Link item 1-3</hx-menuitem>
      </section>
      <hr class="hxDivider">
      <section>
        <header>
          L2 Section
        </header>
        <hx-menuitem>Link item 2-1</hx-menuitem>
        <hx-menuitem>Link item 2-2</hx-menuitem>
      </section>
    </hx-menu>
    <hx-disclosure aria-controls="secnav-option-menu-three">
      <span>SecNav Four</span>
      <hx-icon class="hxPrimary" type="angle-down"></hx-icon>
    </hx-disclosure>
    <hx-menu class = "hxSecNavTwoColMenu" id="secnav-option-menu-three">
      <section class="hxLeftColMenu">
          <header>
              L1 Section
          </header>
          <hx-menuitem>Link item 1-1</hx-menuitem>
          <hx-menuitem>Link item 1-2</hx-menuitem>
      </section>
      <section class="hxRightColMenu">
          <header>
              L2 Section
          </header>
          <hx-menuitem>Link item 2-1</hx-menuitem>
          <hx-menuitem>Link item 2-2</hx-menuitem>
          <hx-menuitem>Link item 2-3</hx-menuitem>
          <hx-menuitem>Link item 2-4</hx-menuitem>
      </section>
    </hx-menu>
  </nav>
</div>

See Also