_s: Use .screen-reader-text rather than .assistive-text.
With 3.6 introducing many HTML5 improvements the need for custom searchform and comment templates will vanish. To cope with core's .screen-reader-text class, let's make the switch early. Commit also adds core's focus styles for screen reader texts, so they can actually be used.
This commit is contained in:
parent
bdecbd3734
commit
1ba2f62752
5 changed files with 27 additions and 7 deletions
|
@ -34,7 +34,7 @@ function _s_content_nav( $nav_id ) {
|
|||
|
||||
?>
|
||||
<nav role="navigation" id="<?php echo esc_attr( $nav_id ); ?>" class="<?php echo $nav_class; ?>">
|
||||
<h1 class="assistive-text"><?php _e( 'Post navigation', '_s' ); ?></h1>
|
||||
<h1 class="screen-reader-text"><?php _e( 'Post navigation', '_s' ); ?></h1>
|
||||
|
||||
<?php if ( is_single() ) : // navigation links for single posts ?>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue