[wp-trac] [WordPress Trac] #38459: Checkbox have double label on single input field

WordPress Trac noreply at wordpress.org
Sat Oct 29 12:51:12 UTC 2016


#38459: Checkbox have double label on single input field
-------------------------------+-------------------------------------------
 Reporter:  Ankit K Gupta      |       Owner:  afercia
     Type:  defect (bug)       |      Status:  assigned
 Priority:  normal             |   Milestone:  4.7
Component:  Networks and       |     Version:
  Sites                        |  Resolution:
 Severity:  normal             |     Focuses:  ui, accessibility, multisite
 Keywords:  has-patch          |
-------------------------------+-------------------------------------------
Changes (by afercia):

 * owner:   => afercia
 * status:  new => assigned
 * version:  4.6.1 =>
 * milestone:  Awaiting Review => 4.7


Comment:

 It would be great to fix this and I'd say it's simple enough to go in 4.7.
 Refreshed patch to properly associate some checkboxes labels. Labels can
 be associated to their related form fields either explicitly (using a
 `for` attribute referencing the field ID) or implicitly (using the label
 to wrap the field). As a best practice, never do both and prefer
 explicitly associated labels when possible.

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


More information about the wp-trac mailing list