Skip to content

Commit e83f6e1

Browse files
Merge pull request #5806 from alphagov/update-cookie-banner-background
Update background colour of Cookie banner for brand refresh
2 parents 5d9e4c5 + 6fe96fd commit e83f6e1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ For advice on how to use these release notes see [our guidance on staying up to
1111
> Placeholder for instructions on enabling the brand and when it's allowed to be deployed to live.
1212
> If you're not using our Page Template:
1313

14-
1. Add the `govuk-template--rebranded` to use the rebranded styles of Footer
14+
1. Add the `govuk-template--rebranded` to the `<html>` element of your page to use the rebranded styles of Footer and Cookie banner components.
1515

1616
These changes affect the Header, Footer, Service navigation, and Cookie banner components. Ensure that they still work as expected after enabling the refreshed brand.
1717

1818
These changes were made in the following pull requests:
1919

2020
- [#5796: Update template background colour and components using it](https://github.com/alphagov/govuk-frontend/pull/5796)
21+
- [#5806: Update background colour of Cookie banner for brand refresh](https://github.com/alphagov/govuk-frontend/pull/5806)
2122
- [#5798: Add mixin to help rebrand specific properties](https://github.com/alphagov/govuk-frontend/pull/5798)
2223
- [#5793: Add GOV.UK logo macro](https://github.com/alphagov/govuk-frontend/pull/5793)
2324

packages/govuk-frontend/src/govuk/components/cookie-banner/_index.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
// changes colours in their browser.
1414
border-bottom: $border-bottom-width solid transparent;
1515

16-
background-color: $govuk-canvas-background-colour;
16+
@include _govuk-rebrand(
17+
"background-color",
18+
$govuk-template-background-colour,
19+
$_govuk-rebrand-template-background-colour
20+
);
1721
}
1822

1923
// Support older browsers which don't hide elements with the `hidden` attribute

0 commit comments

Comments
 (0)