Numbered pagination

Numbered pagination helps the user navigate through pages when there’s a lot of content.

Contributors

  • Chris Kinsey
  • Danny Lambert-Maddocks
  • Andrew Campbell
Platform:Web

Overview

An example of numbered pagination

How it works

The pattern is made up of chevrons to navigate forwards and backwards, and numbered page buttons.

Selecting the right chevron moves you one page forward.

An example of the right chevron's interaction state

Selecting the left chevron moves you one page back.

An example of the left chevron's interaction state

You can jump to any page by selecting a page number button. We use an ellipsis (...) to show that more pages exist.

An example of how the ellipsis appears in pagination

If there's only a small number of pages, show all the page buttons without an ellipsis.

An illustration of how to use ellipsis correctly for pagination

Rules

  • You can use numbered pagination at the top and/or bottom of any page. We recommend you centrally align the pagination.
  • You should always have left and right chevron buttons.
  • The page number you're on is always highlighted.

An example of how the selected page is highlighted

  • An ellipsis shows there are further pages. The ellipsis is not interactive. Always show the first page number button.
  • Also show the last page number when we know how many there are. When we don't know how many pages there are, replace the last page number with an ellipsis.

Examples of how pagination differs depending on whether the number of pages is known

  • When you're on the first page the left chevron is inactive. When you're on the last page the right chevron is inactive.
  • On screen widths below 320 pixels we don't show any numbered page buttons. Instead we display text showing the page information.

An example of numbered pagination below 320px

Accessibility

  • Use alt tags for chevrons if they're images, or title tags if they're Scalable Vector Graphics (SVGs).
  • The tabbing order through the pagination should be left to right. The ellipsis is not interactive, so tabbing should skip past it.

An example of a focus state for pagination when tabbing through page numbers