Patterns
Navigation
How the navigation components fit together. Each has its own page; this page is about choosing between them and keeping people oriented.
Which one to use
| The user needs to… | Use | Why |
|---|---|---|
| Move between the main sections of the site | Nav bar | Always in the same place, shows where you are. |
| Switch between views of the same content on one page | Tabs | The page does not change, only what is shown. |
| Open a larger destination with a title and a description | Nav card | The whole card is the link, a big target. |
| Do a small action or open a tool (close, search, theme) | Icon button | Compact, for universal icons only. |
| Go somewhere from inside a sentence | Text link | Not a component: underlined olive text. |
Why
People need to answer three questions at any moment: where am I, where can I go, and what does this control do. Navigation controls always show the current place (underline, selected state) and always look different from actions (buttons), so you never wonder whether something moves you or changes something.
How it is built
AtomsIcon button, Tab
MoleculesTabs, Nav card
OrganismNav bar (brand + links + icon buttons)
Keeping people oriented
| Question | Answer |
|---|---|
| Where am I? | The current link is underlined and marked aria-current="page". Tabs show the selected tab. |
| Where can I go? | The nav bar lists the main sections, and nav cards offer the next steps on a page. |
| What will this do? | Links go somewhere, buttons do something, tabs change the view. They never swap roles. |
Web and mobile
| Topic | Web | Mobile |
|---|---|---|
| Main navigation | Links in a row at the top. | Collapsed behind a Menu button below 768px. |
| Hover | Used for extra feedback only. | None. Never hide navigation behind hover. |
| Targets | 44px tall. | 44px tall. |
| Tabs | All tabs in a row. | Scroll sideways if they do not fit. Keep to three or four. |
| Nav cards | Two or three across. | One column, full width. |
Accessibility
- Landmarks:
<nav aria-label="Main">. Give each nav on a page a different label. - Skip link: "Skip to content" is the first Tab stop.
- Current page is announced with
aria-current, not just styled. - Keyboard: every link, tab and button is reachable; tabs follow the arrow-key pattern.
- Target size: 44px, at every size of screen.
Rules
| Rule | Reason |
|---|---|
| Five or fewer links in the main bar. | More than five and people stop reading them. |
| Short noun labels, sentence case. | Scannable and predictable. |
| Tabs for views, links for pages. | Different keyboard and browser behavior. |
| Don\'t use a button for navigation or a link for an action. | Right element, right behavior. |
| Don\'t hide navigation behind hover. | There is no hover on a phone. |