* FIX: Add aria-labels to topic list items Before this fix you could navigate the topic list using a screen reader and a keyboard but some of the items were not as descriptive as they could be. The newly added labels make it easier to understand what you are tabbing over. context: https://meta.discourse.org/t/accessibility-aria-attributes-are-not-defined-for-links-under-replies-category/142539 * Update app/assets/javascripts/discourse/lib/utilities.js.es6 Co-Authored-By: Régis Hanol <regis@hanol.fr> * Multiline fix * Fix more tests Co-authored-by: Régis Hanol <regis@hanol.fr>
7 lines
307 B
Plaintext
7 lines
307 B
Plaintext
<{{view.tagName}} class='num posts-map posts {{view.likesHeat}}' title='{{view.title}}'>
|
|
<a href class='posts-map badge-posts {{view.likesHeat}}'>
|
|
{{raw-plugin-outlet name="topic-list-before-reply-count"}}
|
|
{{number topic.replyCount noTitle="true" ariaLabel=view.title}}
|
|
</a>
|
|
</{{view.tagName}}>
|