Skip to content

Commit 41a7375

Browse files
authored
[A11y] Change role attribute of Recaptcha iframe (#9306)
* changed recaptcha role * Changed role to document
1 parent 429d3a0 commit 41a7375

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/NuGetGallery/App_Code/ViewHelpers.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ var hlp = new AccordionHelper(name, formModelStatePrefix, expanded, page);
661661

662662
window.onload = function () {
663663
$('div.g-recaptcha iframe').attr({ tabindex: "1" });
664+
$('div.g-recaptcha iframe').attr({ role: "document" });
664665
}
665666
</script>
666667
}

0 commit comments

Comments
 (0)