From 99a75eaa7aef3fc400a84e01850412446c69eec2 Mon Sep 17 00:00:00 2001
From: Andy Mantell <134642+andymantell@users.noreply.github.com>
Date: Sat, 3 Jul 2021 09:58:04 +0100
Subject: [PATCH] Change approach to fallback PNG in the header to fix blank
data URI from triggering CSP error
See https://github.com/alphagov/govuk-frontend/pull/2229
---
CHANGELOG.md | 1 +
src/govuk/components/header/index.js | 55 +++++++++++++++-------------
2 files changed, 30 insertions(+), 26 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2dff162..e4f7d9d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@
### v6.1.0
- Update to govuk-frontend@3.13.0 (https://github.com/surevine/govuk-react-jsx/pull/118)
+ - Change approach to fallback PNG in the header to fix blank data URI from triggering CSP error
- See https://github.com/alphagov/govuk-frontend/releases/tag/v3.13.0 for full release notes
### v6.0.0
diff --git a/src/govuk/components/header/index.js b/src/govuk/components/header/index.js
index f46bb0f..4274a19 100644
--- a/src/govuk/components/header/index.js
+++ b/src/govuk/components/header/index.js
@@ -136,32 +136,35 @@ function Header(props) {
href={homepageUrlHref}
className="govuk-header__link govuk-header__link--homepage"
>
-
- {' '}
- GOV.UK
-
+
+
+
+
+ GOV.UK
+ `,
+ }}
+ />
{productNameComponent}