Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/23/2017 09:37:14 PM (9 years ago)
Author:
mercime
Message:

xProfile: Add and toggle aria-expanded attr for change-profile-visibility button.

Fixes #7348.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php

    r11618 r11619  
    5454
    5555                <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    56                     <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
     56                    <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"><span id="<?php bp_the_profile_field_input_name(); ?>-2">
    5757                        <?php
    5858                        printf(
     
    6161                        );
    6262                        ?>
    63                         <button type="button" class="visibility-toggle-link"><?php _e( 'Change', 'buddypress' ); ?></button>
     63                        </span>
     64                        <button type="button" class="visibility-toggle-link" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-2" aria-expanded="false"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></button>
    6465                    </p>
    6566
Note: See TracChangeset for help on using the changeset viewer.