mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 13:34:54 +03:00
feat: rename role
This commit is contained in:
parent
dae566ce76
commit
3d9c289e3f
@ -41,7 +41,7 @@ export function Modal({
|
||||
};
|
||||
|
||||
const isTopMostModal = () => {
|
||||
const openModals = document.querySelectorAll("[role=modal-content]");
|
||||
const openModals = document.querySelectorAll("[role=modal]");
|
||||
return (
|
||||
openModals.length &&
|
||||
openModals[openModals.length - 1] === modalContentRef.current
|
||||
@ -86,7 +86,7 @@ export function Modal({
|
||||
<div className={styles.backdrop({ closing: isClosing })}>
|
||||
<div
|
||||
className={styles.modal({ closing: isClosing })}
|
||||
role="modal-content"
|
||||
role="modal"
|
||||
ref={modalContentRef}
|
||||
>
|
||||
<div className={styles.modalHeader}>
|
||||
|
Loading…
Reference in New Issue
Block a user