Skip to content

Commit

Permalink
fix(components): add focus-visible style to list button
Browse files Browse the repository at this point in the history
add focus-visible style to list button

close RQA-3930
  • Loading branch information
koji committed Feb 6, 2025
1 parent 645267a commit 8fa0fb3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/src/atoms/ListButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,19 @@ export function ListButton(props: ListButtonProps): JSX.Element {
? COLORS.grey20
: listButtonProps.hoverBackgroundColor};
}
&:focus-visible {
outline: 2px solid ${COLORS.blue50};
outline-offset: 0.25rem;
}
`

return (
<Flex
data-testid={`ListButton_${type}`}
onClick={onClick}
css={LIST_BUTTON_STYLE}
tabIndex={0}
{...styleProps}
>
{children}
Expand Down

0 comments on commit 8fa0fb3

Please sign in to comment.