From d5f459db1496e058ccba7bb1bbdf5483dba616f8 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Fri, 24 Nov 2023 16:42:24 +0200 Subject: [PATCH] FIX: Use same names for category CSS variables (#24527) --category-bg-color and --category-badge-color were both used to represent category.color. --category-badge-color is now used instead for all of them. --- .../discourse/app/components/bread-crumbs.hbs | 14 +---------- .../app/helpers/category-color-variable.js | 2 +- .../app/helpers/category-variables.js | 23 +++++++++++++++++++ .../common/base/category-list.scss | 2 +- .../stylesheets/desktop/category-list.scss | 2 +- 5 files changed, 27 insertions(+), 16 deletions(-) create mode 100644 app/assets/javascripts/discourse/app/helpers/category-variables.js diff --git a/app/assets/javascripts/discourse/app/components/bread-crumbs.hbs b/app/assets/javascripts/discourse/app/components/bread-crumbs.hbs index 28cb478ea6f..0562ed9eb97 100644 --- a/app/assets/javascripts/discourse/app/components/bread-crumbs.hbs +++ b/app/assets/javascripts/discourse/app/components/bread-crumbs.hbs @@ -16,19 +16,7 @@ {{#each this.categoryBreadcrumbs as |breadcrumb|}} {{#if breadcrumb.hasOptions}}