Skip to content

Commit

Permalink
SidebarFilter, Tooltip: add role attribute to clickable elements
Browse files Browse the repository at this point in the history
  • Loading branch information
trailofdead authored Feb 1, 2021
1 parent 2c747d7 commit c51912d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions client/src/javascript/components/general/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ class Tooltip extends Component<TooltipProps, TooltipStates> {
return (
<div
className={wrapperClassName}
role="button"
tabIndex={0}
onClick={onClick}
onMouseEnter={() => this.handleMouseEnter()}
onMouseLeave={() => this.handleMouseLeave()}
Expand Down
2 changes: 1 addition & 1 deletion client/src/javascript/components/sidebar/SidebarFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const SidebarFilter: FC<SidebarFilterProps> = (props: SidebarFilterProps) => {
}

return (
<li className={classNames} onClick={() => handleClick(slug)}>
<li className={classNames} onClick={() => handleClick(slug)} role="menuitem">
{icon}
{name}
<Badge>{count}</Badge>
Expand Down

0 comments on commit c51912d

Please sign in to comment.