Skip to content

Commit 14c6db7

Browse files
authored
[A11y] Added tabindex="-1" to ReCAPTCHA iframes (#9069)
* [A11y] Removed tabindex from invisible Recaptcha block * Trying tabindex=0 * Trying to set iframe tabindex=-1 using window.onload * Verified previous change in DEV, removed unnecessary tabindex change * Made jQuery selector specific to recaptcha iframes
1 parent e59a924 commit 14c6db7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/NuGetGallery/App_Code/ViewHelpers.cshtml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,10 @@ var hlp = new AccordionHelper(name, formModelStatePrefix, expanded, page);
658658
function onSubmit(token) {
659659
$form.submit();
660660
}
661+
662+
window.onload = function () {
663+
$('div.g-recaptcha iframe').attr({ tabindex: "-1" });
664+
}
661665
</script>
662666
}
663667
}

0 commit comments

Comments
 (0)