[wp-trac] [WordPress Trac] #48170: Switch link list widgets to nav blocks
WordPress Trac
noreply at wordpress.org
Fri Jan 3 00:07:32 UTC 2020
#48170: Switch link list widgets to nav blocks
-------------------------+----------------------------
Reporter: joedolson | Owner: audrasjb
Type: enhancement | Status: accepted
Priority: normal | Milestone: 5.4
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: accessibility
-------------------------+----------------------------
Changes (by audrasjb):
* owner: joedolson => audrasjb
* status: assigned => accepted
Comment:
Hi @afercia @joedolson
Most of these widgets are here for years, it would be very hard (= frankly
impossible) to keep backward compatibility with all themes. I'd propose
two alternative solutions for this issue:
- Keep the current markup but adding `role="navigation"` that doesn't hurt
and it's still a good first step.
- Switch to `<nav>` for themes that declare HTML5 support for widgets.
I'd vote for the option 2. We just have to add a new option to the HTML5
features list.
For reference:
https://developer.wordpress.org/reference/functions/add_theme_support/#html5
Cheers,
Jb
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48170#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list