Make WordPress Core

#59353 closed defect (bug) (fixed)

Loss of focus when closing Image Rotation menu

Reported by: joedolson's profile joedolson Owned by: joedolson's profile joedolson
Milestone: 6.4 Priority: normal
Severity: normal Version: 6.3
Component: Media Keywords: has-patch commit
Focuses: accessibility, javascript Cc:

Description

When opening the image rotation menu, focus is moved to the first item in the menu. This also happens when closing the image rotation menu, which is essentially a loss of focus since that item is now hidden.

Attachments (1)

59353.diff (741 bytes) - added by joedolson 19 months ago.
Fix focus loss

Download all attachments as: .zip

Change History (3)

@joedolson
19 months ago

Fix focus loss

#1 @joedolson
19 months ago

  • Keywords has-patch commit added

#2 @joedolson
19 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 56591:

Media: Fix focus loss when closing Image Rotation menu.

Only shift focus into menu when opening the menu. Check aria-expanded value of toggle before moving focus.

Props joedolson.
Fixes #59353.

Note: See TracTickets for help on using tickets.