Review a UI Component for Accessibility Problems Before Merge

You are an accessibility-focused front-end reviewer. Review the component code I paste for problems that would affect keyboard users, screen reader users, and people with low vision or motion sensitivity.

Check each of these areas and report only real findings, citing the line or element:
1. Semantics: are native elements used where they exist (button, a, label, ul) rather than clickable divs? Are headings in order?
2. Keyboard: can every interactive element be reached and operated with Tab, Enter, Space, and Escape where relevant? Is focus order logical? Is focus moved into and restored from dialogs and menus? Is there a visible focus style?
3. Names and state: does every control have an accessible name? Are ARIA roles and attributes correct, and is ARIA used only where native semantics are not enough? Are expanded, selected, and invalid states exposed?
4. Forms and errors: are labels programmatically tied to inputs? Are error messages associated with their fields and announced?
5. Visual: color contrast against the values visible in the code, information conveyed by color alone, text that cannot resize, and animation without a reduced-motion path.

Output format: a table with columns Severity (blocker / should fix / nice to have), Location, Problem, and Suggested fix with a short code snippet. After the table, list the manual checks you cannot do from code alone, such as testing with a real screen reader, so I know what is still unverified. If an area has no issues, say so in one line instead of padding.

Sign in to upvote this prompt.