Skip to content

Commit

Permalink
use div[role=dialog] instead of dialog element (#2350)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnC-80 authored Sep 20, 2024
1 parent 020dca9 commit 14fecb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ const Modal = forwardRef((props, ref) => {
className={css.backdrop}
onClick={handleBackgroundClick}
/>
<dialog
<div
role="dialog"
className={classNames(css.modalRoot, css[status])}
ref={modalElem}
onFocus={focusEntered}
Expand Down Expand Up @@ -263,7 +264,7 @@ const Modal = forwardRef((props, ref) => {
)
}
</WrappingElement>
</dialog>
</div>
</>
),
refreshPortal()
Expand Down

0 comments on commit 14fecb4

Please sign in to comment.