Skip to content

Commit ddb37d3

Browse files
authored
Remove focus on package page tables (#10103)
1 parent 30179f2 commit ddb37d3

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@using NuGet.Services.Validation
1+
@using NuGet.Services.Validation
22
@using NuGet.Services.Licenses
33

44
@model DisplayPackageViewModel
@@ -799,15 +799,15 @@
799799
<table class="table borderless" aria-label="Packages that depend on @Model.Id">
800800
<thead>
801801
<tr>
802-
<th class="used-by-adjust-table-head" scope="col" role="columnheader" tabindex="0">Package</th>
803-
<th class="used-by-adjust-table-head" scope="col" role="columnheader" tabindex="0">Downloads</th>
802+
<th class="used-by-adjust-table-head" scope="col" role="columnheader">Package</th>
803+
<th class="used-by-adjust-table-head" scope="col" role="columnheader">Downloads</th>
804804
</tr>
805805
</thead>
806806
<tbody class="no-border">
807807
@foreach (var item in Model.PackageDependents.TopPackages)
808808
{
809809
<tr>
810-
<td class="used-by-desc-column" tabindex="0">
810+
<td class="used-by-desc-column">
811811
<a class="text-left ngp-link" href="@Url.Package(item.Id)">
812812
@(item.Id)
813813
</a>
@@ -818,7 +818,7 @@
818818
}
819819
<p class="used-by-desc">@item.Description</p>
820820
</td>
821-
<td tabindex="0">
821+
<td>
822822
<i class="ms-Icon ms-Icon--Download used-by-download-icon" aria-hidden="true"></i> <label class="used-by-count">@(item.DownloadCount.ToKiloFormat())</label>
823823
</td>
824824
</tr>
@@ -850,23 +850,23 @@
850850
<table class="table borderless" aria-label="GitHub repositories that depend on @Model.Id">
851851
<thead>
852852
<tr>
853-
<th class="used-by-adjust-table-head" scope="col" role="columnheader" tabindex="0">Repository</th>
854-
<th class="used-by-adjust-table-head" scope="col" role="columnheader" tabindex="0">Stars</th>
853+
<th class="used-by-adjust-table-head" scope="col" role="columnheader">Repository</th>
854+
<th class="used-by-adjust-table-head" scope="col" role="columnheader">Stars</th>
855855
</tr>
856856
</thead>
857857
<tbody class="no-border">
858858
@foreach (var item in Model.GitHubDependenciesInformation.Repos.Select((elem, i) => new { Value = elem, Idx = i }))
859859
{
860860
<tr>
861-
<td class="used-by-desc-column" tabindex="0">
861+
<td class="used-by-desc-column">
862862
<a data-index-number="@item.Idx" class="text-left gh-link" href="@item.Value.Url" target="_blank">
863863
@(item.Value.Id)
864864
</a>
865865
<div class="row used-by-desc">
866866
<span>@(item.Value.Description)</span>
867867
</div>
868868
</td>
869-
<td tabindex="0">
869+
<td>
870870
<i class="ms-Icon ms-Icon--FavoriteStarFill gh-star" aria-hidden="true"></i> <label class="used-by-count">@(item.Value.Stars.ToKiloFormat())</label>
871871
</td>
872872
</tr>
@@ -893,12 +893,12 @@
893893
<table aria-label="Version History of @Model.Id" class="table borderless">
894894
<thead>
895895
<tr>
896-
<th scope="col" role="columnheader" tabindex="0">Version</th>
897-
<th scope="col" role="columnheader" tabindex="0">Downloads</th>
898-
<th scope="col" role="columnheader" tabindex="0">Last updated</th>
896+
<th scope="col" role="columnheader">Version</th>
897+
<th scope="col" role="columnheader">Downloads</th>
898+
<th scope="col" role="columnheader">Last updated</th>
899899
@if (Model.CanDisplayPrivateMetadata)
900900
{
901-
<th scope="col" role="columnheader" tabindex="0">Status</th>
901+
<th scope="col" role="columnheader">Status</th>
902902
}
903903
@if (Model.IsCertificatesUIEnabled)
904904
{
@@ -917,15 +917,15 @@
917917
|| (!packageVersion.Deleted && Model.CanDisplayPrivateMetadata))
918918
{
919919
<tr class="@(packageVersion.IsCurrent(Model) ? "bg-brand-info" : null)">
920-
<td tabindex="0">
920+
<td>
921921
<a href="@Url.Package(packageVersion)" title="@packageVersion.Version">
922922
@packageVersion.Version.Abbreviate(30)
923923
</a>
924924
</td>
925-
<td tabindex="0">
925+
<td>
926926
@packageVersion.DownloadCount.ToNuGetNumberString()
927927
</td>
928-
<td tabindex="0">
928+
<td>
929929
<span data-datetime="@packageVersion.LastUpdated.ToString("O")">@packageVersion.LastUpdated.ToNuGetShortDateString()</span>
930930
@if (packageVersion.PushedBy != null)
931931
{
@@ -938,7 +938,7 @@
938938
{
939939
var packageStatusSummary = packageVersion.PackageStatusSummary;
940940

941-
<td tabindex="0">
941+
<td>
942942
@if (packageStatusSummary == PackageStatusSummary.Listed ||
943943
packageStatusSummary == PackageStatusSummary.Unlisted)
944944
{
@@ -959,7 +959,7 @@
959959
}
960960
else
961961
{
962-
<td tabindex="0" class="package-icon-cell">
962+
<td class="package-icon-cell">
963963
<i class="ms-Icon ms-Icon--Ribbon package-icon" title="@packageVersion.SignatureInformation"></i>
964964
</td>
965965
}
@@ -971,7 +971,7 @@
971971
}
972972
else
973973
{
974-
<td tabindex="0" class="package-icon-cell package-warning-icon">
974+
<td class="package-icon-cell package-warning-icon">
975975
<a class="tooltip-target tooltip-icon--black-icon" href="javascript:void(0)" role="button" aria-describedby="[email protected]" >
976976
<i class="ms-Icon ms-Icon--Warning package-icon"></i>
977977
<span class="tooltip-block" role="tooltip" id="[email protected]">
@@ -990,16 +990,16 @@
990990
else if (packageVersion.Deleted && packageVersion.CanDisplayPrivateMetadata)
991991
{
992992
<tr class="deleted">
993-
<td tabindex="0" class="version">
993+
<td class="version">
994994
@packageVersion.Version
995995
</td>
996-
<td tabindex="0">
996+
<td>
997997
@packageVersion.DownloadCount
998998
</td>
999-
<td tabindex="0">
999+
<td>
10001000
<span data-datetime="@packageVersion.LastUpdated.ToString("O")">@packageVersion.LastUpdated.ToNuGetShortDateString()</span>
10011001
</td>
1002-
<td tabindex="0">
1002+
<td>
10031003
Deleted
10041004
</td>
10051005
<td colspan="2"></td>

0 commit comments

Comments
 (0)