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 10, 2021
1 parent a622465 commit dbd913d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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 dbd913d

Please sign in to comment.