1. Government Frontend Component Guide
  2. Step by step navigation header

Component

Step by step navigation header

Shows that a content page is part of a step by step navigation

The component indicates to the user that the current page is part of a step by step navigation, and can provide a link to it.

Search for usage of this component on GitHub

How it looks (preview all)

Part of Learn to drive a car: step by step

How to call this component

<%= render "govuk_publishing_components/components/step_by_step_nav_header", {
  title: "Learn to drive a car: step by step"
} %>

Accessibility acceptance criteria

The component is designed to go into the top of an existing content page and should not interfere with the heading structure of the page, so therefore should not contain a heading tag.

An early version of the component contained a hidden skip link for keyboard and screen reader users, that jumped to the step by step navigation component in the sidebar (similiar to the ‘skip to content’ link at the top of all GOV.UK pages). User testing suggested that rather than helping users it confused them, so this has been removed.

Links in the component must:

  • accept focus
  • be focusable with a keyboard
  • be usable with a keyboard
  • indicate when they have focus
  • change in appearance when touched (in the touch-down state)
  • change in appearance when hovered
  • be usable with touch
  • be usable with voice commands
  • have visible text

Other examples

With a link (preview)

<%= render "govuk_publishing_components/components/step_by_step_nav_header", {
  title: "Having children: step by step",
  path: "/childcare-parenting/pregnancy-and-birth"
} %>

With unique tracking (preview)

In order to identify the step by step navigation the component is part of, we need to track a unique ID of the navigation in Google Analytics. This ID should be the same across all pages that are linked from and are part of that navigation. Its value is included in any tracking events, specifically in dimension96. It refers to the ID of the step nav that the component links to.

<%= render "govuk_publishing_components/components/step_by_step_nav_header", {
  title: "With a tracking id",
  path: "#",
  tracking_id: "this-is-the-tracking-id"
} %>