1

i'm using icons like , and but they always lose the color when i try to print, i used:

 @media print  {
    .game-card-reactions {
      -webkit-break-inside: avoid;
      break-inside: avoid;
      -webkit-print-color-adjust: exact!important; 
    }
}

worked for the colors on the cards, but didn't work on the icons... Actual Desired

The colors are important because of the color code on the side of the cards

Davi Araki
  • 19
  • 1

1 Answers1

1

This code works for me in most situations regarding print color

@media print {
  *{
    color-adjust: exact;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
Ozgur Sar
  • 2,067
  • 2
  • 11
  • 23