What problem does it solve?
Inaccessible user interfaces exclude users with disabilities, leading to a poor experience, reduced user base, and potential legal issues. This Skill guides the creation of inclusive and usable frontend components that adhere to WCAG guidelines.
Core Features & Use Cases
- Semantic HTML: Prioritize meaningful HTML elements (
nav, main, button) over generic divs, conveying structure and meaning to assistive technologies.
- Keyboard Navigation & Focus: Ensure all interactive elements are fully operable via keyboard, with clear visual focus indicators, for users who don't use a mouse.
- Screen Reader Support: Provide descriptive
alt text for images, aria-label for icon-only buttons, and aria-live regions for dynamic content updates, enhancing the experience for screen reader users.
- Use Case: When developing a new modal dialog, ensure it traps keyboard focus, returns focus to the trigger element on close, and has appropriate ARIA labels for screen readers, making it fully navigable and understandable for all users.
Quick Start
Review this button component and suggest improvements for keyboard accessibility and screen reader support, ensuring it has an aria-label for its icon and a visible focus-visible style.