Make WordPress Core

Changeset 25613


Ignore:
Timestamp:
09/24/2013 11:03:14 PM (10 years ago)
Author:
lancewillett
Message:

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

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/header.php

    r25604 r25613  
    4040
    4141            <div class="header-extra">
    42                 <div class="search-toggle"><?php _e( 'Search', 'twentyfourteen' ); ?></div>
     42                <div class="search-toggle">
     43                    <a href="#search-container"><?php _e( 'Search', 'twentyfourteen' ); ?></a>
     44                </div>
    4345            </div>
    4446
     
    5254        <div id="mobile-navigations" class="hide"></div>
    5355
    54         <div class="search-box-wrapper hide">
     56        <div id="search-container" class="search-box-wrapper hide">
    5557            <div class="search-box clear">
    5658                <?php get_search_form(); ?>
  • trunk/src/wp-content/themes/twentyfourteen/style.css

    r25612 r25613  
    610610    text-transform: uppercase;
    611611}
     612.search-toggle a {
     613    color: #fff;
     614}
    612615.search-toggle:hover,
    613616.search-toggle.active {
Note: See TracChangeset for help on using the changeset viewer.