Skip to content

Commit

Permalink
Merge pull request #744 from danskernesdigitalebibliotek/DDFHER-96-pr…
Browse files Browse the repository at this point in the history
…int-articles-in-modal

DDFHER-96 - Add `@media print` to enable printing of articles in modals
  • Loading branch information
kasperbirch1 authored Oct 22, 2024
2 parents a0db738 + 4639dfe commit 1434326
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/stories/Library/Modals/modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,22 @@
justify-content: flex-end;
padding: 20px;
}

// Adjust the modal to display all content when printing
@media print {
.modal {
position: static;
overflow: visible;
width: auto;
height: auto;
opacity: 1;
display: block;
}

// Hide elements that shouldn't appear in print
.modal-backdrop,
.modal-btn-close,
.modal-btn-fallback {
display: none;
}
}

0 comments on commit 1434326

Please sign in to comment.