WordPress.org

Making WordPress.org

Ticket #1473: 1473.patch

File 1473.patch, 2.2 KB (added by SergeyBiryukov, 5 years ago)
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/header.php

     
    3434                        <h1><a rel="home" href="<?php echo $wptv->home_url( '/' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/i/wptv-2x.png" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" height="40" width="210" /></a></h1>
    3535
    3636                        <form id="searchform" name="searchform" method="get" action="<?php echo $wptv->home_url( '/' ); ?>">
     37                                <label for="searchbox" class="screen-reader-text"><?php esc_attr_e( 'Search WordPress.tv', 'wptv' ); ?></label>
    3738                                <input type="search" placeholder="<?php esc_attr_e( 'Search WordPress.tv', 'wptv' ); ?>" id="searchbox" name="s" value="<?php the_search_query(); ?>"  />
     39                                <input type="submit" value="<?php esc_attr_e( 'Search', 'wptv' ); ?>" />
    3840                        </form>
    3941
    4042                        <div id="menu">
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/style.css

     
    123123        clear: both;
    124124}
    125125
     126.screen-reader-text {
     127        clip: rect(1px, 1px, 1px, 1px);
     128        height: 1px;
     129        overflow: hidden;
     130        position: absolute !important;
     131        width: 1px;
     132        /* many screen reader and browser combinations announce broken words as they would appear visually */
     133        word-wrap: normal !important;
     134}
     135
    126136a, a:link, a:visited {
    127137        color: #21759b;
    128138        text-decoration: none;
     
    301311        width: 130px;
    302312}
    303313
    304 #searchform #searchbox {
     314#searchform #searchbox,
     315#searchform input[type=submit] {
    305316        margin-top: 15px;
    306317}
    307318
     319#searchform #searchbox:focus {
     320        border-color: #5b9dd9;
     321        -webkit-box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 );
     322        box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 );
     323}
     324
    308325input[type=submit], button, .button {
    309326        text-decoration: none;
    310327        -moz-border-radius: 5px;