Skip to:
Content

BuddyPress.org

Changeset 12054


Ignore:
Timestamp:
05/03/2018 08:41:41 PM (6 years ago)
Author:
mercime
Message:

BP Nouveau: Add aria-hidden attribute to hide icons from assistive technologies.

Fixes #7808.

Location:
trunk/src/bp-templates/bp-nouveau
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/common/js-templates/invites/index.php

    r12040 r12054  
    6767        <# if ( undefined === data.is_sent || ( false === data.is_sent && true === data.can_edit ) ) { #>
    6868            <button type="button" class="button invite-button group-add-remove-invite-button bp-tooltip bp-icons" data-bp-tooltip="<?php esc_attr_e( 'Invite / Uninvite', 'buddypress' ); ?>">
    69                 <span class="icons"></span>
     69                <span class="icons" aria-hidden="true"></span>
    7070                <span class="bp-screen-reader-text"><?php esc_html_e( 'Invite/Uninvite', 'buddypress' ); ?></span>
    7171            </button>
     
    7474        <# if ( undefined !== data.can_edit && true === data.can_edit ) { #>
    7575            <button type="button" class="button invite-button group-remove-invite-button bp-tooltip bp-icons" data-bp-tooltip="<?php esc_attr_e( 'Remove', 'buddypress' ); ?>">
    76                 <span class=" icons"></span>
     76                <span class=" icons" aria-hidden="true"></span>
    7777                <span class="bp-screen-reader-text"><?php esc_html_e( 'Remove', 'buddypress' ); ?></span>
    7878            </button>
  • trunk/src/bp-templates/bp-nouveau/includes/messages/functions.php

    r12021 r12054  
    9999            'send' => wp_create_nonce( 'messages_send_message' ),
    100100        ),
    101         'loading' => '<div class="bp-feedback info"><span class="bp-icon"></span><p>' . __( 'Loading messages. Please wait.', 'buddypress' ) . '</p></div>',
     101        'loading' => '<div class="bp-feedback info"><span class="bp-icon" aria-hidden="true"></span><p>' . __( 'Loading messages. Please wait.', 'buddypress' ) . '</p></div>',
    102102        'bulk_actions' => bp_nouveau_messages_get_bulk_actions(),
    103103    );
  • trunk/src/bp-templates/bp-nouveau/includes/notifications/template-tags.php

    r11899 r12054  
    8282
    8383    <span class="notifications-order-actions">
    84         <a href="<?php echo esc_url( $desc ); ?>" class="bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'Newest First', 'buddypress' ); ?>" aria-label="<?php esc_attr_e( 'Newest First', 'buddypress' ); ?>" data-bp-notifications-order="DESC"><span class="dashicons dashicons-arrow-down"></span></a>
     84        <a href="<?php echo esc_url( $desc ); ?>" class="bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'Newest First', 'buddypress' ); ?>" aria-label="<?php esc_attr_e( 'Newest First', 'buddypress' ); ?>" data-bp-notifications-order="DESC"><span class="dashicons dashicons-arrow-down" aria-hidden="true"></span></a>
    8585        <a href="<?php echo esc_url( $asc ); ?>" class="bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'Older First', 'buddypress' ); ?>" aria-label="<?php esc_attr_e( 'Older First', 'buddypress' ); ?>" data-bp-notifications-order="ASC"><span class="dashicons dashicons-arrow-up" aria-hidden="true"></span></a>
    8686    </span>
Note: See TracChangeset for help on using the changeset viewer.