[wp-trac] [WordPress Trac] #47122: Media views: fix unlabelled controls

WordPress Trac noreply at wordpress.org
Fri Jun 7 20:43:35 UTC 2019


#47122: Media views: fix unlabelled controls
-----------------------------+--------------------------------------------
 Reporter:  afercia          |       Owner:  afercia
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  5.3
Component:  Media            |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-screenshots  |     Focuses:  ui, accessibility, javascript
-----------------------------+--------------------------------------------
Changes (by afercia):

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


Comment:

 In [changeset:"45499" 45499]:
 {{{
 #!CommitTicketReference repository="" revision="45499"
 Accessibility: Improve accessibility of all the media views form controls.

 - changes the media views form controls to have explicitly associated
 labels with for/id attributes
 - adds a few missing labels / aria-labels
 - improves a few existing labels / aria-labels
 - improves semantics in a few places, by adding visually hidden headings,
 fieldset + legend elements, aria-describedby attributes
 - improves the image custom size input fields and their labelling
 - adds `role="status"` to the "saved" indicator so that status messages
 are announced to assistive technologies
 - swaps the columns source order in the image details template, to make
 visual and DOM order match
 - swaps the "Replace" and "Back" buttons source order in the Replace Image
 view, to make visual and DOM order match
 - gallery settings: move checkbox label to the right: checkboxes are
 supposed to have labels on the right
 - merge similar strings, unified to "Drop files to upload" (removed "Drop
 files here", and "Drop files anywhere to upload")
 - makes the "upload-ui" consistent across the media views
 - hides the IE 11 "X" `::-ms-clear` button in the Insert from URL field,
 as it conflicts with the uploading spinner
 - adds comments to all the media templates to clarify their usage
 - slightly increases vertical spacing between form fields in the media
 sidebar
 - removes some CSS selectors introduced as backwards compatibility for
 WordPress pre-4.4
 - removes some CSS still targeting Internet Explorer 7 and 8

 Fixes #47141.
 Fixes #47122.
 }}}

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


More information about the wp-trac mailing list