Skip to content

Commit

Permalink
Add more aria attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus-87 committed Feb 11, 2021
1 parent a622465 commit b0ae30a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/WindowTopBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class WindowTopBar extends Component {
{allowWindowSideBar && (
<MiradorMenuButton
aria-expanded={sideBarOpen}
aria-haspopup
aria-label={sideBarOpen ? t('hideWindowSideBar') : t('showWindowSideBar')}
onClick={toggleWindowSideBar}
>
Expand Down
1 change: 1 addition & 0 deletions src/components/WindowTopBarPluginMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class WindowTopBarPluginMenu extends Component {
return (
<>
<MiradorMenuButton
aria-expanded={!!anchorEl}
aria-haspopup="true"
aria-label={t('windowPluginMenu')}
aria-owns={anchorEl ? `window-plugin-menu_${windowId}` : undefined}
Expand Down
1 change: 1 addition & 0 deletions src/components/WindowTopMenuButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export class WindowTopMenuButton extends Component {
return (
<>
<MiradorMenuButton
aria-expanded={!!anchorEl}
aria-haspopup="true"
aria-label={t('windowMenu')}
aria-owns={anchorEl ? `window-menu_${windowId}` : undefined}
Expand Down

0 comments on commit b0ae30a

Please sign in to comment.