Content
Summary list
Questions and answers, or labels and values, as a list, with links to change them.
When to use
- On a "Check your answers" page, at the end of a form, so people can check everything before they send it.
- To show a record people can read and update, such as their application, licence or account details.
When not to use
- To compare several items that share the same columns: use a table.
- For a long list of links: use a plain list or cards.
How to use
- Use the same wording for each key as the question it answers, shortened if it is long: "Date of birth", not "What is your date of birth?".
- Show answers the way people gave them, written out in full: "27 March 1990", not "27/03/1990"; "Phone call", not "call".
- Write "Not given" for an optional question left blank, so people can see it was not missed by mistake.
- Give every row its own Change link, and say what it changes with hidden text:
Change<span class="ggds-visually-hidden"> date of birth</span>. Rows people cannot change have no link. - A Change link goes back to that question with the answer filled in, then returns to the check page.
- Break long check pages into sections with an
<h2>above each list, such as "Your details" and "Your complaint". - Use
ggds-summary-list--plain, without lines, for a short list inside a card or under a confirmation panel.
Do
- Show every answer, including the ones people left blank.
- Put a Send or Accept button after the last list, with what will happen: "Send complaint".
Don't
- Use a table for questions and answers: a screen reader reads a table cell by cell, a description list question by answer.
- Write "Change" with no hidden text: ten links all called "Change" make no sense in a list of links.
Accessibility
What GGDS does
- It is a description list (
<dl>), so screen readers announce each answer with its question (WCAG 1.3.1). - On phones each row stacks: question, answer, then the link, so nothing is squeezed. From 48rem they sit side by side.
- Long answers, such as an email address or reference, wrap instead of making the page scroll sideways.
- Change links are at least 44px tall.
What you need to do
- Add hidden text to every Change link that says what it changes (WCAG 2.4.4).
- Wrap each row in a
<div class="ggds-summary-list__row">, with one<dt>and one or two<dd>. - Give the page a heading that says what the list is, such as "Check your answers before sending your complaint".
Example: Check your answers
<h2>Your details</h2>
<dl class="ggds-summary-list">
<div class="ggds-summary-list__row">
<dt class="ggds-summary-list__key">Full name</dt>
<dd class="ggds-summary-list__value">Ama Owusu</dd>
<dd class="ggds-summary-list__actions"><a href="/complaint/name/">Change<span class="ggds-visually-hidden"> full name</span></a></dd>
</div>
<div class="ggds-summary-list__row">
<dt class="ggds-summary-list__key">Date of birth</dt>
<dd class="ggds-summary-list__value">27 March 1990</dd>
<dd class="ggds-summary-list__actions"><a href="/complaint/date-of-birth/">Change<span class="ggds-visually-hidden"> date of birth</span></a></dd>
</div>
<div class="ggds-summary-list__row">
<dt class="ggds-summary-list__key">Phone number</dt>
<dd class="ggds-summary-list__value">024 000 0000</dd>
<dd class="ggds-summary-list__actions"><a href="/complaint/phone/">Change<span class="ggds-visually-hidden"> phone number</span></a></dd>
</div>
<div class="ggds-summary-list__row">
<dt class="ggds-summary-list__key">Email address</dt>
<dd class="ggds-summary-list__value">Not given</dd>
<dd class="ggds-summary-list__actions"><a href="/complaint/email/">Change<span class="ggds-visually-hidden"> email address</span></a></dd>
</div>
<div class="ggds-summary-list__row">
<dt class="ggds-summary-list__key">Address</dt>
<dd class="ggds-summary-list__value"><p>GA-000-0000</p><p>Near the market, Example Town, Greater Accra</p></dd>
<dd class="ggds-summary-list__actions"><a href="/complaint/address/">Change<span class="ggds-visually-hidden"> address</span></a></dd>
</div>
</dl><>
<h2>Your details</h2>
<dl className="ggds-summary-list">
<div className="ggds-summary-list__row">
<dt className="ggds-summary-list__key">Full name</dt>
<dd className="ggds-summary-list__value">Ama Owusu</dd>
<dd className="ggds-summary-list__actions"><a href="/complaint/name/">Change<span className="ggds-visually-hidden"> full name</span></a></dd>
</div>
<div className="ggds-summary-list__row">
<dt className="ggds-summary-list__key">Date of birth</dt>
<dd className="ggds-summary-list__value">27 March 1990</dd>
<dd className="ggds-summary-list__actions"><a href="/complaint/date-of-birth/">Change<span className="ggds-visually-hidden"> date of birth</span></a></dd>
</div>
<div className="ggds-summary-list__row">
<dt className="ggds-summary-list__key">Phone number</dt>
<dd className="ggds-summary-list__value">024 000 0000</dd>
<dd className="ggds-summary-list__actions"><a href="/complaint/phone/">Change<span className="ggds-visually-hidden"> phone number</span></a></dd>
</div>
<div className="ggds-summary-list__row">
<dt className="ggds-summary-list__key">Email address</dt>
<dd className="ggds-summary-list__value">Not given</dd>
<dd className="ggds-summary-list__actions"><a href="/complaint/email/">Change<span className="ggds-visually-hidden"> email address</span></a></dd>
</div>
<div className="ggds-summary-list__row">
<dt className="ggds-summary-list__key">Address</dt>
<dd className="ggds-summary-list__value"><p>GA-000-0000</p><p>Near the market, Example Town, Greater Accra</p></dd>
<dd className="ggds-summary-list__actions"><a href="/complaint/address/">Change<span className="ggds-visually-hidden"> address</span></a></dd>
</div>
</dl>
</>Example: A record, with and without Change links
<h2>Your licence</h2>
<dl class="ggds-summary-list">
<div class="ggds-summary-list__row">
<dt class="ggds-summary-list__key">Licence number</dt>
<dd class="ggds-summary-list__value">EX-LIC-2026-000123</dd>
</div>
<div class="ggds-summary-list__row">
<dt class="ggds-summary-list__key">Status</dt>
<dd class="ggds-summary-list__value"><strong class="ggds-tag ggds-tag--success">Active</strong></dd>
</div>
<div class="ggds-summary-list__row">
<dt class="ggds-summary-list__key">Expires</dt>
<dd class="ggds-summary-list__value">31 December 2027</dd>
</div>
<div class="ggds-summary-list__row">
<dt class="ggds-summary-list__key">Contact email</dt>
<dd class="ggds-summary-list__value">licensing@example.gov.gh</dd>
<dd class="ggds-summary-list__actions"><a href="/account/email/">Change<span class="ggds-visually-hidden"> contact email</span></a></dd>
</div>
</dl><>
<h2>Your licence</h2>
<dl className="ggds-summary-list">
<div className="ggds-summary-list__row">
<dt className="ggds-summary-list__key">Licence number</dt>
<dd className="ggds-summary-list__value">EX-LIC-2026-000123</dd>
</div>
<div className="ggds-summary-list__row">
<dt className="ggds-summary-list__key">Status</dt>
<dd className="ggds-summary-list__value"><strong className="ggds-tag ggds-tag--success">Active</strong></dd>
</div>
<div className="ggds-summary-list__row">
<dt className="ggds-summary-list__key">Expires</dt>
<dd className="ggds-summary-list__value">31 December 2027</dd>
</div>
<div className="ggds-summary-list__row">
<dt className="ggds-summary-list__key">Contact email</dt>
<dd className="ggds-summary-list__value">licensing@example.gov.gh</dd>
<dd className="ggds-summary-list__actions"><a href="/account/email/">Change<span className="ggds-visually-hidden"> contact email</span></a></dd>
</div>
</dl>
</>Example: Plain, without lines
<dl class="ggds-summary-list ggds-summary-list--plain">
<div class="ggds-summary-list__row">
<dt class="ggds-summary-list__key">Sent</dt>
<dd class="ggds-summary-list__value">10 November 2026, 2:15pm</dd>
</div>
<div class="ggds-summary-list__row">
<dt class="ggds-summary-list__key">Reply by</dt>
<dd class="ggds-summary-list__value">24 November 2026</dd>
</div>
</dl><dl className="ggds-summary-list ggds-summary-list--plain">
<div className="ggds-summary-list__row">
<dt className="ggds-summary-list__key">Sent</dt>
<dd className="ggds-summary-list__value">10 November 2026, 2:15pm</dd>
</div>
<div className="ggds-summary-list__row">
<dt className="ggds-summary-list__key">Reply by</dt>
<dd className="ggds-summary-list__value">24 November 2026</dd>
</div>
</dl>Use it
- Stylesheet
ggds.cssincludes it. To load only the parts you use:core.css, thencomponents/summary-list.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
No React component: switch the HTML under an example to JSX (React) and copy it.
Django
With ggds-django ({% load ggds %}):
{# rows: dicts with key, value, and optionally href and label (what the link changes) #}
{% ggds_summary_list rows %}Classes and states
| Class | What it does |
|---|---|
.ggds-summary-list | The list: a <dl>. |
.ggds-summary-list__row | One question and answer: a <div> holding the key, the value and any action. |
.ggds-summary-list__key | The question or label: a <dt>. |
.ggds-summary-list__value | The answer: a <dd>. It can hold paragraphs or a list. |
.ggds-summary-list__actions | The Change link: a <dd>. Leave it out for rows people cannot change. |
.ggds-summary-list--plain | No lines between rows, for a short list inside a card or under a panel. |
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.2.0 | New: summary list, for "Check your answers" pages and records: questions and answers, with Change links that say what they change. |
| 0.1.0 | Added. |
Related components
Something wrong, unclear or missing? or suggest a change to it on GitHub. You need a GitHub account.