[wp-trac] [WordPress Trac] #36572: Read more link more accessible

WordPress Trac noreply at wordpress.org
Mon Apr 18 14:00:51 UTC 2016


#36572: Read more link more accessible
-----------------------------------+------------------------------
 Reporter:  Travel_girl            |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Themes                 |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  accessibility
-----------------------------------+------------------------------
Changes (by Kau-Boy):

 * keywords:   => has-patch 2nd-opinion


Comment:

 I wrote two possible patches for this enhancement. The main problem is not
 to break current theme. As the core string is "(more...)", we can't just
 add a string before or after that, as it would not make sense for a screen
 reader.

 The Twentyfifteen theme uses "Continue reading [title of the post]", which
 makes perfectly sense. So I would suggest to keep the current string for
 themes without the `$more_link_text` defined. This default string is
 wrapped in a span using the `aria-hidden` attribute to prevent screen
 readers reading it.

 As new themes must have the CSS class `screen-reader-text` we should be
 able to use this class. If a wider backward compatibility is desired, the
 second patch could be used, which adds the CSS properties inline to the
 span.

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


More information about the wp-trac mailing list