Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/23/2017 09:37:14 PM (8 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/register.php

    r11618 r11619  
    184184
    185185                            if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    186                                 <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
     186                                <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">
    187187                                    <?php
    188188                                    printf(
     
    191191                                    );
    192192                                    ?>
    193                                     <button type="button" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></button>
     193                                    </span>
     194                                    <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>
    194195                                </p>
    195196
Note: See TracChangeset for help on using the changeset viewer.