Skip to content

Commit b0be388

Browse files
[A11y][Fastpass] Add role attribute where aria-label attribute is used (#9349)
* add role attribute * add informational comment
1 parent b8c3912 commit b0be388

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 = "<b display=\"none\" aria-label=\"warning\"></b> The NuGet Team does not provide support for this client. Please contact its "
22+
// the b tag below adds an element that is not displayed, but that allows screen readers to announce "warning" before the following alert message text
23+
AlertMessage = "<b display=\"none\" aria-label=\"warning\" role=\"alert\"></b> The NuGet Team does not provide support for this client. Please contact its "
2324
+ $"<a href=\"{contactUrl}\" aria-label=\"Contact the maintainers of the {name} client\">maintainers</a> for support.";
2425
}
2526
}

0 commit comments

Comments
 (0)