Css class additions (#10532)

Css class additions (#10532)

  • Category Page / Tag Class Additions

These additions add:

-the name of the tag as a css class to discourse tags. -‘pinned’ as a css class to pinned topics in the category view

diff --git a/app/assets/javascripts/discourse/app/components/latest-topic-list-item.js b/app/assets/javascripts/discourse/app/components/latest-topic-list-item.js
index f0e3ee8..c8f4c3b 100644
--- a/app/assets/javascripts/discourse/app/components/latest-topic-list-item.js
+++ b/app/assets/javascripts/discourse/app/components/latest-topic-list-item.js
@@ -9,7 +9,8 @@ export default Component.extend({
   classNameBindings: [
     ":latest-topic-list-item",
     "topic.archived",
-    "topic.visited"
+    "topic.visited",
+    "topic.pinned"
   ],
 
   showEntrance,
diff --git a/app/assets/javascripts/discourse/app/lib/render-tag.js b/app/assets/javascripts/discourse/app/lib/render-tag.js
index fbc7ab6..1fca82a 100644
--- a/app/assets/javascripts/discourse/app/lib/render-tag.js
+++ b/app/assets/javascripts/discourse/app/lib/render-tag.js
@@ -16,7 +16,7 @@ export function defaultRenderTag(tag, params) {
   params = params || {};
   const visibleName = escapeExpression(tag);
   tag = visibleName.toLowerCase();
-  const classes = ["discourse-tag"];
+  const classes = ["discourse-tag", tag];
   const tagName = params.tagName || "a";
   let path;
   if (tagName === "a" && !params.noHref) {

GitHub sha: ce2491dc

This commit appears in #10532 which was approved by eviltrout. It was merged by jordanvidrine.