Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor UI warning fix in Add Document Modal #1424

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions components/documents/add-document-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import useLimits from "@/lib/swr/use-limits";
import { getSupportedContentType } from "@/lib/utils/get-content-type";

import { UpgradePlanModal } from "../billing/upgrade-plan-modal";
import { DialogDescription, DialogTitle } from "@radix-ui/react-dialog";

export function AddDocumentModal({
newVersion,
Expand Down Expand Up @@ -410,6 +411,10 @@ export function AddDocumentModal({
className="border-none bg-transparent text-foreground shadow-none"
isDocumentDialog
>
<DialogTitle className="sr-only">Add Document</DialogTitle>
<DialogDescription className="sr-only">
An overlayed modal that can be clicked to upload a document
</DialogDescription>
<Tabs defaultValue="document">
{!newVersion ? (
<TabsList className="grid w-full grid-cols-2">
Expand Down
Loading