From 6120c1af02dd17bc9f9154e681f5f30a5b606801 Mon Sep 17 00:00:00 2001 From: John Coburn Date: Wed, 8 Nov 2023 15:05:22 -0600 Subject: [PATCH 1/2] apply print styles so that only last pane is visible at full width --- lib/Pane/Pane.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/Pane/Pane.css b/lib/Pane/Pane.css index 512a8c3a0..cfd1470fa 100644 --- a/lib/Pane/Pane.css +++ b/lib/Pane/Pane.css @@ -17,7 +17,15 @@ will-change: transform; @media print { - overflow: visible; + display: none; + } + + &:nth-last-of-type(1) { + @media print { + overflow: visible; + display: block; + flex: 0 0 100vw !important; + } } } From 397b4ddb3b2a0b16469dd8ab71babe7e3eb17239 Mon Sep 17 00:00:00 2001 From: John Coburn Date: Wed, 8 Nov 2023 15:23:10 -0600 Subject: [PATCH 2/2] log changes --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4484e246b..7f8016607 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ * Ensure CSS visibility of datepicker's year input number spinner. Refs STCOM-1225. * Include pagination height in MCL container height calculation. Refs STCOM-1224. * Added `indexRef` and `inputRef` props to ``. Refs STCOM-1231. +* Adjusted print styles of panes so that the last pane will print. Refs STCOM-1228, STCOM-1229. ## [12.0.0](https://github.com/folio-org/stripes-components/tree/v12.0.0) (2023-10-11) [Full Changelog](https://github.com/folio-org/stripes-components/compare/v11.0.0...v12.0.0)