Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/20/2016 03:10:50 PM (9 years ago)
Author:
hnla
Message:

BP XProfile user edit screens
Commit updates radio, checkbox, datebox form controls to improve markup Standards & accessibility.

  • Adds new classes to simplify targeting labels/inputs.
  • Updates main css styles for labels to include fieldsets/legends.
  • Updates wrapping 'divs' to fieldsets for better Standards & changes labels used for headings to 'legend' elements.
  • Add new ruleset to buddypress.css to remove fieldset border & padding to ensure new elements do not disrupt existing site layouts.

Fixes #6678 Props dcavins, hnla, mercime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php

    r10656 r10713  
    155155            }
    156156
    157             $new_html = sprintf( '<label for="%3$s"><input %1$s type="checkbox" name="%2$s" id="%3$s" value="%4$s">%5$s</label>',
     157            $new_html = sprintf( '<label for="%3$s" class="option-label"><input %1$s type="checkbox" name="%2$s" id="%3$s" value="%4$s">%5$s</label>',
    158158                $selected,
    159159                esc_attr( "field_{$this->field_obj->id}[]" ),
Note: See TracChangeset for help on using the changeset viewer.