Topic 4 of 5 · 5 min read
Accessibility and edge-case gaps in prototypes
Goal: List the missing states, edge cases and accessibility failures in an AI-generated prototype before it is shown to users.
An AI-generated prototype shows the happy path with short text on a good screen, so audit it for missing states, awkward content and accessibility before anyone else uses it. Models draw the likeliest picture, and the likeliest picture has no errors in it.
Check yourself · 1 of 3
A generated list screen shows ten sample rows. Which question reveals the most missing work?
Why it matters
A prototype that looks finished gets treated as finished. Stakeholders approve it, a developer builds from it, and the gaps arrive later as bugs. Accessibility gaps matter most: they exclude real people, and they are cheap to fix at prototype stage and expensive after launch.
The audit, in order
- States. For each screen, ask: what does it show while loading, when empty, on error, on offline, and when the user lacks permission? A list that only appears with ten items is a half-built list.
- Content stress. Replace the sample text with a 60-character name, a two-line button label, a number with six digits, a translated string. Watch for clipped text and broken layouts.
- Keyboard. Put the mouse aside. Can you reach every control with Tab, in a sensible order, see where focus is, and use Enter or Space? Can you close a dialog with Escape?
- Labels and structure. Every input needs a visible label that is programmatically linked to it. Icon-only buttons need an accessible name. Use real headings and buttons, not styled
divelements. - Contrast and size. Check text against its background using the success criteria in WCAG 2, and check touch targets on a phone.
- Errors. An error should say what failed and what to do next, near the field, and not rely on colour alone.
Before and after
A typical generated snippet:
<div class="btn" onclick="send()"><img src="send.svg"></div>
<input placeholder="Email">
After the audit:
<button type="submit" aria-label="Send message">
<img src="send.svg" alt="">
</button>
<label for="email">Email</label>
<input id="email" type="email" required aria-describedby="email-error">
<p id="email-error" role="alert"></p>
What goes wrong
- Trusting the model's claim that the result is "fully accessible". It cannot check contrast or focus order by looking.
- Fixing only the one screen you tested.
- Auditing after the usability session, when participants have already hit the gaps.
Examples
A 10-minute audit
- Tab through the page and note any control you cannot reach or see.
- Paste a 60-character name into every text field.
- Turn the network off and reload.
- Delete all sample data and look at the empty screen.
- Run an automated contrast and label checker, then confirm the result by eye.
Asking the model to help, then checking
Prompting "List the missing states for this screen" is a good start, because models are decent at enumerating. Do not accept "this is accessible" as an answer; test it with a keyboard and a checker.
Key points
- AI prototypes show the happy path: short text, ten items, no errors, no loading.
- Check loading, empty, error, offline and no-permission states on every screen.
- Stress the layout with long names, big numbers and translated text.
- Test with the keyboard alone: reachable controls, visible focus, Escape to close.
- Use real buttons, linked labels and accessible names, and check contrast against WCAG 2 criteria.
Common mistakes
- Approving a prototype because the happy path looks polished.
- Testing only with short, tidy sample text.
- Believing a model's statement that its output is accessible.
- Leaving the audit until after users have seen the prototype.
Check yourself · 2 of 3
Which snippet is the accessibility problem in this generated markup: <div class="btn" onclick="send()"><img src="send.svg"></div>?
Check yourself · 3 of 3
A prototype passes a visual check with short sample names. What is the best next test of the layout?
Practice items, not counted towards your mastery.
Start here
- AI Prototyping in Real Design Contexts (NN/g) (opens in a new tab)ArticleFree
Nielsen Norman Group's view of where AI prototyping tools help real design work and where they fall short.
- v0 documentation (opens in a new tab)DocsFree
Official docs for a prompt-to-UI tool that produces runnable web code.
- Explore Figma Make (Figma Help) (opens in a new tab)DocsFree
Shows how a prompt-to-prototype tool inside a design app is used and edited.
More for this topic
- WCAG 2 Quick Reference (W3C) (opens in a new tab)StandardFree
The checklist of success criteria for contrast, keyboard use, labels and error messages.
- Introduction to Web Accessibility (W3C WAI) (opens in a new tab)ArticleFree
Plain overview of who is affected by inaccessible interfaces and why it matters.