WordPress.org

Make WordPress Core

Opened 2 weeks ago

#48170 assigned enhancement

Switch link list widgets to nav blocks

Reported by: joedolson Owned by: joedolson
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Widgets Keywords:
Focuses: accessibility Cc:
PR Number:

Description

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 (0)

Note: See TracTickets for help on using tickets.