Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/18/2015 06:59:21 PM (5 years ago)
Author:
mercime
Message:

Search Forms: Bind labels to text input fields.

Accessibility fixes adds 'for' attributes to the input fields of
the search forms for: Blogs, Forums, Groups, and Members.

Fixes #6627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-forums/bp-forums-template.php

    r10096 r10126  
    26812681
    26822682    $search_form_html = '<form action="" method="get" id="search-forums-form">
    2683         <label><input type="text" name="s" id="forums_search" placeholder="'. esc_attr( $search_value ) .'" /></label>
     2683        <label for="forums_search"><input type="text" name="s" id="forums_search" placeholder="'. esc_attr( $search_value ) .'" /></label>
    26842684        <input type="submit" id="forums_search_submit" name="forums_search_submit" value="' . __( 'Search', 'buddypress' ) . '" />
    26852685    </form>';
Note: See TracChangeset for help on using the changeset viewer.