Skip to content

Commit fece086

Browse files
committed
chore: fix mobile menu
1 parent ca02fa1 commit fece086

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

components/Navbar.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use client";
22

33
import * as DialogPrimitive from "@radix-ui/react-dialog";
4+
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
45
import clsx from "clsx";
56
import Link from "next/link";
67
import * as React from "react";
@@ -49,12 +50,17 @@ export const Navbar = ({ primary, secondary, actions }: NavbarProps) => {
4950
setOpen(false);
5051
}
5152
}}
52-
aria-label="Menu"
5353
className={clsx(
5454
"bg-app fixed inset-0 top-[calc(3.75rem-1px)] z-10 flex flex-col items-start gap-3 overflow-auto p-6 md:hidden",
5555
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 duration-200",
5656
)}
5757
>
58+
<VisuallyHidden>
59+
<DialogPrimitive.Title>Menu</DialogPrimitive.Title>
60+
<DialogPrimitive.Description>
61+
Navigation of Argos
62+
</DialogPrimitive.Description>
63+
</VisuallyHidden>
5864
{secondary}
5965
<hr className="my-8 w-full border-0 border-t" />
6066
<div className="flex items-center gap-4">{actions}</div>

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@radix-ui/react-slider": "^1.2.3",
2323
"@radix-ui/react-slot": "^1.1.2",
2424
"@radix-ui/react-tooltip": "^1.1.8",
25+
"@radix-ui/react-visually-hidden": "^1.1.2",
2526
"@shikijs/rehype": "^2.3.2",
2627
"@types/mdx": "^2.0.13",
2728
"clsx": "^2.1.1",

pnpm-lock.yaml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/globals.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
& > span {
261261
width: 20px;
262262
height: 2px;
263-
background-color: var(--text-color);
263+
background-color: var(--text-color-default);
264264
transition: 300ms;
265265
transition-property: all;
266266
position: relative;

0 commit comments

Comments
 (0)