Skip to content

Commit

Permalink
Add aria-checked to the selected heading level menu item. (#42273)
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia authored Jul 11, 2022
1 parent 86943ee commit c80eb71
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 @@ -60,6 +60,7 @@ export default function HeadingLevelDropdown( { selectedLevel, onChange } ) {
onClick() {
onChange( targetLevel );
},
role: 'menuitemradio',
};
}
} ) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function LevelControl( { level, onChange } ) {
sprintf( __( 'Heading %d' ), currentLevel ),
isActive,
onClick: () => onChange( currentLevel ),
role: 'menuitemradio',
};
} );
return (
Expand Down

0 comments on commit c80eb71

Please sign in to comment.