Twenty Fourteen: accessibility fix for allowing the search button in the toolbar to be focused with the keyboard. Props joedolson and sabreuse, see #25054.
git-svn-id: https://develop.svn.wordpress.org/trunk@25613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2e21ea25f5
commit
9d5cab1940
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user