[wp-trac] [WordPress Trac] #38932: Add unit (px) to suggested image size in customizer

WordPress Trac noreply at wordpress.org
Fri Nov 25 08:28:13 UTC 2016


#38932: Add unit (px) to suggested image size in customizer
--------------------------+------------------------------
 Reporter:  Presskopp     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  accessibility
--------------------------+------------------------------

Comment (by afercia):

 @dd32 the `title` attribute works like a description and gets announced
 ''in addition'' to the visible text. So:
 {{{
 <abbr title="pixels">px</abbr> = pee ex (short pause here) pixels
 }}}

 Also, there's no guarantee the title attribute will be announced, it
 depends on the verbosity settings user can tweak in their screen readers.

 The `aria-label` attribute ''replaces'' the content instead:

 {{{
 <span aria-label="pixels">px</span> = pixels
 }}}
 By the way, it tends to work best on interactive elements. Thinking also
 at the resulting translatable string, it would be simpler to use just
 plain text.

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


More information about the wp-trac mailing list