Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/24/2017 02:09:40 AM (7 years ago)
Author:
mercime
Message:

xProfile: Update markup and styles for User > Extended Profiles.

After accessibility upgrades for the Profile > Edit screen in #7348, we need to
update the wp-admin Extended Profiles screen as well.

Fixes #7439.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-user-admin.php

    r11447 r11620  
    358358
    359359                <div<?php bp_field_css_class( 'bp-profile-field' ); ?>>
     360                    <fieldset>
    360361
    361362                    <?php
     
    363364                    $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
    364365                    $field_type->edit_field_html( array( 'user_id' => $r['user_id'] ) );
    365 
    366                     if ( bp_get_the_profile_field_description() ) : ?>
    367 
    368                         <p class="description"><?php bp_the_profile_field_description(); ?></p>
    369 
    370                     <?php endif;
    371366
    372367                    /**
     
    379374                    $can_change_visibility = bp_current_user_can( 'bp_xprofile_change_field_visibility' ); ?>
    380375
    381                     <p class="field-visibility-settings-<?php echo $can_change_visibility ? 'toggle' : 'notoggle'; ?>" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id(); ?>">
     376                    <p class="field-visibility-settings-<?php echo $can_change_visibility ? 'toggle' : 'notoggle'; ?>" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id(); ?>"><span id="<?php bp_the_profile_field_input_name(); ?>-2">
    382377
    383378                        <?php
     
    387382                        );
    388383                        ?>
     384                        </span>
    389385
    390386                        <?php if ( $can_change_visibility ) : ?>
    391387
    392                             <button type="button" class="button visibility-toggle-link"><?php esc_html_e( 'Change', 'buddypress' ); ?></button>
     388                            <button type="button" class="button visibility-toggle-link" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-2" aria-expanded="false"><?php esc_html_e( 'Change', 'buddypress' ); ?></button>
    393389
    394390                        <?php endif; ?>
     
    418414                    do_action( 'bp_custom_profile_edit_fields' ); ?>
    419415
     416                    </fieldset>
    420417                </div>
    421418
Note: See TracChangeset for help on using the changeset viewer.