Skip to content

Commit

Permalink
Correção do textinput (#180)
Browse files Browse the repository at this point in the history
* fix spacing and height of text input

* fix lint
  • Loading branch information
mdlucas authored Mar 22, 2024
1 parent 7cb45ef commit 50b8499
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/TextInput/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const primaryMain = getTheme('brand.primary.main');
const dangerMain = getTheme('danger.main');
const fontSizeSm = getTheme('fontSizes.sm');
const fontSizeMd = getTheme('fontSizes.md');
const spacingXs = getTheme('spacing.xs');
const spacingSm = getTheme('spacing.sm');
const spacingMd = getTheme('spacing.md');
const spacingLg = getTheme('spacing.lg');
Expand Down Expand Up @@ -52,7 +51,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 +71,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 50b8499

Please sign in to comment.