Skip to main content

This is a draft (version 0.5.0). The National Information Technology Agency (NITA) plans to make GGDS official guidance for government websites after independent accessibility testing. What this means

Ghana Government Design System Design system for Government of Ghana websites – home Search

Content

Timeline

What has happened and what happens next, in order: the stages of an application, a complaint or a case.

When to use

  • Under a confirmation panel, to say what happens next and when.
  • On a page where people track an application, to show where it has reached.
  • In a staff tool, to show a case’s history.

When not to use

  • For steps people must take themselves: use steps, or a numbered list.
  • For dates in a table of many records: use a table.
  • For more than about 7 stages: group them.

How to use

  • Write each stage as what happens, in a few words: “A fisheries officer checks your answers”.
  • Under it, say when: a date for what has happened, and a promise for what is to come (“Within 5 working days”).
  • Mark what is done with ggds-timeline__item--done and the stage it is at now with ggds-timeline__item--current. Leave the stages to come plain.
  • Start every stage with hidden words, “Done:”, “Now:” or “Next:”, so the state is said, not only drawn.

Do

  • Say when each stage happened or will happen.
  • Keep promises you can keep.

Don't

  • Show internal stages people cannot act on, such as “Sent to database”.

Accessibility

What GGDS does

  • It is an ordered list, so screen readers say the number of stages and each one’s place (WCAG 1.3.1).
  • Done and current stages differ in shape as well as colour (WCAG 1.4.1). In Windows contrast themes they stay different.

What you need to do

  • Add the hidden words “Done:”, “Now:” and “Next:” to each stage, as in the example.
  • Keep the stages the same for every applicant, so people can compare what they are told.

Example: What happens next

Open this example on its own page

HTML code for “What happens next”
HTML
<h2>What happens next</h2>
<ol class="ggds-timeline">
  <li class="ggds-timeline__item ggds-timeline__item--done">
    <p class="ggds-timeline__title"><span class="ggds-visually-hidden">Done: </span>Application and payment received</p>
    <p class="ggds-timeline__when">10 November 2026</p>
  </li>
  <li class="ggds-timeline__item ggds-timeline__item--current">
    <p class="ggds-timeline__title"><span class="ggds-visually-hidden">Now: </span>A fisheries officer checks your answers</p>
    <p class="ggds-timeline__when">Within 5 working days</p>
  </li>
  <li class="ggds-timeline__item">
    <p class="ggds-timeline__title"><span class="ggds-visually-hidden">Next: </span>We check your canoe at the landing beach</p>
    <p class="ggds-timeline__when">We will text you a date</p>
  </li>
  <li class="ggds-timeline__item">
    <p class="ggds-timeline__title"><span class="ggds-visually-hidden">Next: </span>Your licence arrives by SMS</p>
    <p class="ggds-timeline__when">By 31 December 2026</p>
  </li>
</ol>
JSX (React)
<>
  <h2>What happens next</h2>
  <ol className="ggds-timeline">
    <li className="ggds-timeline__item ggds-timeline__item--done">
      <p className="ggds-timeline__title"><span className="ggds-visually-hidden">Done: </span>Application and payment received</p>
      <p className="ggds-timeline__when">10 November 2026</p>
    </li>
    <li className="ggds-timeline__item ggds-timeline__item--current">
      <p className="ggds-timeline__title"><span className="ggds-visually-hidden">Now: </span>A fisheries officer checks your answers</p>
      <p className="ggds-timeline__when">Within 5 working days</p>
    </li>
    <li className="ggds-timeline__item">
      <p className="ggds-timeline__title"><span className="ggds-visually-hidden">Next: </span>We check your canoe at the landing beach</p>
      <p className="ggds-timeline__when">We will text you a date</p>
    </li>
    <li className="ggds-timeline__item">
      <p className="ggds-timeline__title"><span className="ggds-visually-hidden">Next: </span>Your licence arrives by SMS</p>
      <p className="ggds-timeline__when">By 31 December 2026</p>
    </li>
  </ol>
</>

Use it

Stylesheet
ggds.css includes it. To load only the parts you use: core.css, then components/timeline.css (0.5 KB with gzip, minified).
JavaScript
None needed.

HTML

Copy the HTML under each example above. It works in any website.

Astro

No Astro component: copy the HTML.

React and Next.js

With @ggds/react:

JavaScript
import { Timeline } from '@ggds/react';

<Timeline stages={[
  { title: 'Application and payment received', when: '10 November 2026', state: 'done' },
  { title: 'A fisheries officer checks your answers', when: 'Within 5 working days', state: 'current' },
  { title: 'Your licence arrives by SMS', when: 'By 31 December 2026' },
]} />

Django

With ggds-django ({% load ggds %}):

Text
{# stages: dicts with title, when and state ("done", "current" or "") #}
{% ggds_timeline stages %}

Classes and states

Classes for timeline
ClassWhat it does
.ggds-timelineThe stages: an <ol>.
.ggds-timeline__itemOne stage: an <li>, with a dot and a line to the next.
.ggds-timeline__item--doneA stage that has happened: a filled green dot.
.ggds-timeline__item--currentThe stage it has reached: a ringed dot in the institution’s colour.
.ggds-timeline__titleWhat happens, starting with hidden words that say its state.
.ggds-timeline__whenWhen: a date, or a promise.

Accessibility tests

Automated, on every change

These run each time GGDS changes. A change that fails one is not accepted.

  • WCAG 2.2 A and AA rules (axe), at desktop and phone widths, on every example
  • No sideways scrolling on a 320px screen, also with a wide font, on every example
  • Every approved colour pair meets its contrast minimum, for every institution theme
  • No inline scripts or styles, so it runs under a strict Content Security Policy

By people, with assistive technology

Automated tests find only some of the barriers people meet. These checks are still to be done.

Manual accessibility checks for timeline
CheckResultNotes
Keyboard onlyNot tested yetWaiting for the external audit with disabled people (decision D-09).
NVDA screen reader with Firefox or Chrome (Windows)Not tested yetWaiting for the external audit with disabled people (decision D-09).
JAWS screen reader with Chrome (Windows)Not tested yetWaiting for the external audit with disabled people (decision D-09).
VoiceOver screen reader with Safari (iPhone)Not tested yetWaiting for the external audit with disabled people (decision D-09).
TalkBack screen reader with Chrome (Android)Not tested yetWaiting for the external audit with disabled people (decision D-09).
Zoom to 400%, and increased text spacingNot tested yetWaiting for the external audit with disabled people (decision D-09).
Windows contrast themes (forced colours)Not tested yetWaiting for the external audit with disabled people (decision D-09).
Voice control (Voice Access or Dragon)Not tested yetWaiting for the external audit with disabled people (decision D-09).

Changes

Changes to timeline, newest first
VersionChange
0.3.0New: timeline, what has happened and what happens next, such as an application's stages; each stage says "Done", "Now" or "Next" to screen readers.
0.1.0Added.

Every change, in What’s new

  • Confirmation panel

    The top of the page people see when they have finished a task: that it worked, and their reference number.

  • Progress

    Shows people how far through a task they are, such as “Question 3 of 4”, in words and as a bar.

  • Summary list

    Questions and answers, or labels and values, as a list, with links to change them. For "Check your answers" pages and records.

Back to top

Something wrong, unclear or missing? Report a problem with this page or suggest a change to it on GitHub. You need a GitHub account.