Skip to content

Commit

Permalink
Captcha is missing label. Sites team, please validate your work!
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelspellacy committed Apr 19, 2024
1 parent 161917f commit 1a2e02a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion a11y/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 1a2e02a

Please sign in to comment.