Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

minor: Fixed accessibility error & warning (visible in browser console) in add-document-modal

Avikalp Kumar Gupta871dbec0e1a1
diff --git a/components/documents/add-document-modal.tsx b/components/documents/add-document-modal.tsx
index 4c63c372..6d59fba4 100644
--- a/components/documents/add-document-modal.tsx
+++ b/components/documents/add-document-modal.tsx
@@ -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,
@@ -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">