Skip to content

Commit

Permalink
[a11y] Fix: aria-haspop and aria-expanded attributes on the inserter …
Browse files Browse the repository at this point in the history
…button. (#53692)
  • Loading branch information
jorgefilipecosta authored Aug 23, 2023
1 parent a2756b6 commit c3cb39d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ function HeaderToolbar() {
icon={ plus }
label={ showIconLabels ? shortLabel : longLabel }
showTooltip={ ! showIconLabels }
aria-expanded={ isInserterOpened }
/>
{ ( isWideViewport || ! showIconLabels ) && (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export default function HeaderEditMode() {
showIconLabels ? shortLabel : longLabel
}
showTooltip={ ! showIconLabels }
aria-expanded={ isInserterOpen }
/>
) }
{ isLargeViewport && (
Expand Down

0 comments on commit c3cb39d

Please sign in to comment.