@@ -59,7 +59,7 @@ export interface InputFieldProps {
59
59
/** blur handler */
60
60
onBlur ?: ( event : React . FocusEvent < HTMLInputElement > ) => unknown
61
61
/** makes input field read-only */
62
- readOnly ?: boolean | undefined
62
+ readOnly ?: boolean
63
63
/** html tabindex property */
64
64
tabIndex ?: number
65
65
/** automatically focus field on renders */
@@ -172,7 +172,9 @@ function Input(props: InputFieldProps): JSX.Element {
172
172
173
173
@media ${ RESPONSIVENESS . touchscreenMediaQuerySpecs } {
174
174
height: ${ size === 'small' ? '4.25rem' : '5rem' } ;
175
- font-size: ${ TYPOGRAPHY . fontSize28 } ;
175
+ font-size: ${ size === 'small'
176
+ ? TYPOGRAPHY . fontSize28
177
+ : TYPOGRAPHY . fontSize38 } ;
176
178
padding: ${ SPACING . spacing16 } ${ SPACING . spacing24 } ;
177
179
border: 2px ${ BORDERS . styleSolid }
178
180
${ hasError ? COLORS . red50 : COLORS . grey50 } ;
@@ -188,8 +190,17 @@ function Input(props: InputFieldProps): JSX.Element {
188
190
flex: 1 1 auto;
189
191
width: 100%;
190
192
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' } ;
193
204
}
194
205
}
195
206
`
0 commit comments