Skip to content

Commit

Permalink
Merge pull request #1723 from fofr/master
Browse files Browse the repository at this point in the history
Add display override for hiding content when printing
  • Loading branch information
NickColley authored Feb 27, 2020
2 parents 7154fe4 + b9aec5d commit 2b3f2a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

### New features

#### Add display override for hiding content when printing

Introduce a CSS class that can be used to hide any given element from the print view: `govuk-!-display-none-print`

[Pull request #1723: Add display override for hiding content when printing](https://github.com/alphagov/govuk-frontend/pull/1723).

### Fixes

- [Pull request #1746: Use generic div element for tabspanel](https://github.com/alphagov/govuk-frontend/pull/1746).
Expand Down
6 changes: 6 additions & 0 deletions src/govuk/overrides/_display.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@
.govuk-\!-display-none {
display: none !important;
}

@include govuk-media-query($media-type: print) {
.govuk-\!-display-none-print {
display: none !important;
}
}
}

0 comments on commit 2b3f2a3

Please sign in to comment.