Skip to content

Commit

Permalink
[A11y] Add screen reader description to More information and Add new …
Browse files Browse the repository at this point in the history
…links (#9477)
  • Loading branch information
dannyjdev authored Apr 20, 2023
1 parent 177cd68 commit 36cbb88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NuGetGallery/Views/Shared/_ListPackage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
@Model.ShortDescription
@if (Model.IsDescriptionTruncated)
{
@Html.RouteLink("More information", RouteName.DisplayPackage, new { Model.Id, Model.Version }, new { @title = "More information about " + Model.Id + " package." })
@Html.RouteLink("More information", RouteName.DisplayPackage, new { Model.Id, Model.Version }, new { @title = "More information about " + Model.Id + " package", @aria_label = "More information about " + Model.Id + " package" })
}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/NuGetGallery/Views/Users/Organizations.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Url,
CurrentUser,
false,
@<text>Organizations&nbsp;<span aria-hidden="true" class="ms-font-xl organizations-divider">|</span>&nbsp;<a href="@Url.AddOrganization()" title="Add new organization."><span aria-hidden="true" class="ms-font-m ms-Icon ms-Icon--Add"></span>&nbsp;Add new</a></text>)
@<text>Organizations&nbsp;<span aria-hidden="true" class="ms-font-xl organizations-divider">|</span>&nbsp;<a href="@Url.AddOrganization()" title="Add new organization" aria-label="Add new organization"><span aria-hidden="true" class="ms-font-m ms-Icon ms-Icon--Add"></span>&nbsp;Add new</a></text>)
</div>
</div>
<hr class="breadcrumb-divider"/>
Expand Down

0 comments on commit 36cbb88

Please sign in to comment.