Skip to:
Content

Changeset 4455


Ignore:
Timestamp:
06/04/2011 11:10:01 PM (7 years ago)
Author:
djpaul
Message:

Add label to header search form. Fixes #3264

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r4400 r4455  
    351351
    352352    // Eventually this won't be needed and a page will be built to integrate all search results.
    353     $selection_box = '<select name="search-which" id="search-which" style="width: auto">';
     353    $selection_box  = '<label for="search-which" class="accessibly-hidden">' . __( 'Search these:', 'buddypress' ) . '</label>';
     354    $selection_box .= '<select name="search-which" id="search-which" style="width: auto">';
    354355
    355356    $options = apply_filters( 'bp_search_form_type_select_options', $options );
  • trunk/bp-themes/bp-default/_inc/css/default.css

    r4447 r4455  
    14811481    clear: left;
    14821482}
     1483.accessibly-hidden {
     1484    left: -999em;
     1485    position: absolute;
     1486}
    14831487hr {
    14841488    background-color: #e7e7e7;
  • trunk/bp-themes/bp-default/header.php

    r4418 r4455  
    3131
    3232                        <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
     33                            <label for="search-terms" class="accessibly-hidden"><?php _e( 'Search for:', 'buddypress' ); ?></label>
    3334                            <input type="text" id="search-terms" name="search-terms" value="<?php echo isset( $_REQUEST['s'] ) ? esc_attr( $_REQUEST['s'] ) : ''; ?>" />
    3435
  • trunk/bp-themes/bp-default/rtl.css

    r4445 r4455  
    2626    float: right;
    2727}
    28 
     28.accessibly-hidden {
     29    left: auto;
     30    right: -999em;
     31}
    2932
    3033/* > Header
Note: See TracChangeset for help on using the changeset viewer.