#2877 - Group Genmapper Colors#2891
Conversation
kodinkat
commented
Feb 16, 2026
- fixes: Group Genmapper colors #2877
- Updated CSS to prevent static fill color for node text, allowing dynamic color assignment via JavaScript.
- Reduced font size for node titles and adjusted max-width for better text fitting.
- Introduced constants for node dimensions in JavaScript to improve maintainability and prevent text clipping.
- Added functions for calculating text color based on background luminance to ensure better contrast and readability.
|
@corsacca review ready.... |
|
Thanks @kodinkat! |
Eliminates ~9 duplicate inline status color resolution blocks across both render paths by extracting a shared ensureStatusColor() helper. Removes redundant .style('fill') calls and stale CSS comments.
Code ReviewGood PR overall — the WCAG-based text contrast logic is a real improvement and the refactoring direction is correct. A few issues worth addressing: 1. Incomplete refactoring:
|