All skills
Skillintermediate
/fix-aria - Fix ARIA Attributes
Fix incorrect or missing ARIA attributes for accessibility compliance.
Claude Code Knowledge Pack7/10/2026
Overview
/fix-aria - Fix ARIA Attributes
Fix incorrect or missing ARIA attributes for accessibility compliance.
Steps
- Scan all HTML/JSX/TSX files for ARIA attribute usage
- Identify missing ARIA attributes on custom interactive components
- Detect incorrect ARIA role assignments (role on wrong element type)
- Find ARIA attributes that reference non-existent IDs (aria-labelledby, aria-describedby)
- Check for redundant ARIA that duplicates native HTML semantics
- Verify required ARIA properties are present for each role (e.g., tabpanel needs aria-labelledby)
- Fix missing accessible names: add aria-label or aria-labelledby
- Add aria-live regions for dynamic content that updates without page reload
- Fix aria-expanded, aria-selected, and aria-checked states on interactive elements
- Add aria-hidden="true" to decorative elements and icons
- Verify all fixes do not break the visual layout or functionality
- Run the accessibility audit again to confirm fixes resolve the findings
Rules
- Use native HTML elements over ARIA when possible (button over div role="button")
- Do not add ARIA attributes that contradict the native element semantics
- Every interactive element must have an accessible name
- ARIA IDs must be unique within the document
- Remove aria-hidden from elements that contain focusable children
- Use aria-describedby for supplementary information, not the primary label
- Test fixes with a screen reader to verify they produce correct announcements