Skip to content

Commit 70ce39c

Browse files
committed
fix missing label
1 parent 2b467be commit 70ce39c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/theme/BackToTopButton/DarkModeSwitch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default function DarkModeSwitch() {
2424
isDark,
2525
}
2626
)}
27+
aria-label={isDark ? 'Switch to light mode' : 'Switch to dark mode'}
2728
onClick={() => setColorMode(isDark ? 'light' : 'dark')}
2829
>
2930
<span

0 commit comments

Comments
 (0)