[wp-trac] [WordPress Trac] #62926: Redundant "for" in nav-menus
WordPress Trac
noreply at wordpress.org
Sun Feb 9 10:45:00 UTC 2025
#62926: Redundant "for" in nav-menus
-----------------------------------+------------------------------
Reporter: kkmuffme | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version:
Severity: trivial | Resolution:
Keywords: has-patch 2nd-opinion | Focuses: accessibility
-----------------------------------+------------------------------
Changes (by audrasjb):
* keywords: has-patch => has-patch 2nd-opinion
* focuses: => accessibility
Comment:
Hello, thank you for the ticket and PR,
It's difficult to find detailed benchmark on this implementation, but I
found at least one resource which shows that using a `for` attribute on
implicit label is better supported by user agents:
https://dev.to/thejaredwilcurt/the-truth-behind-implicitexplicit-form-
labels-2e10
I don't know if this resource is still relevant but without knowing the
implementation in current screen readers, I wouldn't recommend to remove
the `for` attribute.
Adding `accessibility` focus for a double check from the accessibility
team.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62926#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list