[wp-trac] [WordPress Trac] #54168: Switch upload media from button to file input
WordPress Trac
noreply at wordpress.org
Wed Oct 27 18:34:40 UTC 2021
#54168: Switch upload media from button to file input
----------------------------------+----------------------------------------
Reporter: joedolson | Owner: joedolson
Type: enhancement | Status: accepted
Priority: normal | Milestone: 5.9
Component: Media | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch needs- | Focuses: accessibility, javascript
testing |
----------------------------------+----------------------------------------
Comment (by sabernhardt):
With the `hidden` class (using `display: none`), I cannot tab to the file
input as I could with the button input.
The `screen-reader-text` class might help with tabbing, but the button-
styled label should acknowledge the focus state (perhaps by adding `.drag-
drop-inside p.drag-drop-buttons:focus-within label.button` to
[https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/css/buttons.css?rev=50278#L136 buttons.css]).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54168#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list