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

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


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

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39006"]:
 {{{
 #!CommitTicketReference repository="" revision="39006"
 Accessibility: Improve the form labels on the Add New User screen.

 On the Multisite - single site "Add New User" screen, some form fields
 have more
 than one label associated with them. Form controls should have at most one
 associated label element. If more than one label element is associated to
 the
 control, assistive technologies may not read the appropriate label.

 Additionally, 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.

 Props Ankit K Gupta.
 Fixes #38459.
 }}}

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


More information about the wp-trac mailing list