Navigation: add aria-label to NavBarToggle (#47434) (#47439)

* add aria-label to NavBarToggle

* use open/close instead

(cherry picked from commit d95782845d)

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-04-07 14:31:48 +02:00
committed by GitHub
co-authored by Ashley Harrison
parent b4a0436af8
commit b7b2149b76
@@ -16,6 +16,7 @@ export const NavBarToggle = ({ className, isExpanded, onClick }: Props) => {
return (
<IconButton
aria-label={isExpanded ? 'Close navigation menu' : 'Open navigation menu'}
name={isExpanded ? 'angle-left' : 'angle-right'}
className={classnames(className, styles.icon)}
size="xl"