[wp-trac] [WordPress Trac] #31522: Quicktags: use aria-label to improve accessibility

WordPress Trac noreply at wordpress.org
Wed Mar 25 15:25:38 UTC 2015


#31522: Quicktags: use aria-label to improve accessibility
-------------------------+----------------------------------------
 Reporter:  afercia      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:  4.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  accessibility, javascript
-------------------------+----------------------------------------

Comment (by afercia):

 Refreshed patch to have proper labels when buttons are in "close tag"
 status. Actually there's no need to output custom data attributes, just
 have the new strings in the button object.
 Tested in latest Firefox, latest Chrome and IE 8.

 For reference, here's the list of the new aria-label strings plus some
 strings I'd propose to change to better reflect what the related button
 does. Any thoughts and suggestions for better text more than welcome:
 {{{
 'strong'          => 'Bold'
 'strongClose'     => 'Close bold tag'
 'emphasized'      => 'Italic'
 'emphasizedClose' => 'Close italic tag'
 'link'            => 'Insert link'
 'blockquote'      => 'Blockquote'
 'blockquoteClose' => 'Close blockquote tag'
 'deletion'        => 'Deleted text (strikethrough)'
 'deletionClose'   => 'Close deleted text tag'
 'insertion'       => 'Added text'
 'insertionClose'  => 'Close added text tag'
 'image'           => 'Insert image'
 'bulllist'        => 'Bulleted list'
 'bulllistClose'   => 'Close bulleted list tag'
 'numlist'         => 'Numbered list'
 'numlistClose'    => 'Close numbered list tag'
 'listitem'        => 'List item'
 'listitemClose'   => 'Close list item tag'
 'code'            => 'Code'
 'codeClose'       => 'Close code tag'
 }}}

 Will create new tickets for the outstanding issues (`<del>`, `<ins>`,
 etc.).

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


More information about the wp-trac mailing list