fixing-accessibility

Audit and fix HTML accessibility issues across controls, forms, dialogs, and keyboard interactions.

10.2k|477|Updated Jan 7, 2026
Ready to run
npx skills add https://github.com/ibelick/ui-skills --skill fixing-accessibility-ibelick
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: fixing-accessibility
Source: https://github.com/ibelick/ui-skills/tree/main/skills/fixing-accessibility
Command: npx skills add https://github.com/ibelick/ui-skills --skill fixing-accessibility-ibelick

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Accessibility defects in HTML interfaces can prevent keyboard users, screen reader users, and people with visual or motion sensitivities from completing tasks. This guide provides targeted checks and code-level fixes for common issues without unrelated UI refactoring. ## Core Features & Use Cases - Accessible names and semantics: Check labels for form fields, names for interactive controls, meaningful link text, decorative icons, native elements, and required ARIA attributes. - Keyboard, focus, and dialogs: Review Tab access, visible focus, Escape behavior, modal focus trapping, initial dialog focus, and focus restoration. - Forms, announcements, and states: Connect errors and helper text with aria-describedby, set aria-invalid, announce critical errors, review contrast, and respect reduced-motion preferences. - Use case: Review an icon-only button, modal form, or custom dropdown and return the exact violation, its impact, and a minimal code-level correction. ## Quick Start Review the attached HTML or component file for accessibility violations and return each quoted snippet, its impact, and a minimal code-level fix.

Frequently Asked Questions about fixing-accessibility

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix HTML accessibility issues in forms?▼

Fix HTML accessibility issues in forms by labeling every input, select, and textarea, associating helper text and errors with aria-describedby, marking invalid fields with aria-invalid, and announcing critical errors with aria-live. Keep changes targeted rather than rewriting unrelated UI.

How do I make icon-only buttons accessible?▼

Make icon-only buttons accessible by giving each button an aria-label or aria-labelledby, and mark decorative SVG icons as aria-hidden="true". Use meaningful text for links and native button elements for actions.

Can native HTML replace ARIA roles for accessibility?▼

Use native HTML elements for accessibility before adding ARIA roles. Choose buttons, links, inputs, lists, and headings according to their semantics, and provide required ARIA attributes only when a custom widget needs them.

Why does a custom dialog fail keyboard accessibility?▼

Fix custom dialog keyboard accessibility by trapping focus while open, setting initial focus inside, restoring focus to the trigger on close, and supporting Escape to close. Also check that opening the dialog does not scroll the page unexpectedly.

When should I avoid custom accessibility behavior?▼

Avoid custom accessibility behavior when native HTML semantics or established accessible primitives can provide the widget behavior. The guidance favors native elements and established primitives for complex menus, dialogs, and comboboxes over custom role-based implementations.