Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#55391 closed enhancement (invalid)

Image menu icon with empty alt text

Reported by: pedromendonca's profile pedromendonca Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

For menu items with image icon set, the alt text is hardcoded empty:
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/menu-header.php#L126

I suggest adding the Menu item name to it.

Change History (4)

This ticket was mentioned in PR #2412 on WordPress/wordpress-develop by pedro-mendonca.


3 years ago
#1

  • Keywords has-patch added

Use menu_title as image icon alt text instead of hardcoded empty alt text

Trac ticket: https://core.trac.wordpress.org/ticket/55391

#2 @pedromendonca
3 years ago

As redundancy is unwanted, and is better to keep an empty alt="", I'll close this ticket.

https://dequeuniversity.com/rules/axe/4.0/image-redundant-alt

Last edited 3 years ago by pedromendonca (previous) (diff)

#3 @pedromendonca
3 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#4 @desrosj
2 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.