Accessibility: Add the correct role to the modal backdrop (#59572)

add the correct role to the modal backdrop
pull/59710/head
Ashley Harrison 3 years ago committed by GitHub
parent fde9a5d112
commit 11a32bddbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      packages/grafana-ui/src/components/Modal/Modal.tsx

@ -69,6 +69,7 @@ export function Modal(props: PropsWithChildren<Props>) {
return (
<OverlayContainer>
<div
role="presentation"
className={styles.modalBackdrop}
onClick={onClickBackdrop || (closeOnBackdropClick ? onDismiss : undefined)}
{...underlayProps}

Loading…
Cancel
Save