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

Forms

Confirmation panel

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

When to use

  • On the confirmation page at the end of a service: after people send an application, a complaint, a payment or a booking.

When not to use

  • For any other message: use a notice. A green panel means "you have finished", and it loses that meaning if it appears elsewhere.
  • For a task that did not work: show the problem and what to do, never a panel.

How to use

  • Make the panel's title the page's <h1>, and say what happened in a few words: "Complaint sent", "Payment received", "Application submitted".
  • Give the reference number in the panel, in ggds-panel__reference, if people may need it later. Keep references short, and avoid letters that look like numbers (O and 0, I and 1).
  • Under the panel, say what happens next and when: "We will reply by SMS within 10 working days". Then say how to get help, with the reference.
  • Say whether you sent a confirmation by SMS or email. Many people will not have a printer: tell them to write the reference down or take a screenshot.
  • Do not ask people to do anything else in the panel. Put any next step, such as paying a fee, below it with a button.
  • Do not use the browser's Back button to return to the form: the confirmation page is the end. Show the panel once, and send people who reload it to the same page, not to a second submission.

Do

  • Write "Your reference number" and the reference on its own line.
  • Say what happens next, under the panel.

Don't

  • Write "Success!" or "Thank you for your submission".
  • Use the panel for warnings or general information.

Accessibility

What GGDS does

  • White text on the success green has 6.6 to 1 contrast, checked by GGDS's tests (WCAG 1.4.3).
  • The reference breaks onto a new line rather than making a 320px screen scroll sideways (WCAG 1.4.10).
  • In Windows contrast themes the panel keeps a border, and when printed it prints as black text in a box.

What you need to do

  • Make the panel's title the page's only <h1>, and start the page <title> with it too, so screen reader users hear straight away that it worked.
  • Do not rely on the green colour: the words must say it worked (WCAG 1.4.1).

Example: A confirmation page

Open this example on its own page

HTML code for “A confirmation page”
HTML
<div class="ggds-panel">
  <h1 class="ggds-panel__title">Complaint sent</h1>
  <p class="ggds-panel__body">Your reference number <strong class="ggds-panel__reference">EX-2026-00123</strong></p>
</div>
<div class="ggds-measure">
  <p>We have sent the reference to 024 000 0000 by SMS. Write it down or take a screenshot: you will need it if you contact us about your complaint.</p>
  <h2>What happens next</h2>
  <ol>
    <li>We will look at your complaint and contact the company it is about.</li>
    <li>We will reply by SMS within 10 working days, by 24 November 2026.</li>
  </ol>
  <p>If you do not hear from us by then, call 030 000 0000 and give your reference number.</p>
</div>
JSX (React)
<>
  <div className="ggds-panel">
    <h1 className="ggds-panel__title">Complaint sent</h1>
    <p className="ggds-panel__body">Your reference number <strong className="ggds-panel__reference">EX-2026-00123</strong></p>
  </div>
  <div className="ggds-measure">
    <p>We have sent the reference to 024 000 0000 by SMS. Write it down or take a screenshot: you will need it if you contact us about your complaint.</p>
    <h2>What happens next</h2>
    <ol>
      <li>We will look at your complaint and contact the company it is about.</li>
      <li>We will reply by SMS within 10 working days, by 24 November 2026.</li>
    </ol>
    <p>If you do not hear from us by then, call 030 000 0000 and give your reference number.</p>
  </div>
</>

Use it

Stylesheet
ggds.css includes it. To load only the parts you use: core.css, then components/panel.css (0.4 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 %}):

Django template
{% ggds_panel "Complaint sent" reference=complaint.reference %}

Classes and states

Classes for confirmation panel
ClassWhat it does
.ggds-panelThe panel: white text on the success green.
.ggds-panel__titleWhat happened: the page's <h1>.
.ggds-panel__bodyThe reference number and its label.
.ggds-panel__referenceThe reference: large and bold, on its own line.

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 confirmation panel
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 confirmation panel, newest first
VersionChange
0.2.0New: confirmation panel, for the end of a service: that it worked, and the reference number.
0.1.0Added.

Every change, in What’s new

  • Summary list

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

  • Notice

    A message box for information, success, a warning or danger, and an urgent notice for the whole site.

  • Button

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

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.