Skip to content

Commit

Permalink
fix(sidebar): add aria-label to toggle button (#3066)
Browse files Browse the repository at this point in the history
  • Loading branch information
ingeridhellen authored Sep 21, 2023
1 parent bc684cb commit e46bf1c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ export const SideBarToggle = forwardRef<HTMLDivElement, SideBarToggleProps>(
return (
<ToggleContainer open={isOpen} {...props}>
<Tooltip title={isOpen ? 'Collapse' : 'Expand'} placement="right">
<Button variant="ghost_icon" onClick={() => setIsOpen(!isOpen)}>
<Button
variant="ghost_icon"
onClick={() => setIsOpen(!isOpen)}
aria-label={isOpen ? 'Collapse' : 'Expand'}
>
<Icon
size={24}
data={isOpen ? collapse : expand}
Expand Down

0 comments on commit e46bf1c

Please sign in to comment.