Skip to content

Commit

Permalink
Merge pull request #562 from depromeet/fix/zindex
Browse files Browse the repository at this point in the history
fix : bottomsheet zIndex 수정
  • Loading branch information
wade3420 authored Feb 13, 2024
2 parents 9821c0a + d53eb28 commit 634e539
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion src/components/BottomSheet/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function BottomSheet({ children, isDraggable = false, onClickOutside, isShowing,
return (
<SpringBottomSheet
open={isShowing}
className={css(bottomSheetCss, isDraggable ? {} : nonDraggableCss)}
className={css(bottomSheetCss, isDraggable ? {} : nonDraggableCss, zIndexCss)}
onDismiss={onClickOutside}
>
<div className={headerWrapperCss}>{headerElement}</div>
Expand All @@ -40,6 +40,16 @@ const nonDraggableCss = {
display: 'none',
},
};

const zIndexCss = {
'& [data-rsbs-overlay]': {
zIndex: '100 !important',
},
'& [data-rsbs-backdrop]': {
zIndex: '100 !important',
},
};

const contentCss = css({
padding: '0 16px',
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/HeaderBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const wrapperCss = flex({
left: 0,
right: 0,
top: 0,
zIndex: 3,
zIndex: 'appBar',
position: 'fixed',
display: 'flex',
alignItems: 'center',
Expand Down

0 comments on commit 634e539

Please sign in to comment.