Make WordPress Core

Opened 2 months ago

Last modified 7 weeks ago

#48170 assigned enhancement

Switch link list widgets to nav blocks

Reported by: joedolson Owned by: joedolson
Milestone: 5.4 Priority: normal
Severity: normal Version:
Component: Widgets Keywords: needs-patch
Focuses: accessibility Cc:
PR Number:


Functionally, most of the widgets used in WordPress (archive links, categories list, tag cloud, recent posts, etc.) are nav blocks. Semantically, it would be sensible to mark them all as such and use aria-labelledby or aria-label to associate their context labels.

As a counter argument, adding the <nav> wrapper to these widgets is likely to have a) design consequences for themes and b) result in sites with large numbers of nav landmarks.

See thread: https://twitter.com/SaraSoueidan/status/1178015124076077056

There are arguments both for and against; it's something we should consider.

Change History (2)

This ticket was mentioned in Slack in #accessibility by afercia. View the logs.

7 weeks ago

#2 @afercia
7 weeks ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 5.4

Worth also reminding widgets are wrapped in an aside element, which is not ideal. Exploring better semantic markup would be great.

Note: See TracTickets for help on using tickets.