Skip to content

Commit

Permalink
fix: 타임 피커 스타일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn2468 committed Jan 1, 2025
1 parent 20336c7 commit fce11f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/ui/src/components/TimePicker/TimePicker.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ const Text = styled(TextField)`

const Dimmed = styled.div`
position: fixed;
z-index: 1;
z-index: 999;
bottom: 0;
left: 0;
width: 100vw !important;
height: 100vh;
background-color: rgba(0, 0, 0, 0.25);
${mq_lg} {
display: none;
background-color: transparent;
position: absolute;
}
`;

const Control = styled.div`
position: fixed;
width: 100vw !important;
z-index: 2;
left: 0;
bottom: 0;
border-radius: 12px 12px 0px 0px;
Expand Down
5 changes: 2 additions & 3 deletions packages/ui/src/components/TimePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function TimePicker({ disabled, errorMessage, value, onChange, onBlur }: Props)
/>
</Styled.TextContainer>
{open && (
<>
<Styled.Dimmed>
<Styled.Control ref={ref}>
<Styled.Title>
시간 선택하기
Expand Down Expand Up @@ -157,8 +157,7 @@ function TimePicker({ disabled, errorMessage, value, onChange, onBlur }: Props)
</Styled.List>
</Styled.ListContainer>
</Styled.Control>
<Styled.Dimmed />
</>
</Styled.Dimmed>
)}
</Styled.Container>
</>
Expand Down

0 comments on commit fce11f5

Please sign in to comment.