For all UI components, the name, role, state, and value must be programmatically determinable—use native elements or correct ARIA. (WCAG 2.1 SC 4.1.2)
Why This Matters
Screen reader users can't tell what a custom widget is, what it does, or its current state.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.