mirror of
https://github.com/discourse/discourse.git
synced 2025-04-29 05:34:32 +08:00
A11Y: Add aria-label
to topic post badges (#18657)
This commit is contained in:
parent
a8af510636
commit
dcbfbbf19d
@ -1,11 +1,26 @@
|
|||||||
<span class='topic-post-badges'>
|
<span class="topic-post-badges">
|
||||||
{{~#if newPosts~}}
|
{{~#if newPosts~}}
|
||||||
<a href='{{url}}' class='badge badge-notification unread-posts' title='{{i18n "topic.unread_posts" count=newPosts}}'>{{newPosts}}</a>
|
<a
|
||||||
|
href="{{url}}"
|
||||||
|
class="badge badge-notification unread-posts"
|
||||||
|
title="{{i18n 'topic.unread_posts' count=newPosts}}"
|
||||||
|
aria-label="{{i18n 'topic.unread_posts' count=newPosts}}"
|
||||||
|
>{{newPosts}}</a>
|
||||||
{{~/if}}
|
{{~/if}}
|
||||||
{{~#if unreadPosts~}}
|
{{~#if unreadPosts~}}
|
||||||
<a href='{{url}}' class='badge badge-notification unread-posts' title='{{i18n "topic.unread_posts" count=unreadPosts}}'>{{unreadPosts}}</a>
|
<a
|
||||||
|
href="{{url}}"
|
||||||
|
class="badge badge-notification unread-posts"
|
||||||
|
title="{{i18n 'topic.unread_posts' count=unreadPosts}}"
|
||||||
|
aria-label="{{i18n 'topic.unread_posts' count=unreadPosts}}"
|
||||||
|
>{{unreadPosts}}</a>
|
||||||
{{~/if}}
|
{{~/if}}
|
||||||
{{~#if unseen~}}
|
{{~#if unseen~}}
|
||||||
<a href='{{url}}' class='badge badge-notification new-topic' title='{{i18n "topic.new"}}'>{{newDotText}}</a>
|
<a
|
||||||
|
href="{{url}}"
|
||||||
|
class="badge badge-notification new-topic"
|
||||||
|
title="{{i18n 'topic.new'}}"
|
||||||
|
aria-label="{{i18n 'topic.new'}}"
|
||||||
|
>{{newDotText}}</a>
|
||||||
{{~/if}}
|
{{~/if}}
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user