Skip to content

Commit 0d94f74

Browse files
authored
fix(app): update InputField styling (#15114)
* fix(app): update InputField styling
1 parent de2ada8 commit 0d94f74

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

app/src/atoms/InputField/index.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface InputFieldProps {
5959
/** blur handler */
6060
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => unknown
6161
/** makes input field read-only */
62-
readOnly?: boolean | undefined
62+
readOnly?: boolean
6363
/** html tabindex property */
6464
tabIndex?: number
6565
/** automatically focus field on renders */
@@ -172,7 +172,9 @@ function Input(props: InputFieldProps): JSX.Element {
172172
173173
@media ${RESPONSIVENESS.touchscreenMediaQuerySpecs} {
174174
height: ${size === 'small' ? '4.25rem' : '5rem'};
175-
font-size: ${TYPOGRAPHY.fontSize28};
175+
font-size: ${size === 'small'
176+
? TYPOGRAPHY.fontSize28
177+
: TYPOGRAPHY.fontSize38};
176178
padding: ${SPACING.spacing16} ${SPACING.spacing24};
177179
border: 2px ${BORDERS.styleSolid}
178180
${hasError ? COLORS.red50 : COLORS.grey50};
@@ -188,8 +190,17 @@ function Input(props: InputFieldProps): JSX.Element {
188190
flex: 1 1 auto;
189191
width: 100%;
190192
height: 100%;
191-
font-size: ${TYPOGRAPHY.fontSize28};
192-
line-height: ${TYPOGRAPHY.lineHeight36};
193+
font-size: ${size === 'small'
194+
? TYPOGRAPHY.fontSize28
195+
: TYPOGRAPHY.fontSize38};
196+
line-height: ${size === 'small'
197+
? TYPOGRAPHY.lineHeight36
198+
: TYPOGRAPHY.lineHeight48};
199+
}
200+
201+
/* the size of dot for password is handled by font-size */
202+
input[type='password'] {
203+
font-size: ${size === 'small' ? '71px' : '77px'};
193204
}
194205
}
195206
`

0 commit comments

Comments
 (0)