UX: gives aria-label to topics count in category-row (#7307)

UX: gives aria-label to topics count in category-row (#7307)

diff --git a/app/assets/javascripts/select-kit/components/category-row.js.es6 b/app/assets/javascripts/select-kit/components/category-row.js.es6
index b67b0f9..6b7a5ba 100644
--- a/app/assets/javascripts/select-kit/components/category-row.js.es6
+++ b/app/assets/javascripts/select-kit/components/category-row.js.es6
@@ -75,7 +75,7 @@ export default SelectKitRowComponent.extend({
     "options.countSubcategories"
   )
   topicCount(totalCount, topicCount, countSubcats) {
-    return `× ${countSubcats ? totalCount : topicCount}`.htmlSafe();
+    return countSubcats ? totalCount : topicCount;
   },
 
   @computed("displayCategoryDescription", "category.description")
diff --git a/app/assets/javascripts/select-kit/templates/components/category-row.hbs b/app/assets/javascripts/select-kit/templates/components/category-row.hbs
index 85cdfd8..94948bc 100644
--- a/app/assets/javascripts/select-kit/templates/components/category-row.hbs
+++ b/app/assets/javascripts/select-kit/templates/components/category-row.hbs
@@ -5,12 +5,16 @@
           {{badgeForParentCategory}}
         {{/unless}}
         {{badgeForCategory}}
-        <span class="topic-count">{{topicCount}}</span>
+        <span class="topic-count" aria-label={{i18n "category_row.topic_count" count=topicCount}}>
+          &times; {{topicCount}}
+        </span>
       </div>
     {{else}}
       <div class="category-status">
         {{badgeForCategory}}
-        <span class="topic-count">{{topicCount}}</span>
+        <span class="topic-count" aria-label={{i18n "category_row.topic_count" count=topicCount}}>
+          &times; {{topicCount}}
+        </span>
       </div>
     {{/if}}
 
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 22e66bf..63ed644 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -1429,6 +1429,9 @@ en:
     conditional_loading_section:
       loading: Loading...
 
+    category_row:
+      topic_count: "{{count}} topics in this category"
+
     select_kit:
       default_header_text: Select...
       no_content: No matches found

GitHub sha: d8dd1304