Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal 컴포넌트에 z-index값 추가 #98

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Modal = ({ isOpen, onClose, children, isModal = true, ...props }: ModalPro
if (!isOpen) return null;

return (
<div className="fixed inset-0 flex items-center justify-center">
<div className="fixed inset-0 flex items-center justify-center z-50">
{isOpen && <div className="fixed inset-0 bg-black opacity-40" onClick={onClose} />}
<div className="fixed bg-white rounded-lg p-[10px] flex flex-col items-center" {...props}>
{isModal && (
Expand Down