Sub topic 16
Checking Designs Early
This chapter assumes you know the earlier material: WCAG principles and levels, headings and landmarks, reading and focus order, keyboard patterns, contrast, forms, and wireframe annotations. It shows how to check a low-fidelity design for barriers before visual design begins. It also covers what you can't verify at that stage.
Why check at the wireframe stage
A wireframe has no final colors, no real content and no code. That limits what you can test. It also means that changing a heading level, moving a control or splitting a form costs minutes. The same change in built software costs a ticket, a code review and a regression pass.
Early checks answer a narrower question than a full audit. They ask whether the structure, order, interaction and content plan make an accessible build possible. A full conformance audit comes later, on working software.
What you can and cannot check
Some WCAG concerns are decided in the wireframe. Others only exist once there is rendered output.
| Concern | Checkable on a wireframe? | How |
|---|---|---|
| Heading outline and landmarks | Yes | Read the annotated outline |
| Reading and focus order | Yes | Number the stops and walk through them |
| Keyboard operation of each control | Yes | Write the key sequence per component |
| Form labels, hints, error text | Yes | Check the written copy and annotations |
| Link and button text, alt text plan | Yes | Read items out of context |
| Reflow and zoom behavior | Partly | Sketch a narrow-viewport version |
| Color contrast | Only if you pick colors | Compute ratios for the palette |
| Focus indicator appearance | Only if specified | Check the style spec |
| Screen reader announcements | No | Test after build |
Be honest in your notes about the "No" and "Partly" rows. A wireframe that passes every early check has not been shown to conform. It has been shown to have no known structural barriers.
A five-pass review
Run these passes in order. Each pass uses only the wireframe and its annotations, and each takes a few minutes per screen.
Pass 1: Outline
Write the page's headings as an indented list, ignoring everything visual. Then check it.
- There is one
h1that names the page. - Heading levels do not skip (no
h2followed directly byh4). - Each landmark (header, navigation, main, footer) appears once or has a distinguishing label if repeated.
- Every region of the wireframe belongs to a landmark.
If you can't write a sensible outline, the page has no usable structure yet. Fix that before anything else.
Pass 2: Order
Number every interactive element in the order you intend the reading and focus order to go. Compare the numbers with the visual layout. Flag any place where the visual position and the number disagree, such as a sidebar that appears on the left but should be read after the main content. Each flag needs a decision: change the layout, or change the intended order and record why.
Pass 3: Keyboard walk-through
Take one task, such as "change delivery address", and write the exact keys: Tab, Shift+Tab, Enter, Space, Escape, arrow keys. Check these:
- Every action available by mouse has a key sequence.
- Opening a dialog or menu says where focus goes, and closing it says where focus returns.
- Nothing requires a drag, hover or path-based gesture without an alternative.
- There is a way to skip repeated navigation.
Pass 4: Content and forms
Read the copy aloud with the visual layout hidden.
- Every field has a persistent visible label, not just a placeholder.
- Hints are written and tied to their fields.
- Error messages say what went wrong and how to fix it, for example "Enter an email address in the format [email protected]", not "Invalid input".
- Links and buttons make sense out of context. Ten links reading "Read more" fail this check.
- Every meaningful image has planned alt text, and every decorative image is marked as decorative.
Pass 5: Color and size
If the wireframe uses a palette or a grayscale stand-in for one, compute contrast for each foreground and background pair. Check these thresholds:
- 4.5:1 for normal text.
- 3:1 for large text, UI component boundaries and focus indicators.
Then ask whether any state is shown by color alone, such as a red border as the only error signal. Check that targets meet the 24 by 24 CSS pixel minimum or have enough spacing.
Automating the contrast check
You can check a palette before any visual design exists. This script uses the same formula as the contrast example earlier in the tutorial and reports pass or fail for a list of pairs.
function channel(value) {
const s = value / 255;
return s <= 0.03928 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4);
}
function luminance([r, g, b]) {
return 0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);
}
function contrastRatio(rgbA, rgbB) {
const [light, dark] = [luminance(rgbA), luminance(rgbB)].sort((a, b) => b - a);
return (light + 0.05) / (dark + 0.05);
}
const pairs = [
{ name: "Body text on page", fg: [51, 51, 51], bg: [255, 255, 255], min: 4.5 },
{ name: "Hint text on page", fg: [150, 150, 150], bg: [255, 255, 255], min: 4.5 },
{ name: "Input border on page", fg: [118, 118, 118], bg: [255, 255, 255], min: 3 },
{ name: "Focus ring on page", fg: [0, 95, 204], bg: [255, 255, 255], min: 3 },
];
for (const { name, fg, bg, min } of pairs) {
const ratio = contrastRatio(fg, bg);
const result = ratio >= min ? "pass" : "FAIL";
console.log(`${result} ${ratio.toFixed(2)}:1 (needs ${min}) ${name}`);
}Run it with Node. The hint text pair fails at about 2.9:1. This is a common early mistake: pale gray hint text looks tidy in a sketch and is hard to read for many people. The input border at #767676 just passes at about 4.5:1, which is why that gray appears so often in design systems.
Lightweight ways to test low-fidelity designs
Beyond reading your own annotations, these methods work on paper or clickable wireframes.
- Peer review with a checklist. A second designer or a developer runs the five passes. A fresh reader notices missing order numbers and vague link text quickly.
- Content-only read-through. Paste the page copy into a plain document in reading order. If it makes no sense, a screen reader user will hear the same thing.
- Grayscale view. Remove color from the wireframe or print it in black and white. Any information that vanishes depended on color alone.
- Zoom and narrow-width sketch. Sketch the page at about 320 CSS pixels wide. Check that content stacks in a sensible order and nothing needs horizontal scrolling.
- Keyboard walk-through on a clickable prototype. Many prototyping tools support Tab navigation poorly. If yours does, narrate the key sequence from your annotations instead of pretending the tool proves it.
- Sessions with disabled users. Even a paper prototype can be walked through with a person who uses a screen reader or keyboard only. Describe the layout aloud in reading order and note where they get lost. This gives feedback no checklist can.
The feedback loop
Findings should flow back into the wireframe and its annotations, not into a separate report that nobody reads.
Keep a short list of open questions for items you could not check, such as "Confirm the focus ring contrast on the dark header once colors are final". Pass this list to developers with the annotations.
Common errors
- Treating a pass as proof. An early check reduces risk. It does not replace testing the built page with a keyboard, a screen reader and a zoomed browser.
- Checking only the happy path. Review error states, empty states, loading states and dialogs. Many barriers live there.
- Annotating once and never rechecking. Order numbers and heading levels go stale when someone moves a block. Recheck after every layout change.
- Reviewing with real-looking content. Placeholder text such as "Lorem ipsum" hides problems with link text and error messages. Use real copy where you can.
- Relying on automated tools alone. Automated checkers catch only a portion of issues, and they cannot judge whether alt text or link text is meaningful. Use them with the manual passes, not instead of them.
Summary
Early checks verify structure, order, keyboard sequences, copy and palette against known thresholds, using the wireframe and its annotations as the only inputs. Run the five passes, fix what you find in the wireframe, and hand off with a clear list of what remains unverified.
Exercise
A wireframe shows a checkout form. The hint text color is #999999 on a white background, and an invalid field is marked only with a red border. Which early-check passes catch these two problems, and what is the fix for each?
Show answer
Pass 5 (color and size) catches both. #999999 on white has a contrast ratio of about 2.8:1, below the 4.5:1 needed for normal text, so choose a darker gray such as #595959 or darker. The red border is color alone, so add a text error message tied to the field, plus an icon or other non-color cue, and make sure the border itself has at least 3:1 contrast against its background.
Exercise
Why can you not claim a wireframe "conforms to WCAG AA" after it passes all five passes? Name two things you would still need to test after build.
Show answer
The passes only cover what a wireframe can show: structure, order, planned keyboard behavior, copy and palette. Conformance applies to working software. After build you would still need to test real screen reader announcements and actual keyboard and focus behavior, and also check reflow at 320 CSS pixels and 400% zoom with real content. Final rendered colors and focus indicator appearance would need checking too.