[wp-trac] [WordPress Trac] #33064: Customizer: form inputs need a way to have hidden labels

WordPress Trac noreply at wordpress.org
Tue Jul 21 21:59:10 UTC 2015


#33064: Customizer: form inputs need a way to have hidden labels
-------------------------------+-----------------------------
 Reporter:  afercia            |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Customize          |    Version:  4.2
 Severity:  normal             |   Keywords:
  Focuses:  ui, accessibility  |
-------------------------------+-----------------------------
 Splitting this out from #32726.

 For accessibility, all form controls that require user input must be
 associated with a label element (see Guideline 3.3.2
 http://www.w3.org/TR/2008/REC-WCAG20-20081211/#minimize-error-cues )

 In some places, the Customizer UI visual design doesn't provide a visible
 label. For example, the "New menu name" field.

 Currently, in order to try to find a balance between visual design,
 functionality and accessibility, WordPress is making large use of hidden
 labels across all the admin. I'm not completely sure hidden labels would
 meet WCAG Level A, by the way the Customizer currently lacks the ability
 to add a hidden label to form controls, see
 `WP_Customize_Control::render_content()`.

 As noted in #32726 this sounds like something that affects more than just
 one input field and maybe we should consider to improve the default
 Customizer controls output adding an easy way to have hidden label text.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33064>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list