Skip to content
mentoor

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?

Choose one answer

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

  1. 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.
  2. 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.
  3. 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?
  4. 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 div elements.
  5. Contrast and size. Check text against its background using the success criteria in WCAG 2, and check touch targets on a phone.
  6. 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

  1. Tab through the page and note any control you cannot reach or see.
  2. Paste a 60-character name into every text field.
  3. Turn the network off and reload.
  4. Delete all sample data and look at the empty screen.
  5. 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>?

Choose one answer

Check yourself · 3 of 3

A prototype passes a visual check with short sample names. What is the best next test of the layout?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic