dozoisch / dozoisch/react-google-recaptcha
Error messages are not announced for screen readers
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
react-google-recaptcha version: 3.1.0
react-async-script version: unclear, I don't see it in our lockfile as a dep
The status of the checkbox for recaptcha is announced correctly with a screen reader turned on but the expiration message is not. This is confusing for screen reader users, and could probably fixed by turning the DOM element for the error message into a live region ([MDN docs](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions)).
To reproduce:
1. Turn on your device's screen reader (Cmd+F5 on my Mac to turn on VoiceOver)
2. Load any page or component that contains a recaptcha
3. Check the recaptcha text box and note that it is announced as checked by the screen reader
4. Wait one minute for the recaptcha to expire until the error message pops up
5. Note that the error message is not announced
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.