refactor: add DrawerDescription to ImageGenDrawer and ImageUploadDrawer for improved accessibility

This commit is contained in:
ecwu
2025-01-05 23:32:22 +08:00
parent 78d40a8bf7
commit 22e3760b7f
2 changed files with 9 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import { Tr } from "@/translate";
import {
Drawer,
DrawerContent,
DrawerDescription,
DrawerFooter,
DrawerHeader,
DrawerTitle,
@@ -55,6 +56,9 @@ export function ImageGenDrawer({ disableFactor }: Props) {
<span className="sr-only">Generate Image</span>
</Button>
</DrawerTrigger>
<DrawerDescription className="sr-only">
Generate images using the DALL-E model.
</DrawerDescription>
<DrawerContent>
<div className="mx-auto w-full max-w-lg">
<DrawerHeader>