fix: update aria-label for theme switcher button

This commit is contained in:
Simon
2025-10-24 17:21:39 +08:00
parent 3e8e584065
commit d92ba7d882

View File

@@ -56,7 +56,7 @@ export default function ThemeSwitcher() {
style={{ style={{
backgroundColor: theme === 'dark' ? '#1e293b' : '#e0f2fe', backgroundColor: theme === 'dark' ? '#1e293b' : '#e0f2fe',
}} }}
aria-label={theme === 'light' ? '切换到深色模式' : '切换到浅色模式'} aria-label={theme === 'light' ? 'Switch to dark mode' : 'Switch to light mode'}
role="switch" role="switch"
aria-checked={theme === 'dark'} aria-checked={theme === 'dark'}
> >