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>
This commit is contained in:
Kévin Commaille 2024-12-10 23:59:29 +01:00 committed by GitHub
parent 7867ebb250
commit f819403bd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

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>