Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/16/2016 08:19:02 PM (10 years ago)
Author:
dcavins
Message:

Profile: Use fieldsets/legends for some fields.

Use a fieldset with a legend for radio, checkbox and datebox field
types. This improves the semantics of the markup by using legends to
describe a group of form fields and labels to describe the options in
that group.

File:
1 edited

Legend:

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

    r10561 r10656  
    6868        } ?>
    6969
    70         <div class="checkbox">
    71             <label for="<?php bp_the_profile_field_input_name(); ?>">
     70        <fieldset class="checkbox">
     71            <legend>
    7272                <?php bp_the_profile_field_name(); ?>
    7373                <?php bp_the_profile_field_required_label(); ?>
    74             </label>
     74            </legend>
    7575
    7676            <?php
     
    8383            ) ); ?>
    8484
    85         </div>
     85        </fieldset>
    8686
    8787        <?php
Note: See TracChangeset for help on using the changeset viewer.