Skip to content

Commit

Permalink
docs(a11y): remove role 'alert' from availability notice.
Browse files Browse the repository at this point in the history
According to [MDN's article on the `alert`
role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Alert_Role),
`alert` should only be used for "information that requires the user's
immediate attention", such as the user's login session being about to
expire or the connection to the server being lost so that local
changes will not be saved.

They also add that:

> Warning: Because of its intrusive nature, the alert role must be used sparingly and only in situations where the user's immediate attention is required.

While availability may be an important (or at least relevant) piece of
information, I do not think it classifies as urgent or requiring
immediate attention.
  • Loading branch information
thomasheartman committed Jan 27, 2022
1 parent 36af8db commit 73ee4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/user_guide/environments.md
Expand Up @@ -3,7 +3,7 @@ id: environments
title: Environments
---

<div class="alert alert--info" role="alert">
<div class="alert alert--info">
<em>Environments</em> are available in <i>Unleash v4.3.x</i> and later. They can also be enabled from <i>Unleash v4.2.x</i> with a feature toggle.
</div>
<br />
Expand Down

0 comments on commit 73ee4c9

Please sign in to comment.