From 0e371d4c6dbd0f3d30e6ac5c17de5ead726ffa5e Mon Sep 17 00:00:00 2001 From: Jordan Vidrine <30537603+jordanvidrine@users.noreply.github.com> Date: Mon, 15 Nov 2021 14:49:45 -0600 Subject: [PATCH] SYNTAX: Use classes instead of html element targeting (#14890) * SYNTAX: Use classes instead of html element targeting --- .../app/templates/components/topic-list.hbs | 4 ++-- .../app/templates/list/category-column.hbr | 2 +- .../app/templates/list/posters-column.hbr | 2 +- .../app/templates/list/posts-count-column.hbr | 2 +- .../app/templates/list/topic-list-item.hbr | 14 ++++++------- .../templates/topic-list-header-column.hbr | 2 +- .../app/templates/topic-list-header.hbr | 2 +- .../stylesheets/common/base/_topic-list.scss | 20 +++++++++---------- .../stylesheets/common/foundation/base.scss | 1 + .../stylesheets/desktop/topic-list.scss | 19 +++++++----------- app/assets/stylesheets/mobile/topic-list.scss | 3 +-- 11 files changed, 33 insertions(+), 38 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/components/topic-list.hbs b/app/assets/javascripts/discourse/app/templates/components/topic-list.hbs index fd20bde47cc..91429abda78 100644 --- a/app/assets/javascripts/discourse/app/templates/components/topic-list.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/topic-list.hbs @@ -1,5 +1,5 @@ {{#unless skipHeader}} - + {{raw "topic-list-header" canBulkSelect=canBulkSelect toggleInTitle=toggleInTitle @@ -29,7 +29,7 @@ tagName="" connectorTagName=""}} - + {{#each filteredTopics as |topic|}} {{topic-list-item topic=topic bulkSelectEnabled=bulkSelectEnabled diff --git a/app/assets/javascripts/discourse/app/templates/list/category-column.hbr b/app/assets/javascripts/discourse/app/templates/list/category-column.hbr index 10c175aac67..32cc25b0c25 100644 --- a/app/assets/javascripts/discourse/app/templates/list/category-column.hbr +++ b/app/assets/javascripts/discourse/app/templates/list/category-column.hbr @@ -1 +1 @@ -{{category-link category}} +{{category-link category}} diff --git a/app/assets/javascripts/discourse/app/templates/list/posters-column.hbr b/app/assets/javascripts/discourse/app/templates/list/posters-column.hbr index 38d50d468b3..72aee8790d1 100644 --- a/app/assets/javascripts/discourse/app/templates/list/posters-column.hbr +++ b/app/assets/javascripts/discourse/app/templates/list/posters-column.hbr @@ -1,4 +1,4 @@ - + {{#each posters as |poster|}} {{#if poster.moreCount}} {{poster.moreCount}} diff --git a/app/assets/javascripts/discourse/app/templates/list/posts-count-column.hbr b/app/assets/javascripts/discourse/app/templates/list/posts-count-column.hbr index 4c847ddb117..a697ff9e017 100644 --- a/app/assets/javascripts/discourse/app/templates/list/posts-count-column.hbr +++ b/app/assets/javascripts/discourse/app/templates/list/posts-count-column.hbr @@ -1,4 +1,4 @@ -<{{view.tagName}} class='num posts-map posts {{view.likesHeat}}' title='{{view.title}}'> +<{{view.tagName}} class='num posts-map posts {{view.likesHeat}} topic-list-data' title='{{view.title}}'>