Improve the accessiblity of mobile menu toggle, and theme toggle.
This commit is contained in:
parent
35cc40b487
commit
207958e0f7
2 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@ const MobileNav = () => {
|
|||
<ThemeToggle />
|
||||
<Sheet>
|
||||
<SheetTrigger>
|
||||
<span className="sr-only">Menu</span>
|
||||
<Menu className="w-5 h-5" />
|
||||
</SheetTrigger>
|
||||
<SheetContent>
|
||||
|
|
|
@ -30,6 +30,7 @@ const ThemeToggle = () => {
|
|||
className="md:border-input border-transparent"
|
||||
onClick={handleTheme}
|
||||
>
|
||||
<span className="sr-only">Toggle theme</span>
|
||||
<Sun className="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
|
||||
<Moon className="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
|
||||
</Button>
|
||||
|
|
Loading…
Reference in a new issue