Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#59353 closed defect (bug) (fixed)

Loss of focus when closing Image Rotation menu

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

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 3 years ago.
Fix focus loss

Download all attachments as: .zip

Change History (3)

@joedolson
3 years ago

Fix focus loss

#1 @joedolson
3 years ago

  • Keywords has-patch commit added

#2 @joedolson
3 years ago

  • Resolution → fixed
  • Status assigned → 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.