Make WordPress Core

Opened 21 months ago

Last modified 21 months ago

#49950 new defect (bug)

Twenty Twenty (1.2) Horizontal menu - Submenu

Reported by: lcarevic Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: needs-testing needs-patch
Focuses: accessibility, javascript Cc:


Hi there!

I've tried adding a submenu in the horizontal menu but there is some issue regarding accessibility when I tested it.

It fails the Success Criterion 1.4.13 Content on Hover or Focus of WCAG : https://www.w3.org/TR/WCAG21/#content-on-hover-or-focus

The submenu cannot be dismissed. If there are many links in the submenu, keyboard navigation is tedious since the person will have to tab all of the content of the submenu before reaching the next item of the menu.

Expected fix:

The submenu should be dismissable with the Esc key for example.

Here is a menu with a submenu that implements the SC 1.4.13 : https://www.eesc.europa.eu/

It's my first ticket, so I hope I'v done it properly.



Attachments (1)

submenu-wp.png (19.3 KB) - added by lcarevic 21 months ago.

Download all attachments as: .zip

Change History (3)

21 months ago

#1 @SergeyBiryukov
21 months ago

  • Component changed from General to Bundled Theme

#2 @ianbelanger
21 months ago

  • Keywords needs-testing needs-patch added
  • Milestone changed from Awaiting Review to Future Release
  • Version 5.4 deleted
Note: See TracTickets for help on using tickets.