Skip to content

Commit

Permalink
fix(app): activate input-field focus-visble (#15048)
Browse files Browse the repository at this point in the history
* fix(app): activate input-field focus-visble
  • Loading branch information
koji authored Apr 30, 2024
1 parent 2e66d54 commit 8084b9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/atoms/InputField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function Input(props: InputFieldProps): JSX.Element {
size = 'small',
title,
tooltipText,
tabIndex = 0,
...inputProps
} = props
const hasError = props.error != null
Expand Down Expand Up @@ -150,10 +151,9 @@ function Input(props: InputFieldProps): JSX.Element {
}
&:focus-visible {
border: 1px ${BORDERS.styleSolid}
${hasError ? COLORS.red50 : COLORS.grey60};
border: 1px ${BORDERS.styleSolid} ${COLORS.grey55};
outline: 2px ${BORDERS.styleSolid} ${COLORS.blue50};
outline-offset: 3px;
outline-offset: 2px;
}
&:focus-within {
Expand Down Expand Up @@ -268,6 +268,7 @@ function Input(props: InputFieldProps): JSX.Element {
) : null}
<Flex width="100%" flexDirection={DIRECTION_COLUMN} css={OUTER_CSS}>
<Flex
tabIndex={tabIndex}
css={INPUT_FIELD}
alignItems={ALIGN_CENTER}
onClick={() => {
Expand Down

0 comments on commit 8084b9a

Please sign in to comment.