From 4084846b3b32c0a6ea6629ae2063843e3bccfa32 Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sat, 4 Jan 2025 12:29:16 +0000 Subject: [PATCH] Use secondary text color variable --- .../plugins/workflow/job/console/NewNodeConsoleNote/script.js | 2 +- .../plugins/workflow/job/console/NewNodeConsoleNote/style.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/org/jenkinsci/plugins/workflow/job/console/NewNodeConsoleNote/script.js b/src/main/resources/org/jenkinsci/plugins/workflow/job/console/NewNodeConsoleNote/script.js index 19bbf5b4..a8317be6 100644 --- a/src/main/resources/org/jenkinsci/plugins/workflow/job/console/NewNodeConsoleNote/script.js +++ b/src/main/resources/org/jenkinsci/plugins/workflow/job/console/NewNodeConsoleNote/script.js @@ -53,7 +53,7 @@ Behaviour.specify("span.pipeline-new-node", 'NewNodeConsoleNote', 0, function(e) var branch = label.substring(8) var ss = document.styleSheets[0] // TODO https://stackoverflow.com/a/18990994/12916 does not scale well to add width: 25em; text-align: right - ss.insertRule('.pipeline-node-' + nodeId + '::before {content: "[' + branch.replace(/&/g, "&").replace(//g, ">") + '] "; color: #9A9999; position: absolute; transform: translateX(-100%)}', ss.cssRules == null ? 0 : ss.cssRules.length) + ss.insertRule('.pipeline-node-' + nodeId + '::before {content: "[' + branch.replace(/&/g, "&").replace(//g, ">") + '] "; color: var(--text-color-secondary); position: absolute; transform: translateX(-100%)}', ss.cssRules == null ? 0 : ss.cssRules.length) break } } diff --git a/src/main/resources/org/jenkinsci/plugins/workflow/job/console/NewNodeConsoleNote/style.css b/src/main/resources/org/jenkinsci/plugins/workflow/job/console/NewNodeConsoleNote/style.css index ed5f78ab..7c178ef9 100644 --- a/src/main/resources/org/jenkinsci/plugins/workflow/job/console/NewNodeConsoleNote/style.css +++ b/src/main/resources/org/jenkinsci/plugins/workflow/job/console/NewNodeConsoleNote/style.css @@ -1,5 +1,5 @@ span.pipeline-new-node { - color: #9A9999 + color: var(--text-color-secondary) } span.pipeline-show-hide { visibility: hidden