<div styleName="item" key={index} style={{ backgroundColor: color[index] }}>
The hex color code stored in color[index] displays correctly in web browsers, but fails to work in print preview mode.
Substituting 'blue' for color[index] successfully changes the color in the web browser, but does not reflect in the print preview.
It seems like inline styles do not function properly in print. Since I need to dynamically generate the color, I cannot just rely on a static color defined in a CSS file.
Has anyone encountered this issue before?
View screenshot in Chrome :
https://i.sstatic.net/mnGQd.png
Print preview mode screenshot: