Skip to content

Commit

Permalink
Merge pull request #4213 from alphagov/print-styles-action-link
Browse files Browse the repository at this point in the history
Fix action link component print styles
  • Loading branch information
matthillco authored Sep 10, 2024
2 parents 99dfc72 + a364389 commit 636f157
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

* Use component wrapper in hint component ([PR #4214](https://github.com/alphagov/govuk_publishing_components/pull/4214))
* Hide printed URLs when printing tables ([PR #4209](https://github.com/alphagov/govuk_publishing_components/pull/4209))
* Fix action link component print styles ([PR #4213](https://github.com/alphagov/govuk_publishing_components/pull/4213))

## 43.1.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,22 @@
}
}
}

@include govuk-media-query($media-type: print) {
.gem-c-action-link {
* {
color: $govuk-print-text-colour !important; // stylelint-disable-line declaration-no-important
}

&::before {
display: none;
}

.gem-c-action-link__link {
&::after {
display: block;
font-size: 12pt;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
dark_large_icon ||= false
light_icon ||= false

css_classes = %w(gem-c-action-link govuk-!-display-none-print)
css_classes = %w(gem-c-action-link)
css_classes << "gem-c-action-link--light-text" if light_text
css_classes << "gem-c-action-link--dark-icon" if dark_icon
css_classes << "gem-c-action-link--dark-large-icon" if dark_large_icon
Expand Down

0 comments on commit 636f157

Please sign in to comment.