Skip to:
Content

BuddyPress.org

Changeset 10101


Ignore:
Timestamp:
09/12/2015 06:05:41 AM (9 years ago)
Author:
mercime
Message:

Add 'for' attributes to labels in Forums index page.

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

See #6618.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/forums/index.php

    r9896 r10101  
    157157                    do_action( 'template_notices' ); ?>
    158158
    159                     <label><?php _e( 'Title:', 'buddypress' ); ?></label>
     159                    <label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label>
    160160                    <input type="text" name="topic_title" id="topic_title" value="" maxlength="100" />
    161161
    162                     <label><?php _e( 'Content:', 'buddypress' ); ?></label>
     162                    <label for="topic_text"><?php _e( 'Content:', 'buddypress' ); ?></label>
    163163                    <textarea name="topic_text" id="topic_text"></textarea>
    164164
    165                     <label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
     165                    <label for="topic_tags"><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
    166166                    <input type="text" name="topic_tags" id="topic_tags" value="" />
    167167
    168                     <label><?php _e( 'Post In Group Forum:', 'buddypress' ); ?></label>
     168                    <label for="topic_group_id"><?php _e( 'Post In Group Forum:', 'buddypress' ); ?></label>
    169169                    <select id="topic_group_id" name="topic_group_id">
    170170
Note: See TracChangeset for help on using the changeset viewer.