Skip to content

Commit

Permalink
[a11y] Fix: aria-haspop and aria-expanded attributes on list view but…
Browse files Browse the repository at this point in the history
…ton.
  • Loading branch information
jorgefilipecosta committed Aug 15, 2023
1 parent b36ac1b commit d419080
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ function HeaderToolbar() {
shortcut={ listViewShortcut }
showTooltip={ ! showIconLabels }
variant={ showIconLabels ? 'tertiary' : undefined }
aria-haspopup="true"
aria-expanded={ isListViewOpen }
/>
</>
);
Expand Down
2 changes: 2 additions & 0 deletions packages/edit-site/src/components/header-edit-mode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ export default function HeaderEditMode() {
? 'tertiary'
: undefined
}
aria-haspopup="true"
aria-expanded={ isListViewOpen }
/>
) }
{ isZoomedOutViewExperimentEnabled &&
Expand Down

0 comments on commit d419080

Please sign in to comment.