Skip to content

Commit

Permalink
[A11y] Change role attribute of Recaptcha iframe (#9306)
Browse files Browse the repository at this point in the history
* changed recaptcha role

* Changed role to document
  • Loading branch information
advay26 authored Nov 11, 2022
1 parent 429d3a0 commit 41a7375
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NuGetGallery/App_Code/ViewHelpers.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ var hlp = new AccordionHelper(name, formModelStatePrefix, expanded, page);

window.onload = function () {
$('div.g-recaptcha iframe').attr({ tabindex: "1" });
$('div.g-recaptcha iframe').attr({ role: "document" });
}
</script>
}
Expand Down

0 comments on commit 41a7375

Please sign in to comment.