Skip to:
Content

BuddyPress.org

Changeset 11894


Ignore:
Timestamp:
03/07/2018 12:17:11 PM (17 months ago)
Author:
djpaul
Message:

Templates, Nouveau: set alt property on "Messages" participants.

Improves accessibility as there's no text label in the UI (only a on-hover option).

Fixes #7713

Props mercime

File:
1 edited

Legend:

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

    r11856 r11894  
    152152                            <ul class="participants-list">
    153153                                <# for ( i in data.recipients ) { #>
    154                                     <li><a href="{{data.recipients[i].user_link}}" class="bp-tooltip" data-bp-tooltip="{{data.recipients[i].user_name}}"><img class="avatar mini" src="{{data.recipients[i].avatar}}" alt="" /></a></li>
     154                                    <li><a href="{{data.recipients[i].user_link}}" class="bp-tooltip" data-bp-tooltip="{{data.recipients[i].user_name}}"><img class="avatar mini" src="{{data.recipients[i].avatar}}" alt="{{data.recipients[i].user_name}}" /></a></li>
    155155                                <# } #>
    156156                            </ul>
     
    201201                    <ul class="participants-list">
    202202                        <# for ( i in data.recipients ) { #>
    203                             <li><a href="{{data.recipients[i].user_link}}" class="bp-tooltip" data-bp-tooltip="{{data.recipients[i].user_name}}"><img class="avatar mini" src="{{data.recipients[i].avatar}}" alt="" /></a></li>
     203                            <li><a href="{{data.recipients[i].user_link}}" class="bp-tooltip" data-bp-tooltip="{{data.recipients[i].user_name}}"><img class="avatar mini" src="{{data.recipients[i].avatar}}" alt="{{data.recipients[i].user_name}}" /></a></li>
    204204                        <# } #>
    205205                    </ul>
Note: See TracChangeset for help on using the changeset viewer.