Skip to content

Commit 1b69335

Browse files
authored
[A11y] Added tabindex to table headers on Package Details page so that screen readers can read them (#9051)
* [A11y] Added tabindex to table headers so that screen readers can read them * Added tabindex to another table header
1 parent 8e722a3 commit 1b69335

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,8 @@
734734
<table class="table borderless" aria-label="Packages that depend on @Model.Id">
735735
<thead>
736736
<tr>
737-
<th class="used-by-adjust-table-head">Package</th>
738-
<th class="used-by-adjust-table-head">Downloads</th>
737+
<th class="used-by-adjust-table-head" tabindex="0">Package</th>
738+
<th class="used-by-adjust-table-head" tabindex="0">Downloads</th>
739739
</tr>
740740
</thead>
741741
<tbody class="no-border">
@@ -788,8 +788,8 @@
788788
<table class="table borderless" aria-label="GitHub repositories that depend on @Model.Id">
789789
<thead>
790790
<tr>
791-
<th class="used-by-adjust-table-head">Repository</th>
792-
<th class="used-by-adjust-table-head">Stars</th>
791+
<th class="used-by-adjust-table-head" tabindex="0">Repository</th>
792+
<th class="used-by-adjust-table-head" tabindex="0">Stars</th>
793793
</tr>
794794
</thead>
795795
<tbody class="no-border">
@@ -831,12 +831,12 @@
831831
<table aria-label="Version History of @Model.Id" class="table borderless">
832832
<thead>
833833
<tr>
834-
<th scope="col">Version</th>
835-
<th scope="col">Downloads</th>
836-
<th scope="col">Last updated</th>
834+
<th scope="col" tabindex="0">Version</th>
835+
<th scope="col" tabindex="0">Downloads</th>
836+
<th scope="col" tabindex="0">Last updated</th>
837837
@if (Model.CanDisplayPrivateMetadata)
838838
{
839-
<th scope="col">Status</th>
839+
<th scope="col" tabindex="0">Status</th>
840840
}
841841
@if (Model.IsCertificatesUIEnabled)
842842
{

0 commit comments

Comments
 (0)