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

* add aria-label to NavBarToggle

* use open/close instead
This commit is contained in:
Ashley Harrison 2022-04-07 13:14:01 +01:00 committed by GitHub
parent af71e77e6c
commit d95782845d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"