From c7c1ff6bea9583b6b1b7751ddd26f23744ecfcf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 9 Jan 2023 14:12:15 -0500 Subject: [PATCH] add classname support to buildCategoryLabel set border-color to backgroundcolor --- public/src/modules/helpers.common.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js index 93c7961dbc..bd17abef87 100644 --- a/public/src/modules/helpers.common.js +++ b/public/src/modules/helpers.common.js @@ -89,12 +89,12 @@ module.exports = function (utils, Benchpress, relative_path) { return `${category.icon ? `` : ''}`; } - function buildCategoryLabel(category) { + function buildCategoryLabel(category, className = '') { if (!category) { return ''; } - return ` + return ` ${category.icon ? `` : ''} ${category.name} `; @@ -108,6 +108,7 @@ module.exports = function (utils, Benchpress, relative_path) { if (category.bgColor) { style.push('background-color: ' + category.bgColor); + style.push(`border-color: ${category.bgColor}!important`); } if (category.color) {