Change the accessible role of info boxes to note

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>
This commit is contained in:
Kévin Commaille 2024-11-30 11:48:30 +01:00
parent 8ab2988824
commit 73bea48923
No known key found for this signature in database
GPG key ID: 0C971D9DBC9D678D

View file

@ -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>