[wp-trac] [WordPress Trac] #44294: Move comment form labels after inputs for consistency with consent checkbox

WordPress Trac noreply at wordpress.org
Thu Jun 7 09:42:14 UTC 2018


#44294: Move comment form labels after inputs for consistency with consent checkbox
-------------------------+----------------------------
 Reporter:  silb3r       |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Comments     |     Version:
 Severity:  normal       |  Resolution:  wontfix
 Keywords:  has-patch    |     Focuses:  accessibility
-------------------------+----------------------------
Changes (by swissspidy):

 * status:  new => closed
 * focuses:  ui, template => accessibility
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 > The form labels will end up under their corresponding inputs, and if
 that's a problem then some simple CSS can fix that, either with flexbox
 ordering or absolute positioning.

 That's not really an option.

 For usability and accessibility reasons, labels should come _before_ the
 input fields. Not just visually, but also in the markup.

 See https://www.w3.org/WAI/tutorials/forms/labels/#visual-position-of-
 label-text.

 If anything, one could open a ticket for changing the markup for the
 checkbox while still maintaining it's visual appearance. However, AFAIK
 assistive technologies handle this markup just fine for checkboxes.

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


More information about the wp-trac mailing list