We're having below markup in Lightning component.

<lightning:icon aura:id="statusIcon" iconName="action:check" size="xx-small"/>

When java-script is controller prints the page with this component, seems like it's omitting this icon.

window.print(); is used to print the page.

Is there a way I can get this icon on printed output? Appreciate any help. Thanks.

  • Seems like only icon type - Doctype and Utility are visible when printed. – Raul Dec 5 '17 at 10:16
  • @RahulSharma Thanks, even utility:check did not print when I tried. I used print to PDF to view the output. – Pasan Eeriyagama Dec 5 '17 at 23:25
  • Can you add post some code which is not working as expected? – Raul Dec 6 '17 at 7:48
  • Hi @RahulSharma it's the same code with different icon type as you suggested. I tested in firefox. <lightning:icon aura:id="statusIcon" iconName="utility:check" size="xx-small"/> – Pasan Eeriyagama Dec 7 '17 at 0:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.