Skip to content

Commit

Permalink
STCOM-1228 Print styling of panes (users want to print the detail pan…
Browse files Browse the repository at this point in the history
…e, but full screen display is printed) (#2170)

* apply print styles so that only last pane is visible at full width

* log changes

(cherry picked from commit 1cdd21c)
  • Loading branch information
JohnC-80 authored and zburke committed Nov 10, 2023
1 parent 87589a5 commit 80e2d5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Add z-index of 1 to callout out to have it always render on top of sibling elements. Fixes STCOM-1217.
* Ensure CSS visibility of datepicker's year input number spinner. Refs STCOM-1225.
* Include pagination height in MCL container height calculation. Refs STCOM-1224.
* Adjusted print styles of panes so that the last pane will print. Refs STCOM-1228, STCOM-1229.

## [12.0.2](https://github.com/folio-org/stripes-components/tree/v12.0.2) (2023-10-20)
[Full Changelog](https://github.com/folio-org/stripes-components/compare/v12.0.1...v12.0.2)
Expand Down
10 changes: 9 additions & 1 deletion lib/Pane/Pane.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 80e2d5a

Please sign in to comment.