Skip to content

[Fix] Tooltip Color Scope#1964

Merged
WBHarry merged 2 commits into
mainfrom
fix/resource-management-colors
Jun 1, 2026
Merged

[Fix] Tooltip Color Scope#1964
WBHarry merged 2 commits into
mainfrom
fix/resource-management-colors

Conversation

@WBHarry
Copy link
Copy Markdown
Contributor

@WBHarry WBHarry commented Jun 1, 2026

Added DH style to tooltips to fix the coloring of ArmorManagement and ResourceManagement tooltip.
The new scoped color variables weren't hitting as it didn't match any of the rules.

Prev
image
image

Changed
image
image

Not 100% if it's right to tack it on in the setStyle method, but it doesn't seem to cause any trouble in other tooltips from what I've noticed.

@CarlosFdez
Copy link
Copy Markdown
Contributor

Do we globally style all tooltips? I recall foundry had data-tooltip-class (which can be defined at any parent, even the outermost div), but if we style all tooltips regardless of source then this should be fine.

@WBHarry
Copy link
Copy Markdown
Contributor Author

WBHarry commented Jun 1, 2026

Ah, yeah that's a lot better.

Removed the global styling and now specifically adding dh-style to ResourceManagement and ArmorManagement 👍

@WBHarry WBHarry merged commit d98a7c9 into main Jun 1, 2026
1 check passed
@WBHarry WBHarry deleted the fix/resource-management-colors branch June 1, 2026 20:20
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.

2 participants