Skip to content

Commit 1ede04e

Browse files
authored
[A11y] Label the maintainers link (#8795)
Screen reader will now announce `Contact the maintainers of the X client` after focusing the maintainers link. Part of #8790
1 parent 7041064 commit 1ede04e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/NuGetGallery/ViewModels/ThirdPartyPackageManagerViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public ThirdPartyPackageManagerViewModel(string name, string contactUrl) : base(
1919
{
2020
ContactUrl = contactUrl;
2121
AlertLevel = AlertLevel.Warning;
22-
AlertMessage = string.Format("The NuGet Team does not provide support for this client. Please contact its <a href=\"{0}\">maintainers</a> for support.", contactUrl);
22+
AlertMessage = "The NuGet Team does not provide support for this client. Please contact its "
23+
+ $"<a href=\"{contactUrl}\" aria-label=\"Contact the maintainers of the {name} client\">maintainers</a> for support.";
2324
}
2425
}
2526
}

0 commit comments

Comments
 (0)