Merge pull request #991 from ray-android/patch-3

Resolve Issue #990
This commit is contained in:
Timothy 2024-08-11 12:54:54 +08:00 committed by GitHub
commit 6a540fcd79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,7 @@ const ThemeSwitch = () => {
<div className="mr-5 flex items-center">
<Menu as="div" className="relative inline-block text-left">
<div className="flex items-center justify-center hover:text-primary-500 dark:hover:text-primary-400">
<Menu.Button>
<Menu.Button aria-label="Theme switcher">
{mounted ? resolvedTheme === 'dark' ? <Moon /> : <Sun /> : <Blank />}
</Menu.Button>
</div>