Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/12/2015 06:06:49 AM (4 years ago)
Author:
mercime
Message:

Add 'for' attributes to labels in Forum new post form.

Accessibility fix binds labels to respective textarea and
text input fields.

See #6618.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/forum.php

    r9896 r10102  
    9898                <h4><?php _e( 'Post a New Topic:', 'buddypress' ); ?></h4>
    9999
    100                 <label><?php _e( 'Title:', 'buddypress' ); ?></label>
     100                <label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label>
    101101                <input type="text" name="topic_title" id="topic_title" value="" maxlength="100" />
    102102
    103                 <label><?php _e( 'Content:', 'buddypress' ); ?></label>
     103                <label for="topic_text"><?php _e( 'Content:', 'buddypress' ); ?></label>
    104104                <textarea name="topic_text" id="topic_text"></textarea>
    105105
    106                 <label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
     106                <label for="topic_tags"><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
    107107                <input type="text" name="topic_tags" id="topic_tags" value="" />
    108108
Note: See TracChangeset for help on using the changeset viewer.