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

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

Open this example on its own page

HTML code for “Check your answers”
HTML
<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>
JSX (React)
<>
  <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

Open this example on its own page

HTML code for “A record, with and without Change links”
HTML
<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>
JSX (React)
<>
  <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

Open this example on its own page

HTML code for “Plain, without lines”
HTML
<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>
JSX (React)
<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.css includes it. To load only the parts you use: core.css, then components/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 %}):

Text
{# rows: dicts with key, value, and optionally href and label (what the link changes) #}
{% ggds_summary_list rows %}

Classes and states

Classes for summary list
ClassWhat it does
.ggds-summary-listThe list: a <dl>.
.ggds-summary-list__rowOne question and answer: a <div> holding the key, the value and any action.
.ggds-summary-list__keyThe question or label: a <dt>.
.ggds-summary-list__valueThe answer: a <dd>. It can hold paragraphs or a list.
.ggds-summary-list__actionsThe Change link: a <dd>. Leave it out for rows people cannot change.
.ggds-summary-list--plainNo 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.

Manual accessibility checks for summary list
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 summary list, newest first
VersionChange
0.2.0New: summary list, for "Check your answers" pages and records: questions and answers, with Change links that say what they change.
0.1.0Added.

Every change, in What’s new

  • Table

    Tables for data people need to compare, such as fees or opening hours.

  • Button

    Buttons do things: submit a form, save, continue.

  • Confirmation panel

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

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.