Skip to:
Content

BuddyPress.org

Changeset 13199


Ignore:
Timestamp:
12/26/2021 12:27:56 PM (5 years ago)
Author:
imath
Message:

BP Avatars UI: improve the Recycle view for the Admin/Extended context

For this context, instead of using the .bp-screen-reader-text class we need to use .screen-reader-text one.

Fixes #8607

Location:
trunk/src/bp-templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/recycle.php

    r13179 r13199  
    3737        <td>
    3838                <label for="avatar_{{data.id}}">
    39                         <input type="radio" name="avatar_id" value="{{data.id}}" id="avatar_{{data.id}}" class="bp-screen-reader-text"/>
     39                        <input type="radio" name="avatar_id" value="{{data.id}}" id="avatar_{{data.id}}" class="<?php echo esc_attr( is_admin() && ! wp_doing_ajax() ? 'screen-reader-text' : 'bp-screen-reader-text' ); ?>"/>
    4040                        <img src="{{{data.url}}}" id="{{data.id}}" class="avatar" width="<?php echo esc_attr( bp_core_avatar_thumb_width() ); ?>" height="<?php echo esc_attr( bp_core_avatar_thumb_height() ); ?>"/>
    4141                </label>
  • trunk/src/bp-templates/bp-nouveau/buddypress/assets/_attachments/avatars/recycle.php

    r13179 r13199  
    3737        <td>
    3838                <label for="avatar_{{data.id}}">
    39                         <input type="radio" name="avatar_id" value="{{data.id}}" id="avatar_{{data.id}}" class="bp-screen-reader-text"/>
     39                        <input type="radio" name="avatar_id" value="{{data.id}}" id="avatar_{{data.id}}" class="<?php echo esc_attr( is_admin() && ! wp_doing_ajax() ? 'screen-reader-text' : 'bp-screen-reader-text' ); ?>"/>
    4040                        <img src="{{{data.url}}}" id="{{data.id}}" class="avatar" width="<?php echo esc_attr( bp_core_avatar_thumb_width() ); ?>" height="<?php echo esc_attr( bp_core_avatar_thumb_height() ); ?>"/>
    4141                </label>
Note: See TracChangeset for help on using the changeset viewer.