Skip to:
Content

BuddyPress.org

Changeset 7197


Ignore:
Timestamp:
06/10/2013 12:16:43 AM (11 years ago)
Author:
boonebgorges
Message:

Adds screen-reader-text labels to List_Table checkboxes

Fixes #4380

Props modemlooper for initial patch

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-admin.php

    r7175 r7197  
    12251225     */
    12261226    function column_cb( $item ) {
    1227         printf( '<input type="checkbox" name="aid[]" value="%d" />', (int) $item['id'] );
     1227        printf( '<label class="screen-reader-text" for="aid-%1$d">' . __( 'Select activity item %1$d', 'buddypress' ) . '</label><input type="checkbox" name="aid[]" value="%1$d" id="aid-%1$d" />', $item['id'] );
    12281228    }
    12291229
  • trunk/bp-groups/bp-groups-admin.php

    r7175 r7197  
    12891289     */
    12901290    function column_cb( $item = array() ) {
    1291         printf( '<input type="checkbox" name="gid[]" value="%d" />', (int) $item['id'] );
     1291        printf( '<label class="screen-reader-text" for="aid-%1$d">' . __( 'Select group %1$d', 'buddypress' ) . '</label><input type="checkbox" name="aid[]" value="%1$d" id="aid-%1$d" />', $item['id'] );
    12921292    }
    12931293
Note: See TracChangeset for help on using the changeset viewer.