diff --git a/lighthouse-core/report/v2/renderer/report-ui-features.js b/lighthouse-core/report/v2/renderer/report-ui-features.js index 3c53cbdad1ca..52c0332f967c 100644 --- a/lighthouse-core/report/v2/renderer/report-ui-features.js +++ b/lighthouse-core/report/v2/renderer/report-ui-features.js @@ -177,7 +177,12 @@ class ReportUIFeatures { case 'copy': this.onCopyButtonClick(); break; - case 'print': + case 'print-summary': + this.collapseAllDetails(); + this.closeExportDropdown(); + self.print(); + break; + case 'print-expanded': this.expandAllDetails(); this.closeExportDropdown(); self.print(); @@ -257,7 +262,6 @@ class ReportUIFeatures { */ printShortCutDetect(e) { if ((e.ctrlKey || e.metaKey) && e.keyCode === 80) { // Ctrl+P - this.expandAllDetails(); this.closeExportDropdown(); } } diff --git a/lighthouse-core/report/v2/templates.html b/lighthouse-core/report/v2/templates.html index babe6a23553f..d4d48f289ce4 100644 --- a/lighthouse-core/report/v2/templates.html +++ b/lighthouse-core/report/v2/templates.html @@ -343,7 +343,8 @@

Lighthouse

- Print... + Print Summary + Print Expanded Copy JSON Save as HTML Save as JSON