From d7271b9631334d43bae37020cfc9fc3e3df5864d Mon Sep 17 00:00:00 2001 From: Pranav2612000 Date: Tue, 17 Dec 2024 18:49:12 +0530 Subject: [PATCH] improv ui: use radix modal mode for Modals Using the modal mode ensures that interaction with outside elements is disabled ( for e.g scroll ) and only dialog content is visible to screen readers. --- frontend/src/components/v2/Modal/Modal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/v2/Modal/Modal.tsx b/frontend/src/components/v2/Modal/Modal.tsx index a741d6d02..2e216ba08 100644 --- a/frontend/src/components/v2/Modal/Modal.tsx +++ b/frontend/src/components/v2/Modal/Modal.tsx @@ -72,7 +72,7 @@ ModalContent.displayName = "ModalContent"; export type ModalProps = Omit & { isOpen?: boolean }; export const Modal = ({ isOpen, ...props }: ModalProps) => ( - + ); export const ModalTrigger = DialogPrimitive.Trigger;