_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
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
?>
|
||||
<form method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
|
||||
<label for="s" class="assistive-text"><?php _ex( 'Search', 'assistive text', '_s' ); ?></label>
|
||||
<label for="s" class="screen-reader-text"><?php _ex( 'Search', 'assistive text', '_s' ); ?></label>
|
||||
<input type="search" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" id="s" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', '_s' ); ?>" />
|
||||
<input type="submit" class="submit" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button', '_s' ); ?>" />
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue