[wp-trac] [WordPress Trac] #42724: Options Media page hides breaks on desktop

WordPress Trac noreply at wordpress.org
Wed Jan 24 00:00:00 UTC 2018


#42724: Options Media page hides breaks on desktop
-----------------------------+----------------------------
 Reporter:  garrett-eclipse  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  4.9.3
Component:  Media            |     Version:  4.9
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  accessibility
-----------------------------+----------------------------
Changes (by afercia):

 * focuses:   => accessibility


Comment:

 @obenland sorry for late reply. No, that wouldn't be good for
 accessibility. Labels should never both use a for attribute and wrap the
 associated elements. Either they wrap their element or use a for/id
 association. And, as per the WordPress accessibility standards, new code
 should use a for/id association:
 https://make.wordpress.org/core/handbook/best-practices/coding-standards
 /accessibility-coding-standards/#labeling
 > Existing code uses a mixture of explicitly and implicitly labeled
 fields, but all new code must use an explicitly associated <label> element
 (using for/id attributes and not wrapping the form control).

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


More information about the wp-trac mailing list