From 9f12f3736e5ecc6989f2d437926c494cf58ac4b0 Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Mon, 19 Feb 2024 15:16:04 +0100 Subject: [PATCH] Switch to the new crown This updates the crown to use the new design. This is a manual change until we can upgrade to GOV.UK Component 5.0 which does this automatically. --- app/views/shared/_header.html.erb | 16 ++++++++++++++++ package.json | 2 +- yarn.lock | 7 ++++++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_header.html.erb b/app/views/shared/_header.html.erb index 28c7a32ae8..83ca169c80 100644 --- a/app/views/shared/_header.html.erb +++ b/app/views/shared/_header.html.erb @@ -4,6 +4,22 @@ service_url: "/#{current_namespace}", classes: "app-header--#{HostingEnvironment.name}" ) do |header| %> + <% header.with_custom_logo do %> + + GOV.UK + + + <% end %> + <% case current_namespace %> <% when "assessor" %> <% if current_staff %> diff --git a/package.json b/package.json index b3ae217712..1944bcf057 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dfe-autocomplete": "github:DFE-Digital/dfe-autocomplete", "esbuild": "^0.20.1", "govuk-country-and-territory-autocomplete": "^1.0.2", - "govuk-frontend": "^4.7.0", + "govuk-frontend": "^4.8.0", "sass": "^1.71.0" }, "scripts": { diff --git a/yarn.lock b/yarn.lock index 6a59f24d5b..7529f4501e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -247,11 +247,16 @@ govuk-country-and-territory-autocomplete@^1.0.2: core-js "3.2.1" openregister-picker-engine "^1.2.1" -"govuk-frontend@^3.0.0 || ^4.0.0", govuk-frontend@^4.7.0: +"govuk-frontend@^3.0.0 || ^4.0.0": version "4.7.0" resolved "https://registry.yarnpkg.com/govuk-frontend/-/govuk-frontend-4.7.0.tgz#69950b6c2e69f435ffe9aa60d8dee232dac977de" integrity sha512-0OsdCusF5qvLWwKziU8zqxiC0nq6WP0ZQuw51ymZ/1V0tO71oIKMlSLN2S9bm8RcEGSoidPt2A34gKxePrLjvg== +govuk-frontend@^4.8.0: + version "4.8.0" + resolved "https://registry.yarnpkg.com/govuk-frontend/-/govuk-frontend-4.8.0.tgz#df4e56c762e93aae74fed214bb6be08e13783772" + integrity sha512-NOmPJxL8IYq1HSNHYKx9XY2LLTxuwb+IFASiGQO4sgJ8K7AG66SlSeqARrcetevV8zOf+i1z+MbJJ2O7//OxAw== + immutable@^4.0.0: version "4.2.4" resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.2.4.tgz#83260d50889526b4b531a5e293709a77f7c55a2a"