Skip to content

Commit 48d3684

Browse files
committed
Improve a11y of the top reactions
1 parent 83324b4 commit 48d3684

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

com.woltlab.wcf/templates/shared_topReaction.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{assign var='topReaction' value=$__wcf->getReactionHandler()->getTopReaction($cachedReactions)}
22
{if $topReaction}
33
{if $render === 'tiny'}
4-
<span class="topReactionTiny jsTooltip" title="{lang reaction=$topReaction[reaction] count=$topReaction[count] other=$topReaction[other]}wcf.like.reaction.topReaction{/lang}">
4+
<span class="topReactionTiny jsTooltip" role="img" title="{lang reaction=$topReaction[reaction] count=$topReaction[count] other=$topReaction[other]}wcf.like.reaction.topReaction{/lang}">
55
{unsafe:$topReaction[reaction]->renderIcon()}
6-
<span class="reactionCount">{$topReaction[count]|shortUnit}</span>
6+
<span class="reactionCount" aria-hidden="true">{$topReaction[count]|shortUnit}</span>
77
</span>
88
{elseif $render === 'short'}
9-
<span class="topReactionShort jsTooltip" title="{lang reaction=$topReaction[reaction] count=$topReaction[count] other=$topReaction[other]}wcf.like.reaction.topReaction{/lang}">
9+
<span class="topReactionShort jsTooltip" role="img" title="{lang reaction=$topReaction[reaction] count=$topReaction[count] other=$topReaction[other]}wcf.like.reaction.topReaction{/lang}">
1010
{unsafe:$topReaction[reaction]->renderIcon()}
11-
<span class="reactionCount">{$topReaction[count]|shortUnit}</span>
11+
<span class="reactionCount" aria-hidden="true">{$topReaction[count]|shortUnit}</span>
1212
</span>
1313
{elseif $render === 'full'}
1414
<span class="topReactionFull">

0 commit comments

Comments
 (0)