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

Page structure

Phase banner

Tells people a service is new and still being improved, and asks for their feedback.

When to use

  • On every page of a new online service while it is being tested with the public (alpha) or is open to everyone but still changing (beta).

When not to use

  • On a finished service, or on information pages that are not part of a new service.
  • To give news or warnings: use a notice.

How to use

  • Put it directly under the header.
  • Link "feedback" to a short form that asks what people were trying to do and what went wrong.
  • Remove it when the service is finished.

Accessibility

What GGDS does

  • The tag says "Alpha" or "Beta" in words, with white text on the government blue at more than 4.5 to 1.

What you need to do

  • Make sure the feedback form itself meets GGDS's accessibility rules, so everyone can tell you what went wrong.

Example: Phase banner

Open this example on its own page

HTML code for “Phase banner”
HTML
<div class="ggds-phase-banner">
  <p class="ggds-container ggds-phase-banner__content">
    <strong class="ggds-phase-banner__tag">Beta</strong>
    <span class="ggds-phase-banner__text">This is a new service. Your <a href="/feedback/">feedback</a> will help us improve it.</span>
  </p>
</div>
JSX (React)
<div className="ggds-phase-banner">
  <p className="ggds-container ggds-phase-banner__content">
    <strong className="ggds-phase-banner__tag">Beta</strong>
    <span className="ggds-phase-banner__text">This is a new service. Your <a href="/feedback/">feedback</a> will help us improve it.</span>
  </p>
</div>

Use it

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

HTML

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

Astro

With @ggds/astro:

JavaScript
import PhaseBanner from '@ggds/astro/PhaseBanner.astro';

<PhaseBanner phase="beta" feedbackHref="/feedback/" />

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_phase_banner "beta" feedback_href="/feedback/" %}

Classes and states

Classes for phase banner
ClassWhat it does
.ggds-phase-bannerUnder the header: the service is new.
.ggds-phase-banner__contentThe tag and the sentence, at the page width.
.ggds-phase-banner__tag"Alpha" or "Beta".
.ggds-phase-banner__textWhat the phase means, with a link to give feedback.

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
  • Behaviour test: “no horizontal scrolling at 320px”
  • Behaviour test: “no horizontal scrolling at 320px with a wide font”

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 phase banner
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 phase banner, newest first
VersionChange
0.4.0New components: back link, side navigation, contents list ("On this page"), language switcher, phase banner, cookie banner and character count, in HTML, Django, React and (except the character count) Astro. All are alpha: tested automatically, not yet on a live website. The cookie banner needs no JavaScript: its buttons send a form, and both choices look the same.
0.1.0Added.

Every change, in What’s new

  • Government website banner

    Tells people the website belongs to the Government of Ghana, and how to check.

  • Header and main navigation

    Your institution's logo and name, the main sections and search, at the top of every page.

  • Layout

    Classes that arrange content on a page: stacks, rows that wrap, grids and a side column, with the GGDS spacing, text sizes and colours.

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.