Skip to content

Commit

Permalink
Add missing aria roles to the 'Replace template part' menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Aug 17, 2023
1 parent fb37f1f commit ea46c72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-library/src/template-part/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ export default function TemplatePartEdit( {
onClick={ () => {
setIsTemplatePartSelectionOpen( true );
} }
aria-expanded={
isTemplatePartSelectionOpen
}
aria-haspopup="dialog"
>
{ createInterpolateElement(
__( 'Replace <BlockTitle />' ),
Expand Down

0 comments on commit ea46c72

Please sign in to comment.