Make WordPress Core

Opened 5 months ago

Closed 5 months ago

#63597 closed defect (bug) (duplicate)

Twenty Nineteen: Submenu hover/focus state has poor accessibility due to dark background

Reported by: rishabhwp's profile rishabhwp Owned by: audrasjb's profile audrasjb
Milestone: Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch
Focuses: ui, accessibility, css Cc:

Description

Description:

When using the Twenty Nineteen theme, the submenu item that appears on hover or keyboard focus (when "Open on click" is enabled from editor) displays a solid black background (#111). This causes poor contrast between the background and the text.

Steps to reproduce:

  1. Activate the Twenty Nineteen theme.
  2. Create a menu with a submenu.
  3. Enable "Open on click" from settings.
  4. Hover over or tab through the top-level menu to reveal the submenu.
  5. Observe the submenu item's background color on hover/focus.

Screenshots:

Before hover (normal state)

https://i.postimg.cc/hPTQ68XF/Screenshot-2025-06-19-at-3-04-52-PM.png

Hover state

https://i.postimg.cc/gkFHx2RW/Screenshot-2025-06-19-at-3-06-19-PM.png

Focus state

https://i.postimg.cc/VsRkC70k/Screenshot-2025-06-19-at-3-07-03-PM.png

Change History (5)

This ticket was mentioned in PR #9017 on WordPress/wordpress-develop by @rishabhwp.


5 months ago
#1

  • Keywords has-patch added

#2 @shubhtoy
5 months ago

Reproduction Report

Description

This report validates whether the issue can be reproduced.

Environment

  • WordPress: 6.9-alpha-60093-src
  • PHP: 8.2.28
  • Server: nginx/1.27.5
  • Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
  • Browser: Chrome 137.0.0.0
  • OS: macOS
  • Theme: Twenty Nineteen 3.1
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ✅ Error condition occurs (reproduced).

#3 @audrasjb
5 months ago

  • Keywords needs-testing added
  • Owner set to audrasjb
  • Status changed from new to reviewing

@sandeepdahiya commented on PR #9017:


5 months ago
#4

I’ve followed the steps mentioned by the OP and can confirm that the bug still exists. I’ve also attached an image showing the hover/click on menu after applying the patch.

https://github.com/user-attachments/assets/58ffca6e-66ef-439d-96e6-d955b6b4c8ce

#5 @sabernhardt
5 months ago

  • Keywords needs-testing removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from reviewing to closed

This was already reported on #59924, and the styles need to change more than the background color. (My PR is apparently still incomplete.)

Note: See TracTickets for help on using tickets.