Skip to content

Commit

Permalink
[a11y] Fix: aria-haspop and aria-expanded attributes on the link form…
Browse files Browse the repository at this point in the history
…at button. (#53691)
  • Loading branch information
jorgefilipecosta authored Aug 22, 2023
1 parent 015cdf2 commit 9c36be7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/format-library/src/link/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ function Edit( {
isActive={ isActive }
shortcutType="primaryShift"
shortcutCharacter="k"
aria-haspopup="true"
aria-expanded={ addingLink || isActive }
/>
) }
{ ! isActive && (
Expand All @@ -100,6 +102,8 @@ function Edit( {
isActive={ isActive }
shortcutType="primary"
shortcutCharacter="k"
aria-haspopup="true"
aria-expanded={ addingLink || isActive }
/>
) }
{ ( addingLink || isActive ) && (
Expand Down

0 comments on commit 9c36be7

Please sign in to comment.