Skip to content

Commit

Permalink
fix spacing and height of text input
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlucas committed Mar 18, 2024
1 parent 7cb45ef commit e26770c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/TextInput/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const Input = styled.input<InputProps>`
border-color: ${(props) => hasError(dangerMain(props), '#121212')(props)};
display: flex;
height: ${pxToRem(44)};
padding: ${spacingXs}px ${spacingSm}px ${spacingXs}px ${spacingMd}px;
padding: 0px ${spacingSm}px 0px ${spacingMd}px;
${({ $hasIconRight }) => !!$hasIconRight && `padding-right: ${pxToRem(36)};`}
${({ $hasIconLeft }) => !!$hasIconLeft && `padding-left: ${pxToRem(36)};`}
align-items: center;
Expand All @@ -72,11 +72,11 @@ export const Input = styled.input<InputProps>`
}
`;

export const Message = styled.span<MessageProps>`
export const Message = styled.p<MessageProps>`
font-size: ${fontSizeMd}px;
color: ${(props) => hasError(dangerMain(props), textMain(props))(props)};
letter-spacing: 0.0275rem;
margin: ${spacingXs}px ${spacingMd}px;
margin: ${spacingSm}px ${spacingMd}px;
`;

export const Wrapper = styled.div`
Expand Down

0 comments on commit e26770c

Please sign in to comment.