Skip to content

Commit a89f58c

Browse files
fix: accessibility warnings in mobile navbar dialogs (#336)
1 parent c783157 commit a89f58c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

frontend/src/components/HomeComponents/Navbar/NavbarMobile.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
SheetContent,
55
SheetHeader,
66
SheetTitle,
7+
SheetDescription,
78
SheetTrigger,
89
} from '@/components/ui/sheet';
910
import { url } from '@/components/utils/URLs';
@@ -97,6 +98,9 @@ export const NavbarMobile = (
9798
<SheetContent side={'left'}>
9899
<SheetHeader>
99100
<SheetTitle className="font-bold text-xl">CCSync</SheetTitle>
101+
<SheetDescription>
102+
Mobile navigation menu for CCSync
103+
</SheetDescription>
100104
</SheetHeader>
101105

102106
<nav className="flex flex-col justify-center items-center gap-2 mt-4">
@@ -177,6 +181,13 @@ export const NavbarMobile = (
177181
</div>
178182
</DialogTrigger>
179183
<DialogContent>
184+
<DialogHeader>
185+
<DialogTitle>Auto Sync</DialogTitle>
186+
<DialogDescription>
187+
Enable or disable automatic task synchronization and
188+
configure the sync interval.
189+
</DialogDescription>
190+
</DialogHeader>
180191
<div className="flex flex-col space-y-4 pt-2">
181192
<div className="flex mt-2 items-center justify-between space-x-2">
182193
<Label htmlFor="autosync-switch" className="text-base">

0 commit comments

Comments
 (0)