Skip to content

fix(editor): make disabled wires visible in dark theme - #5926

Merged
knolleary merged 2 commits into
node-red:mainfrom
Bryandero98:fix/dark-mode-disabled-wire-visibility
Sep 8, 2026
Merged

knolleary merged 2 commits into
node-red:mainfrom
Bryandero98:fix/dark-mode-disabled-wire-visibility

Conversation

@Bryandero98

Copy link
Copy Markdown
Contributor

Summary

Fixes #5879 — in the dark theme, disabled flow's wires were almost invisible.

Root cause

$link-disabled-color in dark-colors.scss was set to $border-2 (#2a2a2c), a divider/border tone that is nearly identical to the dark theme's canvas background ($canvas-bg: #0e0e12). Since disabled-wire strokes use this variable (flow.scss, .red-ui-workspace-disabled / .red-ui-flow-node-disabled), the wires blended into the background instead of reading as "dimmed."

Fix

Use #444444 — the value this same file already uses elsewhere for "disabled but still visible" UI (e.g. $node-config-icon-container-disabled). This mirrors the relationship the light theme already has between its active and disabled link colors ($link-color: #999 vs $link-disabled-color: #ccc — the disabled one is dimmed relative to active, not indistinguishable from the page background).

Verification

Compiled the editor's sass (sass packages/node_modules/@node-red/editor-client/src/sass/style.scss) before and after the change and confirmed:

  • Build succeeds with no errors/warnings introduced.
  • The compiled dark-theme rule now emits --red-ui-link-disabled-color: #444444; instead of #2a2a2c.
  • Light theme's --red-ui-link-disabled-color: #ccc is unchanged.

🤖 Generated with Claude Code

Bryandero98 and others added 2 commits September 7, 2026 10:26
$link-disabled-color reused $border-2 (#2a2a2c), a divider/border
tone that is nearly identical to the dark theme's canvas background
($canvas-bg: #0e0e12), so a disabled flow's wires became almost
invisible. Use the same #444444 already established elsewhere in
this file for "disabled but still visible" elements (e.g.
$node-config-icon-container-disabled), giving disabled wires the
same dimmed-relative-to-active relationship the light theme already
has between $link-color (node-red#999) and $link-disabled-color (#ccc).

Fixes node-red#5879

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Signed-off-by: Bryandero98 <[email protected]>
build (22)'s only failure (storage/localfilesystem/library > should
return a newly saved library flow, expecting file3.json but getting
file3.json.$$$) is unrelated to this PR's one-line SCSS color change,
and main itself has had intermittent failures on this same workflow
recently - retriggering rather than assuming it's caused by this change.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Signed-off-by: Bryandero98 <[email protected]>
@knolleary
knolleary merged commit 737ab97 into node-red:main Sep 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dark mode: disabled wires are barely visible

2 participants