Navigation (primary)
On this page
Guidelines
Use the primary navigation to organize high-level content and important user actions.
Primary vs. secondary navigation
Here is guidance on when to use the primary vs. secondary navigation.
| Element | When to use |
|---|---|
| Primary navigation |
|
| Secondary navigation |
|
Writing content
Text labels
Text labels need to quickly describe what content users can expect to see when something is selected. Try to write short and concise text labels.
| Element | Max number of items | Character count |
|---|---|---|
| Primary Menu | 5 | 20 |
| Cross-domain link | 3 | 15 |
Layout
Primary menus
Primary menus organize high-level topics into sections. When expanded, each menu background spans the width of the browser window. Content is then organized into a maximum of 4 columns.
If the layout in a menu has been set to display 4 columns of content, even if 3 are visible, they will have the same width as if there are 4 columns of content visible.
When including a Card or Tile, it will be arranged last.
Utility menus
Utility menus organize secondary content like important user actions. The height and width of each menu is determined by the content inside. Content in utility menus can have a flexible size and layout, but should not occupy more than 3 grid columns.
Behavior
Expanding menus
Expanded menus are visually identified by a 4px thick red accent border. When users hover over other collapsed menus, the accent border is gray. When a collapsed menu is selected, the caret icon rotates quickly and the previously expanded menu collapses. Only 1 menu can be expanded at a time.
Collapsing menus
Menus can be collapsed by doing the following.
- Selecting the same primary or utility menu again
- Selecting anywhere inside of the overlay under the menu
- Pressing the Escape key
Skip link
When users land on or refresh a page and then press the Tab key, the Skip link will appear on top of the primary navigation.
Sticky scrolling
The Primary navigation is always sticky on scroll on every page it is used on.
Responsive design
Some elements disappear and the bar gets shorter as the Primary navigation gets smaller. To see more, go to the Demos page.
Best Practices
Amount of content
For all domains, use a comfortable amount of primary menus, cross-domain links, and utility menus so the Primary navigation does not feel cramped.
Do not overload the Primary navigation with tons of primary menus or other elements.
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.