WordPress.org

Make WordPress Core

Opened 3 weeks ago

Last modified 3 weeks ago

#54168 accepted enhancement

Switch upload media from button to file input

Reported by: joedolson Owned by: joedolson
Milestone: 5.9 Priority: normal
Severity: normal Version: 3.3
Component: Media Keywords: has-patch
Focuses: accessibility, javascript Cc:

Description

Per @justinahinon, the media library needs to use input type="file" in order to run e2e tests with Puppetteer.

Based on some quick testing, this should work pretty smoothly.

Attachments (1)

54618.diff (795 bytes) - added by joedolson 3 weeks ago.
Switches input from button to file; adds styles to hide input & show label as button style.

Download all attachments as: .zip

Change History (2)

@joedolson
3 weeks ago

Switches input from button to file; adds styles to hide input & show label as button style.

#1 @joedolson
3 weeks ago

  • Owner set to joedolson
  • Status changed from new to accepted
Note: See TracTickets for help on using tickets.