Skip to content

Commit b88762e

Browse files
fix(Modal): use fixed positioning to avoid parent-dependent sizing (#749)
1 parent 0ccbdf9 commit b88762e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modal/modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const Modal = ({
122122
<Transition.Root show={open} as={Fragment}>
123123
<Dialog
124124
onClose={onClose}
125-
className="relative z-1050 w-full h-full "
125+
className="fixed inset-0 z-1050"
126126
onKeyDown={onKeyDown}
127127
initialFocus={initialFocus}
128128
>

0 commit comments

Comments
 (0)