fix: communicate expanded state of tooltips to screenreaders (#2322)
Co-authored-by: Nolan Lawson <nolan@nolanlawson.com>
This commit is contained in:
parent
774aa7a21c
commit
6124c948de
|
@ -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})"
|
||||||
|
|
Loading…
Reference in New Issue