Skip to content

Commit

Permalink
[A11y] Remove aria-hidden attribute for prefix reserved element (#9315)
Browse files Browse the repository at this point in the history
* make aria-hidden elements not focusable

* remove aria-hidden attribute

* fix merge dev into branch
  • Loading branch information
keylime-unicorn authored Nov 28, 2022
1 parent 3db2816 commit bd8070c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NuGetGallery/Views/Packages/DisplayPackage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@
</h1>
@if (Model.IsVerified.HasValue && Model.IsVerified.Value)
{
<span class="prefix-reserve-title" aria-hidden="true">
<img class="reserved-indicator" aria-hidden="true" tabindex="-1"
<span class="prefix-reserve-title">
<img class="reserved-indicator"
src="~/Content/gallery/img/reserved-indicator.svg"
@ViewHelpers.ImageFallback(Url.Absolute("~/Content/gallery/img/reserved-indicator-25x25.png"))
data-content="@Strings.ReservedNamespace_ReservedIndicatorTooltip" tabindex="0"
alt="@Strings.ReservedNamespace_ReservedIndicatorTooltip"/>
<a href="https://docs.microsoft.com/en-us/nuget/nuget-org/id-prefix-reservation" class="prefix-reserve-label" aria-hidden="true" tabindex="-1">
<a href="https://docs.microsoft.com/en-us/nuget/nuget-org/id-prefix-reservation" class="prefix-reserve-label">
Prefix Reserved
</a>
</span>
Expand Down

0 comments on commit bd8070c

Please sign in to comment.