From a524303a34bb64a125acbd97f3b8940136fbbfe6 Mon Sep 17 00:00:00 2001 From: Stanislav Lysak Date: Mon, 19 Aug 2024 23:17:34 +0300 Subject: [PATCH] Modal z-index --- components/src/components/molecules/Modal/Modal.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/components/src/components/molecules/Modal/Modal.tsx b/components/src/components/molecules/Modal/Modal.tsx index b59acb9f..b4b33a61 100644 --- a/components/src/components/molecules/Modal/Modal.tsx +++ b/components/src/components/molecules/Modal/Modal.tsx @@ -7,6 +7,12 @@ import { mq } from '@/src/utils/responsiveHelpers' import { Backdrop } from '../..' +const StyledBackdrop = styled(Backdrop)` + z-index: 9999; + position: fixed; + inset: 0px; +` + const Container = styled.div<{ $state: TransitionState['status'] $alignTop?: boolean @@ -85,7 +91,7 @@ export const Modal = ({ mobileOnly = false, ...props }: Props) => ( - )} - + ) Modal.displayName = 'Modal'