Skip to content

Commit 8528374

Browse files
authored
[A11y] Added aria-label attributes to tables (#9043)
1 parent b2cb381 commit 8528374

18 files changed

Lines changed: 25 additions & 25 deletions

src/NuGetGallery/Areas/Admin/Views/ApiKeys/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@using (Html.BeginForm("Revoke", "ApiKeys", new { area = "Admin" }, FormMethod.Post))
2222
{
2323
@Html.AntiForgeryToken()
24-
<table class="table break-word" style="display: none" data-bind="visible: verifiedResults().length > 0">
24+
<table class="table break-word" style="display: none" data-bind="visible: verifiedResults().length > 0" aria-label="API Keys">
2525
<thead>
2626
<tr>
2727
<th class="col-sm-1">

src/NuGetGallery/Areas/Admin/Views/Delete/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
@using (Html.BeginForm("Delete", "Packages", new { area = "" }, FormMethod.Post, new { id = "delete-form" }))
2020
{
21-
<table class="table" id="searchResults" style="display: none" data-bind="visible: searchResults().length > 0">
21+
<table class="table" id="searchResults" style="display: none" data-bind="visible: searchResults().length > 0" aria-label="Search results">
2222
<thead>
2323
<tr>
2424
<th><input type="checkbox" data-bind="click: toggleSelectAll, checked: selectAllState" /></th>

src/NuGetGallery/Areas/Admin/Views/Features/Index.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
@<text>Features</text>,
3737
@<text><p>View and edit features.</p></text>,
3838
@<text>
39-
<table class="table">
39+
<table class="table" aria-label="Features">
4040
<tr>
4141
<th>Name</th>
4242
<th>Current Status</th>
@@ -61,7 +61,7 @@
6161
@<text>Flights</text>,
6262
@<text><p>View and edit flights.</p></text>,
6363
@<text>
64-
<table class="table">
64+
<table class="table" aria-label="Flights">
6565
<tr>
6666
<th>Name</th>
6767
<th>All</th>

src/NuGetGallery/Areas/Admin/Views/ReservedNamespace/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@using (Html.BeginForm())
2222
{
2323
<div id="prefixResult" data-bind="foreach: allPrefixResults">
24-
<table>
24+
<table aria-label="Reserved Namespaces Search Results">
2525
<tr>
2626
<td>
2727
<span style="font-weight: bold">Details:</span>

src/NuGetGallery/Areas/Admin/Views/SiteAdmins/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<section role="main" class="container main-container">
77
<h2>Current Admins</h2>
8-
<table class="table">
8+
<table class="table" aria-label="Current Admins">
99
@foreach (var adminUsername in Model.AdminUsernames)
1010
{
1111
<tr>

src/NuGetGallery/Areas/Admin/Views/SupportRequest/Admins.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<div id="sr-admins-container">
5050
<h2>Support Request Administrators</h2>
5151

52-
<table id="sr-admins-table" class="sexy-table">
52+
<table id="sr-admins-table" class="sexy-table" aria-label="Support Request Administrators">
5353
<thead>
5454
<tr>
5555
<th>Admin Key</th>

src/NuGetGallery/Areas/Admin/Views/UpdateListed/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@using (Html.BeginForm("UpdateListed", "UpdateListed", new { area = "Admin" }, FormMethod.Post, new { id = "update-listed-form" }))
1616
{
1717
@Html.AntiForgeryToken()
18-
<table class="table" id="searchResults" style="display: none" data-bind="visible: searchResults().length > 0">
18+
<table class="table" id="searchResults" style="display: none" data-bind="visible: searchResults().length > 0" aria-label="Search results">
1919
<thead>
2020
<tr>
2121
<th><input type="checkbox" data-bind="click: toggleSelectAll, checked: selectAllState" /></th>

src/NuGetGallery/Areas/Admin/Views/Validation/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
}
182182
else
183183
{
184-
<table class="table" style="width: 100%">
184+
<table class="table" style="width: 100%" aria-label="Package Validations">
185185
<thead>
186186
<tr>
187187
<th>Key</th>

src/NuGetGallery/Views/Organizations/_OrganizationMembersListForDeletedAccount.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="col-md-12 align-left ">
55
<div class="panel-collapse collapse in" id="packages-Packages" aria-expanded="true">
66
<div class="list-packages" role="list">
7-
<table class="table align-left">
7+
<table class="table align-left" aria-label="Organization Members">
88
<thead>
99
<tr class="manage-package-headings">
1010
<th class="hidden-xs"></th>

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@
731731
<p>
732732
Showing the top @(Model.PackageDependents.TopPackages.Count) NuGet packages that depend on @(Model.Id):
733733
</p>
734-
<table class="table borderless">
734+
<table class="table borderless" aria-label="Packages that depend on @Model.Id">
735735
<thead>
736736
<tr>
737737
<th class="used-by-adjust-table-head">Package</th>
@@ -785,7 +785,7 @@
785785
<p>
786786
Showing the top @(Model.GitHubDependenciesInformation.Repos.Count) popular GitHub repositories that depend on @(Model.Id):
787787
</p>
788-
<table class="table borderless">
788+
<table class="table borderless" aria-label="GitHub repositories that depend on @Model.Id">
789789
<thead>
790790
<tr>
791791
<th class="used-by-adjust-table-head">Repository</th>

0 commit comments

Comments
 (0)