[wp-trac] [WordPress Trac] #32969: the Add Media button should be a button

WordPress Trac noreply at wordpress.org
Sun Jul 12 17:00:02 UTC 2015


#32969: the Add Media button should be a button
---------------------------------------+-----------------------------
 Reporter:  afercia                    |      Owner:
     Type:  defect (bug)               |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  Editor                     |    Version:  4.2
 Severity:  normal                     |   Keywords:
  Focuses:  accessibility, javascript  |
---------------------------------------+-----------------------------
 Currently, the Add Media button is a non-link link (with a `href="#"`
 attribute) and has a title attribute that repeats the link text:

 [[Image(https://cldup.com/8edC4_CNIR.png)]]

 For accessibility and semantics should be a button element. The current
 title attribute is redundant and doesn't add any useful information,
 should be removed. Worth noting when using ChromeVox it's impossible to
 open the media modal using the keyboard, whatever you try: pressing Enter
 or pressing Spacebar does nothing. While this has to do with some specific
 ChromeVox quirks with URL fragment links, events and preventing the
 default action, using a button instead of a link would fix it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32969>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list