Accessibility: Add the correct role to the modal backdrop (#59572)
add the correct role to the modal backdrop
This commit is contained in:
1 parent
fde9a5d112
commit
11a32bddbb
1 file changed
+1
@@ -69,6 +69,7 @@ export function Modal(props: PropsWithChildren<Props>) {
|
||||
return (
|
||||
<OverlayContainer>
|
||||
<div
|
||||
role="presentation"
|
||||
className={styles.modalBackdrop}
|
||||
onClick={onClickBackdrop || (closeOnBackdropClick ? onDismiss : undefined)}
|
||||
{...underlayProps}
|
||||
|
||||
Reference in new issue
Block a user