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.

Comments

bbombachini created an issue. See original summary.

bbombachini’s picture

bbombachini’s picture

Status: Active » Needs review

  • ded208d committed on 8.x-1.x
    Issue #3302082 by bbombachini: Broken ARIA reference - aria-describedby...
dench0’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.