View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023631 | mantisbt | printing | public | 2017-11-13 08:57 | 2021-01-29 09:48 |
Reporter | atrol | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Summary | 0023631: Wrong status color when printing | ||||
Description | The status square is always black when printing. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
From my point of view, this problem occurs when the selected printer is black and white. |
|
I don't hink so. At least the avatars are colored. |
|
Yes, the status colors are black even with a color printer and Print to PDF in Chrome. As @atrol mentioned, the avatars are just fine. Needs a fix since 2.5! |
|
The problem is caused by bootstrap, which forces black color for print media. https://github.com/twbs/bootstrap/blob/v3.4.0/dist/css/bootstrap.css#L199 We would need to override that somehow. I'm not a CSS expert though, so not sure what the best approach would be. Since the CSS is generated dynamically, this would probably have to be done in css/status_config.php, but currently that is loaded before bootstrap so that might have to be changed. |
|
I made some tests which lead me to think that this should be possible, but I'm confused with the results. Maybe someone more qualified than me with CSS can shed some light. In
In print preview, this causes all status boxes to show in green. So far, so good. BUT:
Shows the boxes with faded colors unrelated to the defined RGB values for MantisBT status colors ! EDIT: |
|
The reason for the firefox problem could be that you have to click on the "color" in the printing settings. At least that was the case here. It is considered a bootstrap "feature"... They suggest css similar to yours, but without ":before". |
|