Skip to content

Commit

Permalink
Merge pull request #4209 from alphagov/print-styles-for-tables
Browse files Browse the repository at this point in the history
Hide printed URLs when printing tables
  • Loading branch information
matthillco authored Sep 10, 2024
2 parents 3dae227 + 829fc11 commit c175ea4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
useful summary for people upgrading their application, not a replication
of the commit log.

## Unreleased

* Hide printed URLs when printing tables ([PR #4209](https://github.com/alphagov/govuk_publishing_components/pull/4209))

## 43.1.0

* Add the password input component ([PR #4176](https://github.com/alphagov/govuk_publishing_components/pull/4176))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ $table-row-even-background-colour: govuk-colour("light-grey");

// stylelint-disable declaration-no-important
@include govuk-media-query($media-type: print) {
.govuk-table,
.gem-c-table {
a::after {
display: none !important;
}
}

.govuk-table--sortable {
outline: none;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,12 @@
}
}
}

@include govuk-media-query($media-type: print) {
.govspeak,
.gem-c-govspeak {
table a::after {
display: none !important; // stylelint-disable-line declaration-no-important
}
}
}

0 comments on commit c175ea4

Please sign in to comment.