Commit fef8a69
committed
fix(a11y): add aria-label to icon-only links in Sandpack toolbar
The OpenInTypeScriptPlayground and OpenInCodeSandbox buttons hide their
text labels on mobile (hidden md:block), leaving only an icon visible.
Screen readers could not determine the link purpose since title alone
is insufficient per WCAG 2.4.4 (Link Purpose).
Add aria-label to both components so screen readers always announce the
link purpose regardless of viewport size.
Fixes #83661 parent 1207ee3 commit fef8a69
File tree
2 files changed
+3
-1
lines changed- src/components/MDX/Sandpack
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments