fix: communicate expanded state of tooltips to screenreaders (#2322)

Co-authored-by: Nolan Lawson <nolan@nolanlawson.com>
This commit is contained in:
Noelia Ruiz Martínez 2022-12-17 18:47:02 +01:00 committed by GitHub
parent 774aa7a21c
commit 6124c948de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@
--> -->
<span class="tooltip-button" <span class="tooltip-button"
aria-describedby="tooltip-{id}" aria-describedby="tooltip-{id}"
aria-expanded={shown}
aria-controls="tooltip-{id}"
role="button" role="button"
tabindex="0" tabindex="0"
on:mouseover="set({shown: true, mouseover: true})" on:mouseover="set({shown: true, mouseover: true})"