Skip to content

Commit c13b9b7

Browse files
Merge pull request #207 from 0x3mr/main
Improved Accessibility: Added labels to theme switcher
2 parents 86cefc7 + 75f8deb commit c13b9b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/ThemeSwitch/ThemeSwitcher.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
class="sr-only"
4141
checked={darkMode}
4242
onclick={handleThemeSwitch}
43+
aria-label="Toggle theme"
4344
/>
4445
<label
4546
for="theme-toggle"

0 commit comments

Comments
 (0)