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--doneand the stage it is at now withggds-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
<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><>
<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.cssincludes it. To load only the parts you use:core.css, thencomponents/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:
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 %}):
{# stages: dicts with title, when and state ("done", "current" or "") #}
{% ggds_timeline stages %}Classes and states
| Class | What it does |
|---|---|
.ggds-timeline | The stages: an <ol>. |
.ggds-timeline__item | One stage: an <li>, with a dot and a line to the next. |
.ggds-timeline__item--done | A stage that has happened: a filled green dot. |
.ggds-timeline__item--current | The stage it has reached: a ringed dot in the institution’s colour. |
.ggds-timeline__title | What happens, starting with hidden words that say its state. |
.ggds-timeline__when | When: 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.
| Check | Result | Notes |
|---|---|---|
| Keyboard only | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| NVDA screen reader with Firefox or Chrome (Windows) | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| JAWS screen reader with Chrome (Windows) | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| VoiceOver screen reader with Safari (iPhone) | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| TalkBack screen reader with Chrome (Android) | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| Zoom to 400%, and increased text spacing | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| Windows contrast themes (forced colours) | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| Voice control (Voice Access or Dragon) | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
Changes
| Version | Change |
|---|---|
| 0.3.0 | New: 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.0 | Added. |
Related components
Something wrong, unclear or missing? or suggest a change to it on GitHub. You need a GitHub account.