Skip to content

Fix group default fill colors - #5942

Merged
knolleary merged 1 commit into
node-red:mainfrom
bonanitech:group-default-fill
Oct 6, 2026
Merged

knolleary merged 1 commit into
node-red:mainfrom
bonanitech:group-default-fill

Conversation

@bonanitech

@bonanitech bonanitech commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Proposed changes

The main focus of #5878 was fixing an issue I noticed with the color picker. Sometimes, it would incorrectly display the value none as the fill color even though a color value was set.

Unfortunately, that fix surfaced the issue @VisualReversal reported.

The main issue is that the values ​​set in $group-default-fill* variables are used when no customization is applied.

Currently, these variables have the following values ​​in the dark theme:

$group-default-fill: #ffffff;
$group-default-fill-opacity: 0.03;

With $group-default-fill-opacity: 0.03; being the main culprit here. Since it's almost transparent, it makes it seem like any custom colors we set get removed.

Speaking from experience, I rarely remember to change the opacity when customizing a group's color. I believe this is likely the case for other Node-RED users as well.

This PR fixes the issue by setting the same default values ​used in the light theme:

$group-default-fill: none;
$group-default-fill-opacity: 1;

Fixes #5922

Checklist

  • I have read the contribution guidelines
  • For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • I have run npm run test to verify the unit tests pass
  • I have added suitable unit tests to cover the new/changed functionality

@bonanitech

Copy link
Copy Markdown
Contributor Author

@n-lark, what is your input on this? :)

@knolleary

Copy link
Copy Markdown
Member

Tested this locally - works for me

@knolleary
knolleary merged commit b013f16 into node-red:main Oct 6, 2026
3 checks passed
@bonanitech
bonanitech deleted the group-default-fill branch October 6, 2026 18:33
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.

Node-RED 5.0.6 Dark Theme is removing custom color settings from groups

2 participants