GC Design System Components
Home Start to use Page templates overview Basic page Components overview Breadcrumbs Button Card Checkboxes Container Date input Date modified Details Error message Error summary Fieldset File uploader Footer Grid Header Heading Icon Input Language toggle Link Notice Pagination Radios Screenreader-only Search Select Side navigation Signature Stepper Text Textarea Theme and topic menu Top navigation CSS shortcuts overview Reset styles Responsive layout State Box sizing Container sizing Display Overflow Position Visibility Font Font family Font size Font style Font weight Line height Link colour Link size Link text decoration List style Text align Text colour Text overflow Text transform Word break Margin Padding Align content Align items Align self Flex Flex direction Flex grow Flex shrink Flex wrap Gap Grid columns Grid rows Justify content Justify items Justify self Order Place content Place items Place self Background colour Border colour Border radius Border style Border width Icon names Icon size Image Cursor Pointer events Transition Styles overview Design tokens Colour tokens Spacing tokens Typography tokens Contact us Get involved Find a demo

Top navigation
<gcds-top-nav>

Also called: site menu, navigation, navbar.

A top navigation is a horizontal list of page links.

Top navigation component preview

Top navigation anatomy – on desktop

  1. The home nav link identifies the site using text or a logo and it links to the home page. It uses a nav link that is added within the home slot.
  2. The nav link is a link to a popular page or section on the site. Nav links can be in the top level if they're standalone.
  3. The nav group can be collapsed and expanded and generally contains a list of 2-5 links.
  4. The nav group label describes the category of links in that group. It acts as a button to expand and collapse the group of links.
  5. The nav group chevron icon points down when the nav group is collapsed and up when it's expanded.
  6. The nav link with active indicator gives visual prominence to the current page.
Top navigation anatomy showing page navigation with a dark blue box for the logo or home link followed by two greyed boxes, the last one having a dark blue line underneath to show the current page.

Design and accessibility for top navigation

  • The home nav link can be a shorter version of the full name.
  • For logos, include descriptive text.

Note: On mobile, the home nav link does not link to the homepage.

  • Make link text clear and specific to help a person decide if they should leave the current page. Spell out where a person will go or what they'll find when they select a link.
  • Keep link text short and distinctive so a person can scan the links and find what they're looking for.
  • Limit the number of links in your top navigation. Too much information increases cognitive load and can be overwhelming to some readers.
  • If using breadcrumbs, align the content hierarchy in both set of links, so both components reflect a similar path through the site.

Tip: Read top navigation link text aloud in sequence to note similarities in how link text sounds when read by an assistive device.

Add navigation groups to the top navigation

  • Opt to include a second level with a navigation group, sometimes called stairs or dropdowns, to the top navigation.
  • In the second level, limit the group to 7 links. Target 2-5 in each group.

Help us improve

Have questions or a request? Give feedback on our contact form.

Something's wrong? Raise it through GitHub with an account. You'll have access to the team's direct responses, progress made on your issue, and issues raised by others.

Give feedback Report an issue on GitHub
2025-05-28