--- name: fix-accessibility description: 'Audit and fix WCAG 2.1 Level AA accessibility issues in BEEQ StencilJS components. Use for: adding missing ARIA attributes, fixing keyboard navigation, managing focus, fixing color contrast issues, adding screen reader support, fixing role usage, and writing accessibility-related E2E tests for bq-* components.' argument-hint: 'Component name or path (e.g. "bq-button" or packages/beeq/src/components/button/bq-button.tsx)' metadata: internal: true --- # Fix Accessibility in a BEEQ Component ## When to Use - A component fails an accessibility audit or axe scan - A PR review flagged missing ARIA attributes - Keyboard navigation is broken or incomplete - Screen reader announces incorrect role, state, or label - Focus is lost after a user interaction ## Before You Start 1. Read the [accessibility instructions](../../instructions/accessibility.instructions.md) 2. Read the component's `.tsx` to understand its current HTML structure and shadow DOM 3. Note which semantic HTML elements are used and whether shadow DOM parts are exposed ## Audit Checklist Work through each category in order: ### 1. Semantic HTML - [ ] Interactive elements use native elements: `