chore: fix dialogs

This commit is contained in:
Aman Harwara
2023-05-18 13:02:58 +05:30
parent 240bf669a1
commit 2294467059
2 changed files with 2 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ const AlertDialog = ({
}) })
return ( return (
<Dialog store={dialog} role="alertdialog" className="h-full w-full" backdropProps={{ className: '!z-modal' }}> <Dialog store={dialog} role="alertdialog" className="fixed top-0 left-0 z-modal h-full w-full">
<div <div
className="absolute z-0 h-full w-full bg-passive-5 opacity-25 md:opacity-75" className="absolute z-0 h-full w-full bg-passive-5 opacity-25 md:opacity-75"
role="presentation" role="presentation"

View File

@@ -18,10 +18,7 @@ const HistoryModalDialog = forwardRef(({ children, onDismiss }: Props, ref: Forw
store={dialog} store={dialog}
aria-label="Note revision history" aria-label="Note revision history"
ref={ref} ref={ref}
backdropProps={{ className="fixed top-0 left-0 z-modal h-full w-full"
className: '!z-modal',
}}
className="h-full w-full"
> >
<div <div
className="absolute z-0 h-full w-full bg-passive-5 opacity-0 md:opacity-75" className="absolute z-0 h-full w-full bg-passive-5 opacity-0 md:opacity-75"