$ recombobulate _
home / tips / ask-claude-to-add-accessibility-attributes-and-aria-labels-to-your-ui-components
106

Ask Claude to Add Accessibility Attributes and ARIA Labels to Your UI Components

recombobulate @recombobulate · Mar 30, 2026 · Workflows
ask-claude-to-add-accessibility-attributes-and-aria-labels-to-your-ui-components

Most UI code ships without proper accessibility because adding it after the fact feels like a separate project. Claude can read your existing components and add the right attributes in minutes — no accessibility expertise required on your part.

> scan the components in resources/views/components/ and add
> proper ARIA attributes, roles, and labels for screen readers

Claude reads each component, understands what it does visually, and adds the semantic attributes that screen readers and assistive technologies need to make it usable.

A dropdown menu missing accessibility might look like this:

<!-- Before -->
<div class="dropdown">
  <button @click="open = !open">Menu</button>
  <div x-show="open">
    <a href="/profile">Profile</a>
    <a href="/settings">Settings</a>
  </div>
</div>

Claude transforms it:

<!-- After -->
<div class="dropdown">
  <button @click="open = !open"
          aria-expanded="open"
          aria-haspopup="true"
          aria-controls="dropdown-menu">Menu</button>
  <div x-show="open"
       id="dropdown-menu"
       role="menu"
       @keydown.escape="open = false">
    <a href="/profile" role="menuitem">Profile</a>
    <a href="/settings" role="menuitem">Settings</a>
  </div>
</div>

You can target specific issues:

> add keyboard navigation to the tab component — arrow keys should
> switch tabs, and Enter/Space should activate them

> make all form inputs have proper labels — add <label> elements
> or aria-label where labels are missing

> add skip-to-content links and proper heading hierarchy across
> the layout templates

> check the modals for focus trapping — when a modal opens, focus
> should be trapped inside it and return to the trigger when it closes

Claude knows the common accessibility patterns: focus management for modals, arrow key navigation for menus, aria-live regions for dynamic content, proper alt text guidance for images, and semantic HTML that replaces div soup with meaningful elements.

Accessibility shouldn't be an afterthought — let Claude add it now so every user can use your app.

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