Summary
Add a fontcolor (or cellfg) tag prefix similar to the existing cellbg tag, allowing users to conditionally set font color within table cells in Word templates.
Problem
Currently, when using cellbg with a dark background color (e.g., black), the text becomes invisible because there is no way to change the font color to contrast with the background.
Example of current limitation:
{% cellbg finding.severity_color %}{{ finding.severity }}
When finding.severity_color is 000000 (black), the black text on a black background is unreadable.
Proposed Solution
A new fontcolor tag prefix that works like cellbg:
{% fontcolor "FFFFFF" if finding.severity == "Critical" else "000000" %}
{% cellbg finding.severity_color %}{{ finding.severity }}
This would allow users to set white text on dark backgrounds and maintain readability across all severity levels.
Use Case
Reporting templates that use severity-colored cell backgrounds need the ability to adjust text color for contrast and readability.
Summary
Add a fontcolor (or cellfg) tag prefix similar to the existing cellbg tag, allowing users to conditionally set font color within table cells in Word templates.
Problem
Currently, when using cellbg with a dark background color (e.g., black), the text becomes invisible because there is no way to change the font color to contrast with the background.
Example of current limitation:
{% cellbg finding.severity_color %}{{ finding.severity }}When finding.severity_color is 000000 (black), the black text on a black background is unreadable.
Proposed Solution
A new fontcolor tag prefix that works like cellbg:
This would allow users to set white text on dark backgrounds and maintain readability across all severity levels.
Use Case
Reporting templates that use severity-colored cell backgrounds need the ability to adjust text color for contrast and readability.