Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(app): update InputField styling #15114

Merged
merged 3 commits into from
May 9, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions app/src/atoms/InputField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface InputFieldProps {
/** blur handler */
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => unknown
/** makes input field read-only */
readOnly?: boolean | undefined
readOnly?: boolean
/** html tabindex property */
tabIndex?: number
/** automatically focus field on renders */
Expand Down Expand Up @@ -172,7 +172,9 @@ function Input(props: InputFieldProps): JSX.Element {

@media ${RESPONSIVENESS.touchscreenMediaQuerySpecs} {
height: ${size === 'small' ? '4.25rem' : '5rem'};
font-size: ${TYPOGRAPHY.fontSize28};
font-size: ${size === 'small'
? TYPOGRAPHY.fontSize28
: TYPOGRAPHY.fontSize38};
padding: ${SPACING.spacing16} ${SPACING.spacing24};
border: 2px ${BORDERS.styleSolid}
${hasError ? COLORS.red50 : COLORS.grey50};
Expand All @@ -188,8 +190,17 @@ function Input(props: InputFieldProps): JSX.Element {
flex: 1 1 auto;
width: 100%;
height: 100%;
font-size: ${TYPOGRAPHY.fontSize28};
line-height: ${TYPOGRAPHY.lineHeight36};
font-size: ${size === 'small'
? TYPOGRAPHY.fontSize28
: TYPOGRAPHY.fontSize38};
line-height: ${size === 'small'
? TYPOGRAPHY.lineHeight36
: TYPOGRAPHY.lineHeight48};
}

/* the size of dot for password is handled by font-size */
input[type='password'] {
font-size: ${size === 'small' ? '56px' : '62px'};
}
}
`
Expand Down
Loading