[wp-trac] [WordPress Trac] #62548: Redundant "for" in wp-admin dashboard

WordPress Trac noreply at wordpress.org
Tue Nov 26 16:32:41 UTC 2024


#62548: Redundant "for" in wp-admin dashboard
----------------------------+------------------------------
 Reporter:  kkmuffme        |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  trivial         |  Resolution:
 Keywords:  has-patch       |     Focuses:  accessibility
----------------------------+------------------------------

Comment (by joedolson):

 If we change this, it should be to remove the wrapping `label`, so that
 the only label relationship is the explicit one. This is a relatively low
 priority change, but in most cases not complex. However, removing wrapping
 `label` elements can have significant impact on styling (e.g., if there's
 a flex or grid context involving that label), so they need to be handled
 carefully in individual cases.

 But in no circumstances should we elect to remove the `for` attributes so
 that we only use implicit labeling.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62548#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list