Commit 5865e38
authored
Add label to theme-switcher button. (#543)
Fixes
- #537
as suggested by @jamesprime by adding an [aria
label](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label)
to labelless button. Confirmed with macOS's "VoiceOver" screen reader...

---
As with the ☼ / ☾ it's a bit WET because it needs declaring and then the
same lines appear in the switch conditional.1 parent 99fc90d commit 5865e38
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
0 commit comments