From 026bc664e827781aeaf4e326097b074f4e4ba3c5 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Tue, 7 Oct 2025 15:06:13 -0300 Subject: [PATCH] feat(lored,labels): pass label colors via css variable --- modules/templates/util_render.go | 10 +++++----- web_src/css/modules/label.css | 23 ++++++++++++++++++----- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/modules/templates/util_render.go b/modules/templates/util_render.go index 1056c42643..2e957e6375 100644 --- a/modules/templates/util_render.go +++ b/modules/templates/util_render.go @@ -152,7 +152,7 @@ func (ut *RenderUtils) renderLabelWithTag(label *issues_model.Label, tagName, ta if labelScope == "" { // Regular label - return htmlutil.HTMLFormat(`<%s %s class="ui label %s" style="color: %s !important; background-color: %s !important;" data-tooltip-content title="%s">%s`, + return htmlutil.HTMLFormat(`<%s %s class="ui label %s" style="--custom-color-label-text: %s; --custom-color-label-bg: %s;" data-tooltip-content title="%s">%s`, tagName, tagAttrs, extraCSSClasses, textColor, label.Color, descriptionText, ut.RenderEmoji(label.Name), tagName) } @@ -189,8 +189,8 @@ func (ut *RenderUtils) renderLabelWithTag(label *issues_model.Label, tagName, ta if label.ExclusiveOrder > 0 { // |