|
| 1 | +--- |
| 2 | +title: Sec Nav |
| 3 | +minver: 1.1.0 |
| 4 | +also: |
| 5 | + components/secnav/test.html: Full Page Demo - Secondary Navigation |
| 6 | +--- |
| 7 | + {% extends 'component.njk' %} |
| 8 | + |
| 9 | + {% block page_header %} |
| 10 | + <p> |
| 11 | + {{page.title}} (i.e., secondary navigation) is a variation of navigation |
| 12 | + that is used in lieu of left navigation. It establishes a user's location |
| 13 | + within an application. Unless a firm implementation constraint requires |
| 14 | + {{page.title}}, use the left navigation component for web applications. |
| 15 | + </p> |
| 16 | + {% endblock %} |
| 17 | + |
| 18 | + {% block content %} |
| 19 | + |
| 20 | + <section> |
| 21 | + <header> |
| 22 | + <h2 id="secondary-navigation">Secondary Navigation</h2> |
| 23 | + <h3> |
| 24 | + See the snippet below in isolation with the |
| 25 | + <a href="components/secnav/test.html">full-page</a> demo. |
| 26 | + </h3> |
| 27 | + <br /> |
| 28 | + </header> |
| 29 | + |
| 30 | + <div id="vue-secNavDemo"> |
| 31 | + <nav id="hxTopNav"> |
| 32 | + <a class="hxTopNavLogo" href="#"> |
| 33 | + <img src="images/helix-logo.svg" alt="Brand Logo" /> |
| 34 | + </a> |
| 35 | + <div class="hxTopNavMenu hxTopNavOptionMenu"> |
| 36 | + <hx-disclosure aria-controls="topnav-menu-options" role="button" aria-expanded="true"> |
| 37 | + <span>Select an option</span> |
| 38 | + <hx-icon class="hxPrimary" type="angle-down"></hx-icon> |
| 39 | + </hx-disclosure> |
| 40 | + <hx-menu id="topnav-menu-options"> |
| 41 | + <section> |
| 42 | + <hx-menuitem role="menuitem">Option Alpha</hx-menuitem> |
| 43 | + <hx-menuitem role="menuitem">Option Beta Services</hx-menuitem> |
| 44 | + <hx-menuitem role="menuitem">Option Gamma</hx-menuitem> |
| 45 | + </section> |
| 46 | + </hx-menu> |
| 47 | + </div> |
| 48 | + <div class="hxTopNavIconMenu"> |
| 49 | + <div> |
| 50 | + <a href="#" @click="notify()"> |
| 51 | + <hx-icon type="bell"></hx-icon> |
| 52 | + <p>Notifications</p> |
| 53 | + </a> |
| 54 | + |
| 55 | + <a href="#" class="selected"> |
| 56 | + <hx-icon type="ticketing"></hx-icon> |
| 57 | + <p>Tickets</p> |
| 58 | + </a> |
| 59 | + |
| 60 | + <a href="#"> |
| 61 | + <hx-icon type="support"></hx-icon> |
| 62 | + <p>Support</p> |
| 63 | + </a> |
| 64 | + |
| 65 | + <a href="#" class="hxDisabled" id="billing"> |
| 66 | + <hx-icon type="billing"></hx-icon> |
| 67 | + <p>Billing</p> |
| 68 | + <hx-tooltip for="billing" position="bottom-center"> |
| 69 | + You do not have access to this area. Contact an account admin |
| 70 | + in your organization to request access to this item. |
| 71 | + </hx-tooltip> |
| 72 | + </a> |
| 73 | + |
| 74 | + <a href="#"> |
| 75 | + <hx-icon type="account"></hx-icon> |
| 76 | + <p>Account</p> |
| 77 | + </a> |
| 78 | + </div> |
| 79 | + <div class="hxSpacer"></div> |
| 80 | + <div class="hxTopNavMenu"> |
| 81 | + <hx-disclosure aria-controls="demo-user-menu" role="button" aria-expanded="true"> |
| 82 | + <span>Jane User</span> |
| 83 | + <hx-icon class="hxPrimary" type="angle-down"></hx-icon> |
| 84 | + </hx-disclosure> |
| 85 | + <hx-menu id="demo-user-menu" position="bottom-end"> |
| 86 | + <section> |
| 87 | + <header> |
| 88 | + <hx-menuitem role="menuitem" class="hxMenuKey">Account Number:</hx-menuitem> |
| 89 | + <hx-menuitem role="menuitem" class="hxMenuValue">12345678</hx-menuitem> |
| 90 | + </header> |
| 91 | + <hr class="hxDivider"> |
| 92 | + <hx-menuitem role="menuitem" class="hxMenuValue">My Profile & Settings</hx-menuitem> |
| 93 | + <hr class="hxDivider"> |
| 94 | + <footer> |
| 95 | + <button class="hxBtn">Log Out</button> |
| 96 | + </footer> |
| 97 | + </section> |
| 98 | + </hx-menu> |
| 99 | + </div> |
| 100 | + </div> |
| 101 | + </nav> |
| 102 | + <!-- Secondary Navigation --> |
| 103 | + <nav id="hxSecNav"> |
| 104 | + <a href="#" class="navLink"> Nav Item One</a> |
| 105 | + <div class="hxSecNavMenu"> |
| 106 | + <hx-disclosure aria-controls="secNavProductDropdown" role="button" aria-expanded="false" class="disabled"> |
| 107 | + <span>Nav Item Two</span> |
| 108 | + <hx-icon class="hxPrimary" type="angle-down"></hx-icon> |
| 109 | + </hx-disclosure> |
| 110 | + <hx-menu id="secNavProductDropdown"> |
| 111 | + <section> |
| 112 | + <header> |
| 113 | + <hx-menuitem role="menuitem" class="hxMenuKey">L1 Section :</hx-menuitem> |
| 114 | + <hx-menuitem role="menuitem">Link 1-1</hx-menuitem> |
| 115 | + <hx-menuitem role="menuitem">Link 1-2</hx-menuitem> |
| 116 | + <hx-menuitem role="menuitem">Link 1-3</hx-menuitem> |
| 117 | + </header> |
| 118 | + </section> |
| 119 | + </hx-menu> |
| 120 | + <hx-disclosure aria-controls="secNavProductDropdownTwo" role="button" aria-expanded="false" class="disabled"> |
| 121 | + <span>Nav Item Three</span> |
| 122 | + <hx-icon class="hxPrimary" type="angle-down"></hx-icon> |
| 123 | + </hx-disclosure> |
| 124 | + <hx-menu id="secNavProductDropdownTwo"> |
| 125 | + <section> |
| 126 | + <header> |
| 127 | + <hx-menuitem role="menuitem" class="hxMenuKey">L1 Section :</hx-menuitem> |
| 128 | + <hx-menuitem role="menuitem" class="hxMenuValue">Link 1-1</hx-menuitem> |
| 129 | + <hx-menuitem role="menuitem" class="hxMenuValue">Link 1-2</hx-menuitem> |
| 130 | + </header> |
| 131 | + <hr class="hxDivider"> |
| 132 | + <hx-menuitem role="menuitem" class="hxMenuKey">L2 Section :</hx-menuitem> |
| 133 | + <hx-menuitem role="menuitem" class="hxMenuValue">Link 2-1</hx-menuitem> |
| 134 | + <hx-menuitem role="menuitem" class="hxMenuValue">Link 2-2</hx-menuitem> |
| 135 | + </section> |
| 136 | + </hx-menu> |
| 137 | + </div> |
| 138 | + </nav> |
| 139 | + <footer> |
| 140 | + <pre><code v-text="snippet"></code></pre> |
| 141 | + </footer> |
| 142 | + </div> |
| 143 | + </section> |
| 144 | + {% endblock %} |
0 commit comments