Commit 779bd69
a11y: make comment permalink button keyboard-visible and named (#67)
CommentAnchorLink only revealed on hover, so a focused button had no
visible indicator (WCAG 2.4.7), and its accessible name was the "#"
character via title. Add focus-visible:opacity-100, swap title for
aria-label, hide the glyph from assistive tech, and announce the
copied state via a live region.
Co-authored-by: royalpinto007 <royalpinto007@gmail.com>1 parent ece0d71 commit 779bd69
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
0 commit comments