Skip to content

Commit

Permalink
Add missing aria-expanded attribute to Status setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Sep 2, 2024
1 parent 2cb9388 commit 6764872
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/editor/src/components/post-status/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default function PostStatus() {
contentClassName="editor-change-status__content"
popoverProps={ popoverProps }
focusOnMount
renderToggle={ ( { onToggle } ) => (
renderToggle={ ( { onToggle, isOpen } ) => (
<Button
variant="tertiary"
size="compact"
Expand All @@ -182,6 +182,7 @@ export default function PostStatus() {
__( 'Change status: %s' ),
postStatusesInfo[ status ]?.label
) }
aria-expanded={ isOpen }
>
{ postStatusesInfo[ status ]?.label }
</Button>
Expand Down

0 comments on commit 6764872

Please sign in to comment.