We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 483b499 commit 82d4aaaCopy full SHA for 82d4aaa
src/lib/container/modal.tsx
@@ -14,13 +14,15 @@ interface ModalProps
14
/** classname that applies to the modal overlay. */
15
modalOverlayClassname?: ModalOverlayProps["className"];
16
children?: DialogProps["children"];
17
+ ariaLabel?: string;
18
}
19
20
/** A modal is an overlay element which blocks interaction with elements outside it. */
21
function Modal({
22
className,
23
modalOverlayClassname,
24
children,
25
+ ariaLabel,
26
...props
27
}: Readonly<ModalProps>) {
28
return (
@@ -36,6 +38,7 @@ function Modal({
36
38
>
37
39
<AriaModal {...props}>
40
<Dialog
41
+ aria-label={ariaLabel ?? "Modal"}
42
className={cn(
43
"bg-klerosUIComponentsWhiteBackground h-[200px] w-[328px] outline-none",
44
"rounded-base box-border",
0 commit comments