Twenty Fourteen: accessibility fix for allowing the search button in the toolbar to be focused with the keyboard. Props joedolson and sabreuse, see #25054.

Built from https://develop.svn.wordpress.org/trunk@25613


git-svn-id: http://core.svn.wordpress.org/trunk@25530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-09-24 23:04:10 +00:00
parent 9891ee705d
commit 13c80a9951
2 changed files with 7 additions and 2 deletions

View File

@ -39,7 +39,9 @@
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<div class="header-extra">
<div class="search-toggle"><?php _e( 'Search', 'twentyfourteen' ); ?></div>
<div class="search-toggle">
<a href="#search-container"><?php _e( 'Search', 'twentyfourteen' ); ?></a>
</div>
</div>
<nav role="navigation" class="site-navigation primary-navigation">
@ -51,7 +53,7 @@
<div id="mobile-navigations" class="hide"></div>
<div class="search-box-wrapper hide">
<div id="search-container" class="search-box-wrapper hide">
<div class="search-box clear">
<?php get_search_form(); ?>
</div>

View File

@ -609,6 +609,9 @@ body {
text-align: center;
text-transform: uppercase;
}
.search-toggle a {
color: #fff;
}
.search-toggle:hover,
.search-toggle.active {
background-color: #35921f;