Skip to:
Content

BuddyPress.org

Changeset 10811


Ignore:
Timestamp:
05/25/2016 06:35:21 PM (8 years ago)
Author:
mercime
Message:

Accessibility: Bind labels explicitly in Email - Situations metabox.

This fix includes style tweaks to align label text.

Fixes #7082.

Location:
trunk/src/bp-core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/css/common-rtl.css

    r10724 r10811  
    376376    margin: 0;
    377377}
     378
     379body.post-type-bp-email .categorydiv label {
     380    display: block;
     381    float: right;
     382    padding-right: 25px;
     383    text-indent: -25px;
     384}
  • trunk/src/bp-core/admin/css/common.css

    r10724 r10811  
    376376    margin: 0;
    377377}
     378
     379body.post-type-bp-email .categorydiv label {
     380    display: block;
     381    float: left;
     382    padding-left: 25px;
     383    text-indent: -25px;
     384}
  • trunk/src/bp-core/classes/class-bp-walker-category-checklist.php

    r10530 r10811  
    8585            /** This filter is documented in wp-includes/category-template.php */
    8686            $output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" .
    87                 '<label class="selectit"><input value="' . $category->slug . '" type="checkbox" name="'.$name.'[]" id="in-'.$taxonomy.'-' . $category->term_id . '"' .
     87                '<label for="in-'.$taxonomy.'-' . $category->term_id . '" class="selectit"><input value="' . $category->slug . '" type="checkbox" name="'.$name.'[]" id="in-'.$taxonomy.'-' . $category->term_id . '"' .
    8888                checked( in_array( $category->term_id, $args['selected_cats'] ), true, false ) .
    8989                disabled( empty( $args['disabled'] ), false, false ) . ' /> ' .
Note: See TracChangeset for help on using the changeset viewer.