Improve accessibility

This commit is contained in:
Sebastien Castiel
2023-12-10 11:38:01 -05:00
parent 34c373272b
commit f3b2a2662a
2 changed files with 13 additions and 11 deletions

View File

@@ -10,7 +10,7 @@
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary: 161 90% 31%;
--primary: 163 94% 24%;
--primary-foreground: 355.7 100% 97.3%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;

View File

@@ -79,16 +79,18 @@ export default function RootLayout({
/>
</h1>
</Link>
<ul role="nav" className="flex items-center text-sm">
<li>
<Button variant="link" asChild className="-my-3">
<Link href="/groups">Groups</Link>
</Button>
</li>
<li>
<ThemeToggle />
</li>
</ul>
<div role="navigation" aria-label="Menu" className="flex">
<ul className="flex items-center text-sm">
<li>
<Button variant="link" asChild className="-my-3">
<Link href="/groups">Groups</Link>
</Button>
</li>
<li>
<ThemeToggle />
</li>
</ul>
</div>
</header>
{children}