Skip to content

Commit

Permalink
update input field styling
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed May 10, 2024
1 parent 135cb51 commit 1c83a58
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions app/src/atoms/InputField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export interface InputFieldProps {
| typeof TYPOGRAPHY.textAlignCenter
/** small or medium input field height, relevant only */
size?: 'medium' | 'small'
/** react useRef for controlling focus on ODD */
/** react useRef to control input field instead of react event */
ref?: React.MutableRefObject<HTMLInputElement | null>
}

Expand Down Expand Up @@ -175,8 +175,17 @@ export const InputField = React.forwardRef<HTMLInputElement, InputFieldProps>(
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' ? '71px' : '77px'};
}
}
`
Expand Down

0 comments on commit 1c83a58

Please sign in to comment.