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-radiobutton.php

    r10417 r10656  
    6666        } ?>
    6767
    68         <div class="radio">
     68        <fieldset class="radio">
    6969
    70             <label for="<?php bp_the_profile_field_input_name(); ?>">
     70            <legend>
    7171                <?php bp_the_profile_field_name(); ?>
    7272                <?php bp_the_profile_field_required_label(); ?>
    73             </label>
     73            </legend>
    7474
    7575            <?php
     
    8888            <?php endif; ?>
    8989
    90         </div>
     90        </fieldset>
    9191
    9292        <?php
Note: See TracChangeset for help on using the changeset viewer.