Overview
Item colors differ from cell-level conditional formatting:- Item Colors — Apply to the entire row or row header based on work item properties
- Cell Formatting — Apply to individual cells based on cell or row values
Color Assignment Methods
Method 1: Row Header Color (Renderer-Based)
Assign a renderer function to the row header to apply colors based on row data:Method 2: Full Row Styling
Apply a CSS class to the entire row using a row-level decorator:Color Configuration Properties
Row Header Color Definition
| Property | Type | Required | Description |
|---|---|---|---|
headers.rowHeader.renderer | string | Yes | Function name from cellDecorators that applies color logic |
border-width | number | No | Width of colored border (typically 4-7px) |
border-color | hex/rgb | Yes | Color code for the border (#F3AEAC, #FFFE54, etc.) |
background-color | hex/rgb | No | Optional background color for row header cell |
Color Palette for Risk Levels
The standard FMEA color scheme uses three risk bands:| Risk Level | RPN Range | Color Code | RGB | Purpose |
|---|---|---|---|---|
| Low | 1–150 | #B0D444 | rgb(176, 212, 68) | Green — acceptable risk |
| Medium | 151–350 | #FFFE54 | rgb(255, 254, 84) | Yellow — needs attention |
| High | 351+ | #F3AEAC | rgb(243, 174, 172) | Red — requires mitigation |
Implementation Example
Basic RPN-Based Row Colors
Status-Based Row Colors
Color Application Flow
Color Palettes by Use Case
Risk Management (FMEA/HARA)
| Category | Color | Code | Usage |
|---|---|---|---|
| Acceptable | Green | #B0D444 | RPN ≤ 150 |
| Review Needed | Yellow | #FFFE54 | RPN 151–350 |
| Mitigate | Red | #F3AEAC | RPN ≥ 351 |
Workflow Status
| Status | Color | Code | Usage |
|---|---|---|---|
| Approved | Green | #d4edda | Final sign-off |
| In Progress | Blue | #cce5ff | Active work |
| On Hold | Yellow | #fff3cd | Blocked/waiting |
| Rejected | Red | #f8d7da | Needs rework |
Severity Levels
| Severity | Color | Code | Usage |
|---|---|---|---|
| Critical | Dark Red | #dc3545 | System down |
| High | Red | #f8d7da | Major issue |
| Medium | Orange | #ffc107 | Moderate impact |
| Low | Green | #d4edda | Minor issue |
Advanced Color Techniques
Multi-Property Color Logic
Combine multiple row properties for sophisticated color assignment:Conditional Text Color
Adjust both background and text color for maximum contrast:Performance Considerations
CSS Specificity Notes
When combining row colors with cell decorators, ensure CSS rules don’t conflict:Troubleshooting Item Colors
| Issue | Cause | Solution |
|---|---|---|
| No color visible | Renderer not assigned to rowHeader | Check headers.rowHeader.renderer property |
| Color not updating | Condition references wrong field | Verify field binding matches column ID |
| Color too bright/dim | Opacity or color code issue | Adjust hex code or rgba alpha value |
| Partial rows colored | Logic condition incomplete | Ensure all branches of if/else are handled |
| Performance lag | Too complex decorator | Simplify conditions; avoid DOM queries |
See Also
- Cell Decorators — Detailed decorator function reference
- Conditional Formatting — Cell-level styling
- Configure Item Colors — Step-by-step implementation
- CSS Classes — Complete CSS class reference
Sources
Sources
KB ArticlesSupport TicketsSource Code
AppConfig.tsRiskSheetContextMenu.tsSheetConstants.tsCellEditorFormatter.tsExportToPdf.ts