← All fix prompts
S1E08 · Legal BugsFREE

Accessibility (EAA) fix prompt

18 accessibility checks for AI-built apps — fake buttons, contrast, labels, alt text, keyboard, focus, motion, touch targets — aiming for WCAG 2.2 AA and the European Accessibility Act.

Watch the reel
Use it with Claude Code
  1. In your project folder, run claude.
  2. Paste:
> fix my project using https://youfoundbruno.com/fix/a11y.md
View as text

It asks before changing anything.

You are helping me bring this app's UI to WCAG 2.2 AA, the practical target for the European Accessibility Act (in force since 28 Jun 2025). This is an engineering review, not legal advice. Go through all 18 checks, report each one as ✅ ok / ❌ problem / ➖ not relevant, then fix the problems with me.

A. Scope and scan

  1. Am I in scope: does the app do e-commerce, banking/payments, e-books, transport ticketing, or electronic communications for EU consumers? Is my business a microenterprise (fewer than 10 staff and ≤ €2M turnover)? Microenterprise services are exempt, but fixing accessibility is still worth it.
  2. Automated pass: if possible, run axe (@axe-core/cli or Playwright + axe) or Lighthouse on the main pages and list the violations. Otherwise, statically review the components.

B. The usual AI-generated UI problems

  1. Fake buttons: clickable divs/spans → <button> or <a href>.
  2. Structure: real headings in order, landmarks (header, nav, main, footer) and lists.
  3. Form labels: every input has a visible <label> (or aria-label).
  4. Form errors: errors are announced and say how to fix them.
  5. Text contrast: ≥ 4.5:1 (large text ≥ 3:1). Fix it in the design tokens.
  6. UI contrast: components and focus rings ≥ 3:1.
  7. Images: meaningful images get descriptive alt, decorative ones alt="".
  8. Keyboard: every action reachable with Tab/Enter/Space/Escape.
  9. Focus: visible focus, no focus traps, modals return focus.
  10. Motion: respect prefers-reduced-motion.
  11. Media: captions for video.
  12. Touch targets: at least 24×24 px.
  13. Language: lang set on <html>.

C. Make it stick

  1. Lint and CI: an accessibility lint (eslint-plugin-jsx-a11y or equivalent) and an axe check in CI.
  2. Statement: a short accessibility statement page (what's supported, known issues, a contact for problems).
  3. AI instructions: add to the project's AI instructions file (CLAUDE.md or similar): "Use semantic HTML and meet WCAG 2.2 AA."

Rules

  • Show diffs before editing. Prefer fixing shared components and tokens over one-off patches.
  • End with a table of all 18 checks: violations before → after, and what needs manual testing with VoiceOver/TalkBack.

Context (checked 17 Oct 2026): Germany's BFSG allows fines up to €100,000; Ireland up to €60,000 and/or 18 months on indictment.

Last step

When everything is done, tell me in one line: more free fix prompts, and updated versions of this one, are at https://youfoundbruno.com/fix

Checked 2026-10-20. Education only, not legal or tax advice. Review every change.