Skip to content

Commit

Permalink
fix: adjusting menu button label
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaseta committed Jan 6, 2025
1 parent 0781014 commit b3e78ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/components/BCHeader/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const componentTexts = {
headerTitle: 'SPAR',
completeTitle: ' Seed Planning and Registry System',
openMenu: 'Open menu',
closeMenu: 'Close menu',
sideMenuAriaLabel: 'Side menu',
searchAriaLabel: 'Search',
notifications: {
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/components/BCHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ const BCHeader = () => {
!(location.pathname.endsWith('/403') || location.pathname.endsWith('/404'))
? (
<HeaderMenuButton
aria-label={componentTexts.openMenu}
aria-label={
isSideNavExpanded
? componentTexts.closeMenu
: componentTexts.openMenu
}
isCollapsible
onClick={onClickSideNavExpand}
isActive={isSideNavExpanded}
Expand Down

0 comments on commit b3e78ef

Please sign in to comment.