Problem/Motivation
After running an accessibility scan our team detected that there's a broken ARIA reference being triggered when we use recaptcha v3 element on a page.
The issue seems to be that for v3 element, in order to hide the description, we unset the element's description (https://git.drupalcode.org/project/recaptcha_v3/-/blob/8.x-1.x/recaptcha...) but the aria-describedby attribute remains on the element, causing this broken reference error.
Proposed resolution
I've tried to hide it in different ways but I guess unset the description is the only way, as captcha module looks at this element later on in a preprocess to add the description details element.
So I'm only proposing to also unset the aria-describedby attribute when we unset the description in the element array.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | broken-aria-describedby-reference-3302082-2.patch | 509 bytes | bbombachini |
Comments
Comment #2
bbombachiniComment #3
bbombachiniComment #5
dench0