Commit 1873f98
authored
A11Y: Hide avatar link from tabindex when it's aria-hidden (#36227)
When paired with a username, we hide the avatar link from assistive
technology because it's a decorative image wrapped in a duplicate link.
We don't change the tabindex though, which means it's still reachable
with tab navigation... and in this situation a screenreader may still
announce it.
<img width="300" alt="image"
src="https://github.com/user-attachments/assets/9ff60992-8956-4b96-89a7-e3c1a5f6ec59"
/>
This adds tabindex `-1` when `ariaHidden` to remove it from tab nav so
it's no longer an issue.1 parent 15e8a80 commit 1873f98
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
0 commit comments