* 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:
co-authored by
Ashley Harrison
parent
b4a0436af8
commit
b7b2149b76
@@ -16,6 +16,7 @@ export const NavBarToggle = ({ className, isExpanded, onClick }: Props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<IconButton
|
<IconButton
|
||||||
|
aria-label={isExpanded ? 'Close navigation menu' : 'Open navigation menu'}
|
||||||
name={isExpanded ? 'angle-left' : 'angle-right'}
|
name={isExpanded ? 'angle-left' : 'angle-right'}
|
||||||
className={classnames(className, styles.icon)}
|
className={classnames(className, styles.icon)}
|
||||||
size="xl"
|
size="xl"
|
||||||
|
|||||||
Reference in New Issue
Block a user