From 8872b879d84f552b3b5f4b2ed84db18c4e403192 Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 10 Sep 2024 16:24:58 -0400 Subject: [PATCH] Explain why I've added aria-describedby={undefined} --- src/Modal.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Modal.tsx b/src/Modal.tsx index 6f5c7e6c..6e8d1115 100644 --- a/src/Modal.tsx +++ b/src/Modal.tsx @@ -98,6 +98,8 @@ export const Modal: FC = ({ styles.drawer, { [styles.tabbed]: tabbed }, )} + // Suppress the warning about there being no description; the modal + // has an accessible title aria-describedby={undefined} {...rest} > @@ -121,6 +123,8 @@ export const Modal: FC = ({ + {/* Suppress the warning about there being no description; the modal + has an accessible title */}