Skip to content

Commit

Permalink
refactor: Toast z-index 지정 (#101)
Browse files Browse the repository at this point in the history
* refactor: `StyledToastWrapper`에 z-index 추가

* docs: `Toast` 문서 주의사항 추가
  • Loading branch information
nijuy authored May 16, 2024
1 parent f48f4e2 commit 13ec87e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Toast/Toast.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const meta: Meta<typeof Toast> = {
<h2> 주의사항 </h2>
<ol>
<li>width props 값이 fit-content보다 작을 경우 적용되지 않습니다.</li>
<li>Toast의 z-index 값은 9999입니다.</li>
</ol>
<br />
<Title>useToast</Title>
Expand Down
1 change: 1 addition & 0 deletions src/components/Toast/Toast.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const setToastAnimation = ($duration: ToastDuration) => {

export const StyledToastWrapper = styled.div`
position: fixed;
z-index: 9999;
inset: 0px;
width: 100%;
height: 100%;
Expand Down

0 comments on commit 13ec87e

Please sign in to comment.