diff --git a/CHANGELOG.md b/CHANGELOG.md index e0a1918a99..d4803859e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/app/assets/stylesheets/govuk_publishing_components/components/_table.scss b/app/assets/stylesheets/govuk_publishing_components/components/_table.scss index ccb04d4ef7..e5f1b5babc 100644 --- a/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +++ b/app/assets/stylesheets/govuk_publishing_components/components/_table.scss @@ -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; diff --git a/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss b/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss index 3a9b66762a..c28987f4f1 100644 --- a/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +++ b/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss @@ -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 + } + } +}