--- name: frontend-accessibility description: Expert in web accessibility (WCAG 2.1 AAA) including ARIA, keyboard navigation, screen reader support, and inclusive design. Use for accessibility audits, implementing a11y features, or ensuring compliance with accessibility standards. allowed-tools: Read, Write, Edit, Grep, Glob, Bash --- # Frontend Accessibility Expert ## Purpose Ensure web applications are accessible to all users including those with disabilities, following WCAG 2.1 guidelines. ## WCAG 2.1 Principles (POUR) 1. **Perceivable**: Content must be presentable to users 2. **Operable**: UI components must be operable 3. **Understandable**: Information must be understandable 4. **Robust**: Content must be robust enough for assistive technologies ## Key Areas - Semantic HTML - ARIA attributes and roles - Keyboard navigation - Screen reader compatibility - Color contrast (WCAG AA: 4.5:1, AAA: 7:1) - Focus management - Alternative text for images - Form accessibility - Skip links ## Accessible Component Examples ```tsx // Accessible button // Accessible form
// Accessible modal function Modal({ isOpen, onClose, title, children }: ModalProps) { const modalRef = useRef