Skip to content

Commit

Permalink
💄 Change Modal Z-Index Property (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthiago authored Sep 1, 2023
1 parent 11c93d4 commit 450b667
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const MbModal = (props: ModalProps) => {
setTimeout(onClose, 300)
}}
>
<div className="fixed inset-0 bg-black bg-opacity-75 overflow-y-auto h-full w-full z-50"></div>
<div className="modal-bg"></div>
<div id="modal-wrapper" className="modal modal-scale">
<section
className="modal-section"
Expand Down
8 changes: 7 additions & 1 deletion src/components/modal/modal.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
.modal-bg {
@apply fixed inset-0 bg-black bg-opacity-75 overflow-y-auto h-full w-full;
z-index: 99999;
}

.modal {
@apply justify-center items-center flex overflow-x-hidden overflow-y-auto fixed inset-0 z-50 outline-none focus:outline-none;
@apply justify-center items-center flex overflow-x-hidden overflow-y-auto fixed inset-0 outline-none focus:outline-none;
z-index: 99999;
}

.modal-section {
Expand Down

1 comment on commit 450b667

@vercel
Copy link

@vercel vercel bot commented on 450b667 Sep 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.