A11Y: add aria-label to avatar link on categories page (#28304)

This commit is contained in:
Kris 2024-08-09 14:13:45 -04:00 committed by GitHub
parent b59b24884f
commit 9d5eb6fed6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -4,7 +4,13 @@
@outletArgs={{hash topic=this.topic}}
/>
<div class="topic-poster">
<UserLink @user={{this.topic.lastPosterUser}}>
<UserLink
@user={{this.topic.lastPosterUser}}
aria-label={{if
this.topic.lastPosterUser.username
(i18n "latest_poster_link" username=this.topic.lastPosterUser.username)
}}
>
{{avatar this.topic.lastPosterUser imageSize="large"}}
</UserLink>
<UserAvatarFlair @user={{this.topic.lastPosterUser}} />