[wp-trac] [WordPress Trac] #47611: Media views: hide the "file upload button" from assistive technologies

WordPress Trac noreply at wordpress.org
Fri Jan 31 18:37:10 UTC 2020


#47611: Media views: hide the "file upload button" from assistive technologies
-------------------------------------+-------------------------------------
 Reporter:  afercia                  |       Owner:  anevins
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  5.4
Component:  Media                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-screenshots has-     |     Focuses:  accessibility,
  patch dev-feedback                 |  javascript
-------------------------------------+-------------------------------------

Comment (by azaozz):

 > updating the WordPress moxie.js file to its latest version.

 That's not possible, the license for the newer versions has changed and is
 not compatible. See #48277.

 Looking a bit more there and trying to figure out why this is needed.
 Seems it was added (years ago) to support use of Flash for the "select
 files" button. The `div.moxie-shim` is positioned where the "Select Files"
 button is (when going to the media modal => upload), but doesn't seem to
 make difference for HTML 5.0.

 Seems it may need a bit more testing in "obscure browsers", but setting it
 to display: none doesn't seem to break it for the HTML 5.0 "runtime". The
 patch should probably use `div.moxie-shim.moxie-shim-html5` to target it
 specifically.

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


More information about the wp-trac mailing list