From 1a2e02a65d3f3876be4abd2ec9971766ade39602 Mon Sep 17 00:00:00 2001 From: "Michael Spellacy (Spell)" Date: Fri, 19 Apr 2024 08:53:11 -0400 Subject: [PATCH] Captcha is missing label. Sites team, please validate your work! --- a11y/init.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/a11y/init.js b/a11y/init.js index 5ecd5a2..bd9d55a 100644 --- a/a11y/init.js +++ b/a11y/init.js @@ -10,7 +10,7 @@ (function(){ - console.log("%c MagicBullet: Accessibility Patch v1.6 in use. ", "background: #6e00ee; color: #fff"); + console.log("%c MagicBullet: Accessibility Patch v1.7 in use. ", "background: #6e00ee; color: #fff"); var magicBulletScript = document.getElementById("tmp-magic-bullet") ? document.getElementById("tmp-magic-bullet") : document.getElementById("radancy-magicbullet"); var a11yBody = document.body; @@ -182,6 +182,14 @@ }); + // CAPTCHA has no label. If folks validated their work, I would have a lot less problems. + + $(".g-recaptcha-response").attr({ + + "aria-label":"Captcha" + + }); + // Issue: All required fields should include aria-invalid="false" on page load $(".data-form .form-field.required input, .data-form .form-field.required select").attr("aria-invalid", "false");