Skip to content

Commit

Permalink
Merge pull request #4184 from alphagov/fix-background-color-unset
Browse files Browse the repository at this point in the history
Replace 'unset' property in printed background colours
  • Loading branch information
matthillco authored Sep 2, 2024
2 parents 7a0a5ef + e635ea9 commit 422e139
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## Unreleased

* Fix the search toggle in layout header ([PR #4163](https://github.com/alphagov/govuk_publishing_components/pull/4163))
* Replace 'unset' property in printed background colours ([PR #4184](https://github.com/alphagov/govuk_publishing_components/pull/4184))

## 43.0.1

Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/component_guide/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ $gem-guide-border-width: 1px;

@include govuk-media-query($media-type: print) {
&[class*="-background"] {
background-color: unset;
background: none;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ $govuk-header-link-underline-thickness: 3px;
}

.gem-c-one-login-header {
background-color: initial;
background: none;
border-bottom: 2pt solid $govuk-print-text-colour;

* {
Expand All @@ -456,6 +456,8 @@ $govuk-header-link-underline-thickness: 3px;
}

.gem-c-service-header {
background: none;

.govuk-width-container {
margin: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
@include govuk-media-query($media-type: print) {
.gem-c-intervention {
break-inside: avoid;
background-color: transparent;
background: none;
border-color: $govuk-print-text-colour;

.govuk-body {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

@include govuk-media-query($media-type: print) {
.gem-c-inverse-header {
background-color: unset;
background: none;
border-bottom: 2pt solid $govuk-print-text-colour;

&,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
.gem-c-header__product-name,
.gem-c-environment-tag {
color: $govuk-print-text-colour;
background-color: unset;
background: none;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ $after-button-padding-left: govuk-spacing(4);
border-top: 0;
border-bottom: 2pt solid $govuk-print-text-colour;
margin: 0 0 5mm;
background-color: transparent;
background: none;

&:has(.gem-c-layout-super-navigation-header__header-logo .govuk-visually-hidden) {
border: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
.gem-c-metadata {
break-inside: avoid;
color: $govuk-print-text-colour !important;
background-color: unset;
background: none;
margin-bottom: 5mm;

a,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
.gem-c-phase-banner {
&,
& * {
background-color: unset !important;
background: none !important;
color: $govuk-print-text-colour !important;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@include govuk-media-query($media-type: print) {
.gem-c-step-nav-header {
padding: 0 0 govuk-spacing(4) 0;
background: unset;
background: none;
border-color: $govuk-print-text-colour;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
// stylelint-disable declaration-no-important
@include govuk-media-query($media-type: print) {
.gem-c-step-nav-related {
background: unset;
background: none;
border-color: $govuk-print-text-colour;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@include govuk-media-query($media-type: print) {
.gem-c-success-alert {
break-inside: avoid;
background-color: initial;
background: none;
border-color: $govuk-print-text-colour;

* {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ $table-row-even-background-colour: govuk-colour("light-grey");

* {
color: $govuk-print-text-colour !important;
background-color: initial !important;
background: none !important;
}

.govuk-table__header,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}

.govuk-warning-text__icon {
background-color: transparent;
background: none;
color: $govuk-print-text-colour;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

&,
& * {
background-color: unset;
background: none;
color: $govuk-print-text-colour !important; // stylelint-disable-line declaration-no-important
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@ $highlight-answer-color: govuk-colour("white");
}
}

// stylelint-disable declaration-no-important
@include govuk-media-query($media-type: print) {
background-color: unset;
background: none;

&,
& * {
color: $govuk-print-text-colour !important;
color: $govuk-print-text-colour !important; // stylelint-disable-line declaration-no-important
}
}
// stylelint-enable declaration-no-important
}
}

0 comments on commit 422e139

Please sign in to comment.