Skip to content

Commit

Permalink
fix: 인풋 포커스 일때만 보더 색상 검정
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn2468 committed Oct 11, 2024
1 parent c708537 commit 012b617
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,7 @@ const FieldWrap = styled.div`
const InputWrapper = styled.div<InputWrapperProps>`
${({ theme }) => theme.typo.b3};
border: 1px solid
${({ text, theme, isError }) =>
isError
? theme.palette.status.error
: text
? theme.palette.grey.g90
: theme.palette.grey.g20};
${({ theme, isError }) => (isError ? theme.palette.status.error : theme.palette.grey.g20)};
border-radius: 4px;
background-color: ${({ theme }) => theme.palette.grey.w};
padding: 8px 12px;
Expand All @@ -61,6 +56,12 @@ const InputWrapper = styled.div<InputWrapperProps>`
display: flex;
align-items: center;
width: 100%;
transition: border-color 0.2s ease-in-out;
&:focus-within {
border-color: ${({ theme, isError }) =>
isError ? theme.palette.status.error : theme.palette.grey.g70};
}
`;

const TextFieldWrap = styled.div`
Expand Down

0 comments on commit 012b617

Please sign in to comment.