primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Primeng style classes not reflecting in print

Open smtgpt62 opened this issue 9 years ago • 3 comments

I am making angular 2 app using primeng. I am trying to print a page which is using primeng datatable. I have made some changes for datatable style classes in styles.css . But when i am printing that datatable, the styles are not reflecting i.e background color of data table header is not showing. I have done something like this in styles.css :

@media all{
.ui-datatable th.ui-state-default{ background-color: #bfcad5; color: #444d58; -webkit-print-color-adjust: exact !important; } }

Please help me out with this issue.

smtgpt62 avatar Jan 04 '17 10:01 smtgpt62

I have the same problem.

Did you find a solution ?

cristiangss avatar May 25 '17 16:05 cristiangss

I'm facing the same problem...

DarioN1 avatar Jun 08 '17 17:06 DarioN1

Add your style classes inside "@media print" attribute in style.css

On Thu, Jun 8, 2017 at 10:59 PM, DarioN1 [email protected] wrote:

I'm facing the same problem...

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/primefaces/primeng/issues/1725#issuecomment-307172423, or mute the thread https://github.com/notifications/unsubscribe-auth/AV1-TnixRceMJBoITDwNOLSPEdwqYL7wks5sCC9lgaJpZM4LafuC .

smtgpt62 avatar Jun 09 '17 07:06 smtgpt62