Skip to content

Commit

Permalink
Make organism filter toggle button fully keyboard accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfalke committed Nov 14, 2024
1 parent d8d3d26 commit d2ecfbc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@
white-space: nowrap;
width: 18em;

&:hover,
&:focus {
background-color: #396aa4;
background-image: none;
}

&Text {
margin: 0 2em;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,15 @@ type ExpansionBarProps = {

function ExpansionBar(props: ExpansionBarProps) {
return (
<div className={cx('--ExpansionBar')} onClick={props.onClick}>
<button
type="button"
className={cx('--ExpansionBar')}
onClick={props.onClick}
>
{props.arrow}
<span className={cx('--ExpansionBarText')}>{props.message}</span>
{props.arrow}
</div>
</button>
);
}

Expand Down

0 comments on commit d2ecfbc

Please sign in to comment.