Change the accessible role of info boxes to `note` (#2022)

The `alert` role is intrusive and should only be used when the user's immediate attention is required.

Given that this boxes only provide additional content to the current paragraph,
the `note` role seems more appropriate.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
release/v1.13
Kévin Commaille 12 months ago committed by GitHub
parent 7867ebb250
commit f819403bd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1 @@
Change the accessible role of info boxes to `note`.

@ -15,6 +15,6 @@
{{ $content := .content}}
{{ $omit_title := .omit_title }}
<div class="alert {{ $type }} {{ if $omit_title }}omit-title{{end}}" role="alert">
<div class="alert {{ $type }} {{ if $omit_title }}omit-title{{end}}" role="note">
{{ $content }}
</div>

Loading…
Cancel
Save