Skip to content

Commit

Permalink
fix(modal): z index [skip-release]
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony committed Mar 27, 2024
1 parent 234f107 commit 8a2a631
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ export default function Modal({
return (
<Dialog.Root open={open} onOpenChange={closeModal}>
<Dialog.Portal>
<Dialog.Overlay className={cn("fixed inset-0", "bg-black/85")} />
<Dialog.Overlay
className={cn("z-50", "fixed inset-0", "bg-black/85")}
/>

<Dialog.Content
className={cn(
"z-[51]",
"bg-fillBgPrimary",
"w-[400px] max-w-full",
"fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",
Expand Down

0 comments on commit 8a2a631

Please sign in to comment.