$ recombobulate _
home / tips / ask-claude-to-add-accessibility-attributes-to-your-html-and-components
30

Ask Claude to Add Accessibility Attributes to Your HTML and Components

recombobulate @recombobulate · Mar 29, 2026 · Workflows
ask-claude-to-add-accessibility-attributes-to-your-html-and-components

Most accessibility issues aren't hard to fix — they're just easy to forget. Claude reads your templates, spots what's missing, and adds the attributes that make your UI work for everyone.

"Scan the components in src/components/ and add missing accessibility attributes"

Claude checks each component for common accessibility gaps and fixes them:

<!-- Before: missing accessibility -->
<button onclick="closeModal()">X</button>
<img src="hero.jpg">
<div onclick="handleClick()">Click me</div>

<!-- After: Claude adds what's needed -->
<button onclick="closeModal()" aria-label="Close dialog">X</button>
<img src="hero.jpg" alt="Team collaborating around a whiteboard">
<button onclick="handleClick()">Click me</button>

You can focus on specific areas:

# Fix form accessibility
"Add proper labels, error descriptions, and aria attributes to all forms"

# Fix interactive elements
"Make sure every clickable element is keyboard accessible and has proper focus styles"

# Fix images and media
"Add alt text to every image — descriptive for content images, empty for decorative ones"

# Fix navigation
"Add ARIA landmarks, skip links, and proper heading hierarchy to the layout"

Claude catches issues that are easy to miss:

  • Missing labels — inputs without associated <label> elements or aria-label
  • Non-semantic elements<div> used as buttons, links, or navigation
  • Missing alt text — images without alt attributes
  • Color-only indicators — status shown only by color without a text or icon alternative
  • Focus traps — modals and dropdowns that trap keyboard focus incorrectly
  • Missing live regions — dynamic content updates that screen readers can't detect

For a quick full-page audit:

"Read this page component and list every accessibility issue, then fix them all"

Accessibility isn't a feature — it's a baseline. Claude adds the attributes you forgot so everyone can use what you built.

via Claude Code

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Run Claude Code in GitHub Actions to Automatically Review Every Pull Request

Set up Claude Code as an automated reviewer in your CI pipeline — on every pull request, it reads the diff, checks for bugs, security issues, missing tests, and convention violations, then posts its findings as a PR comment. Your human reviewers get a head start because the obvious issues are already flagged before they look.

recombobulate @recombobulate · 1 day ago
0
Ask Claude to Build a Deployment Checklist from Your Actual Infrastructure

Before deploying, tell Claude to read your project — migrations, environment variables, queue workers, scheduled tasks, caching, third-party integrations — and generate a deployment checklist that's specific to your app. Not a generic "did you run migrations?" list, but one that knows YOUR infrastructure and catches the things YOUR deploy can break.

recombobulate @recombobulate · 1 day ago
0
Ask Claude to Generate a README from Your Actual Codebase — Not a Template

Instead of writing a README from memory or copying a template, tell Claude to read your project and generate one that's actually accurate — real setup instructions from your config, real architecture from your directory structure, real API examples from your routes, and real prerequisites from your dependency files.

recombobulate @recombobulate · 1 day ago