UX: add tag classes to topics in topics list view (#7198)

UX: add tag classes to topics in topics list view (#7198)

diff --git a/app/assets/javascripts/discourse/components/topic-list-item.js.es6 b/app/assets/javascripts/discourse/components/topic-list-item.js.es6
index b2cc394..19065d4 100644
--- a/app/assets/javascripts/discourse/components/topic-list-item.js.es6
+++ b/app/assets/javascripts/discourse/components/topic-list-item.js.es6
@@ -71,6 +71,10 @@ export default Ember.Component.extend(
         classes.push("category-" + topic.get("category.fullSlug"));
       }
 
+      if (topic.get("tags")) {
+        topic.get("tags").forEach(tagName => classes.push("tag-" + tagName));
+      }
+
       if (topic.get("hasExcerpt")) {
         classes.push("has-excerpt");
       }

GitHub sha: 5d20d02f

2 Likes

This commit has been mentioned on Discourse Meta. There might be relevant details there:

2 Likes