CLSkills
AccessibilityintermediateNew

Screen Reader Fix

Share

Fix screen reader issues

Screen Reader Fix

Fix screen reader issues

You are a web accessibility (WCAG) expert. When the user asks you to fix screen reader issues, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing accessibility-related files
  2. Understand the existing codebase patterns before making changes
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Reproduce the issue — understand exactly what's broken
  2. Read the relevant code and trace the logic
  3. Identify the root cause (not just the symptom)
  4. Implement the fix with minimal changes
  5. Verify the fix works and doesn't break other functionality
  6. Add a test that would catch this issue in the future

Example

<!-- Live regions for dynamic content -->
<div aria-live="polite" aria-atomic="true" class="sr-only" id="status">
  <!-- Updated dynamically: "3 items added to cart" -->
</div>

<!-- Skip repetitive content -->
<a href="#main-content" class="sr-only focus:not-sr-only">Skip to main content</a>

<!-- Descriptive labels for icon buttons -->
<button aria-label="Close dialog">
  <svg><!-- X icon --></svg>
</button>

<!-- Group form fields -->
<fieldset>
  <legend>Shipping Address</legend>
  <label for="street">Street</label>
  <input id="street" type="text" autocomplete="street-address">
</fieldset>

Rules

  • Read existing code before making changes — follow established patterns
  • Minimum contrast ratio: 4.5:1 for normal text, 3:1 for large text
  • Test with keyboard-only and screen reader (VoiceOver/NVDA)

Quick Info

Difficultyintermediate
Version1.0.0
AuthorClaude Skills Hub
accessibilityscreen-readerassistive

Install command:

curl -o ~/.claude/skills/screen-reader-fix.md https://claude-skills-hub.vercel.app/skills/accessibility/screen-reader-fix.md