Quality, safety and people · lesson 3 of 8
Ideas in this lesson
AWCAG 2.2the international guidelines for accessible web content
BPOURperceivable, operable, understandable, robust
CContrast ratioat least 4.5 : 1 for normal text

Accessibility

Last updated

Some of Pila's patients can't see the waiting-room screen well, some can't tell red from green, some use a screen reader on their phones, and some are older people using a phone for the first time. Software is accessible when people with disabilities can use it too, and that makes it better for everyone. In this lesson you'll learn the four principles of the Web Content Accessibility Guidelines, check Pila's screens against them, and see which Philippine laws apply.

By the end of this lesson you can

  • Explain the four WCAG principles: perceivable, operable, understandable, robust
  • Find common accessibility problems in a design, and fix them
  • Calculate whether two colours have enough contrast

Who accessibility is for

Software is accessible when people with disabilities can perceive it, understand it, navigate it and use it. For Pila, that includes:

  • A grandmother with low vision reading the waiting-room screen.
  • A patient who is colour-blind (about 1 in 12 men has some form of colour vision deficiency).
  • A blind patient using a screen reader, which reads a phone's screen aloud.
  • A health worker with a hand injury who uses only the keyboard.
  • A Deaf patient, who won't hear the number called aloud.

The changes that help them, like clear text, big targets and plain words, help everyone: the patient in bright sunlight, the health worker in a hurry, the first-time phone user.

Four principles

The Web Content Accessibility Guidelines (WCAG), from the World Wide Web Consortium (W3C), are the international standard. Version 2.2 was published in 2023. Its success criteria are grouped under four principles, remembered as POUR:

The four WCAG principles
PrincipleMeansExample criterion
PerceivablePeople can perceive the information, whatever senses they use1.4.1: colour isn’t the only way information is shown
OperablePeople can use every control, whatever way they interact2.1.1: everything works from a keyboard
UnderstandableThe content and how it works make sense3.1.1: the page’s language is marked
RobustIt works with many browsers and assistive technologies4.1.2: controls have names and roles that assistive technology can read

Each criterion has a level: A (the minimum), AA (what most laws and organisations aim for) and AAA (the highest).

Check Pila’s screens

Here are problems found in a review of Pila's first screens. Which principle does each one break?

0 of 7 placed right

  1. The screen shows “your turn” only by turning a number green

  2. Light grey numbers on a white screen

  3. The counter page’s Call next button can’t be reached with the keyboard

  4. The Cancel button on the phone page is tiny and next to Confirm

  5. The reply says “Ticket allocation failed: quota exceeded”

  6. The page’s language isn’t marked, so a screen reader reads Filipino with English sounds

  7. A button is a styled box with no name a screen reader can announce

Contrast, in numbers

Whether text stands out from its background can be measured. WCAG defines the contrast ratio between two colours from their relative luminance L (how bright each looks, from 0 for black to 1 for white):

contrast ratio=Llighter+0.05Ldarker+0.05

It runs from 1 : 1 (the same colour) to 21 : 1 (black on white). Level AA asks for at least 4.5 : 1 for normal text, and 3 : 1 for large text.

Pila’s screen shows numbers in a grey with luminance 0.35 on white (luminance 1). Does it meet AA for normal text?

The law in the Philippines

The Magna Carta for Disabled Persons (Republic Act 7277, 1992, since amended) sets out the rights of persons with disabilities, including access to public services and to information. In 2017, a memorandum circular from the Department of Information and Communications Technology (DICT) adopted WCAG 2.0, the version then current, as the standard for government websites.

Pila is a public health service run for a barangay, so it should meet at least level AA. Teams usually add accessibility to the definition of done (lesson 3.4's criteria and lesson 6.5's tests), and test with real assistive technology: a screen reader, the keyboard alone, and the screen zoomed to 200%.

Spot the trap: colour as the only signal

Spot the trapMarco

On the waiting-room screen, Marco shows the number being called by turning it from red to green. “It’s obvious,” he says. “Green means go.”

What happens if…

Check what you learned

What does POUR stand for?
Which WCAG level do most laws and organisations aim for?
Who benefits from clear text, large buttons and plain words?

Sources

Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.

All sources for Simple Software Development