[wp-trac] [WordPress Trac] #43151: Media widgets shouldn't use a clickable div as an UI control

WordPress Trac noreply at wordpress.org
Sat Sep 22 17:20:04 UTC 2018


#43151: Media widgets shouldn't use a clickable div as an UI control
-----------------------------+--------------------------------------------
 Reporter:  afercia          |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  Widgets          |     Version:  4.8
 Severity:  normal           |  Resolution:
 Keywords:  has-screenshots  |     Focuses:  ui, accessibility, javascript
-----------------------------+--------------------------------------------

Comment (by afercia):

 Worth noting a similar case in Gutenberg was solved simply removing the
 second button and making the "visual placeholder" a button:

 [[Image(http://cldup.com/qkWlzb9k9g.png)]]

 Special care should be taken when crafting the button text: it should not
 indicate the state (No image selected). Instead, it should indicate the
 available action: "Select image". The only presence of the button implies
 the state (no image selected).

 It would be nice to align with the Gutenberg implementation.

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


More information about the wp-trac mailing list