From dcbfbbf19d36defbfa094881b23805ee55c7cdf4 Mon Sep 17 00:00:00 2001 From: Keegan George Date: Tue, 18 Oct 2022 15:14:27 -0700 Subject: [PATCH] A11Y: Add `aria-label` to topic post badges (#18657) --- .../app/templates/topic-post-badges.hbr | 29 ++++++++++++++----- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/topic-post-badges.hbr b/app/assets/javascripts/discourse/app/templates/topic-post-badges.hbr index 5c1ec0cd2bf..81017949a6c 100644 --- a/app/assets/javascripts/discourse/app/templates/topic-post-badges.hbr +++ b/app/assets/javascripts/discourse/app/templates/topic-post-badges.hbr @@ -1,11 +1,26 @@ - - {{~#if newPosts ~}} -  {{newPosts}} + + {{~#if newPosts~}} +  {{newPosts}} {{~/if}} - {{~#if unreadPosts ~}} -  {{unreadPosts}} + {{~#if unreadPosts~}} +  {{unreadPosts}} {{~/if}} - {{~#if unseen ~}} -  {{newDotText}} + {{~#if unseen~}} +  {{newDotText}} {{~/if}}