Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/16/2016 08:19:02 PM (9 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-datebox.php

    r10573 r10656  
    7979        ) ); ?>
    8080
    81         <div class="datebox">
    82 
    83             <label for="<?php bp_the_profile_field_input_name(); ?>_day">
     81        <fieldset class="datebox">
     82
     83            <legend>
    8484                <?php bp_the_profile_field_name(); ?>
    8585                <?php bp_the_profile_field_required_label(); ?>
    86             </label>
     86            </legend>
    8787
    8888            <?php
     
    124124            </select>
    125125
    126         </div>
     126        </fieldset>
    127127    <?php
    128128    }
Note: See TracChangeset for help on using the changeset viewer.