Skip to content

Conversation

@querkmachine
Copy link
Member

@querkmachine querkmachine commented Jun 5, 2025

Add 'inverse' (white on blue) variant of the Service navigation component. For #6013.

This variant is intended for use on pages where the GOV.UK header and Service navigation are followed by another element with a blue background, such as on Digital Service Platforms pages, to create a seamless blue area at the top of the page.

Changes

  • Adds an inversely coloured variant of the Service navigation component.
  • Change how line-height is calculated on service name and navigation items.
  • Review app:
    • Adds an example of the inverse styles to the review app.
    • Updates the 'product page' full page example to use the inverse variant.

Thoughts

  • The appearance of the inverse component means that non-linked service names and navigation items look identical to their linked equivalents. This might be okay—the non-inverse version of the component doesn't distinguish between linked and non-linked service names either, and links are distinguished only by colour—but could potentially be better.

@querkmachine querkmachine self-assigned this Jun 5, 2025
@github-actions
Copy link

github-actions bot commented Jun 5, 2025

📋 Stats

File sizes

File Size
dist/govuk-frontend-development.min.css 127.91 KiB
dist/govuk-frontend-development.min.js 48.07 KiB
packages/govuk-frontend/dist/govuk/all.bundle.js 102.18 KiB
packages/govuk-frontend/dist/govuk/all.bundle.mjs 95.96 KiB
packages/govuk-frontend/dist/govuk/all.mjs 1.28 KiB
packages/govuk-frontend/dist/govuk/component.mjs 1.67 KiB
packages/govuk-frontend/dist/govuk/govuk-frontend.min.css 127.9 KiB
packages/govuk-frontend/dist/govuk/govuk-frontend.min.js 48.06 KiB
packages/govuk-frontend/dist/govuk/i18n.mjs 5.55 KiB
packages/govuk-frontend/dist/govuk/init.mjs 6.89 KiB

Modules

File Size (bundled) Size (minified)
all.mjs 90.17 KiB 45.67 KiB
accordion.mjs 26.58 KiB 13.41 KiB
button.mjs 9.09 KiB 3.79 KiB
character-count.mjs 25.48 KiB 11 KiB
checkboxes.mjs 7.76 KiB 3.42 KiB
error-summary.mjs 10.99 KiB 4.55 KiB
exit-this-page.mjs 20.2 KiB 10.34 KiB
file-upload.mjs 20.83 KiB 11.11 KiB
header.mjs 6.48 KiB 3.28 KiB
notification-banner.mjs 9.35 KiB 3.71 KiB
password-input.mjs 18.16 KiB 8.34 KiB
radios.mjs 6.76 KiB 2.98 KiB
service-navigation.mjs 6.39 KiB 3.26 KiB
skip-link.mjs 6.34 KiB 2.76 KiB
tabs.mjs 11.99 KiB 6.67 KiB

View stats and visualisations on the review app


Action run for 6a1a125

@github-actions
Copy link

github-actions bot commented Jun 5, 2025

Stylesheets changes to npm package

diff --git a/packages/govuk-frontend/dist/govuk/govuk-frontend.min.css b/packages/govuk-frontend/dist/govuk/govuk-frontend.min.css
index d4676a216..8861ef2c5 100644
--- a/packages/govuk-frontend/dist/govuk/govuk-frontend.min.css
+++ b/packages/govuk-frontend/dist/govuk/govuk-frontend.min.css
@@ -5579,7 +5579,7 @@ screen and (forced-colors:active) {
     .govuk-template--rebranded .govuk-service-navigation__item,
     .govuk-template--rebranded .govuk-service-navigation__service-name {
         padding: 15px 0;
-        line-height: 1.5
+        line-height: 1.5263157895
     }
 
     .govuk-service-navigation__item:not(:last-child),
@@ -5871,6 +5871,44 @@ screen and (min-width:40.0625em) and (-ms-high-contrast:active) {
     font-weight: inherit
 }
 
+.govuk-template--rebranded .govuk-service-navigation--inverse {
+    border-bottom: none;
+    background-color: #1d70b8
+}
+
+.govuk-template--rebranded .govuk-service-navigation--inverse .govuk-width-container {
+    border-color: #8eb8dc;
+    border-style: solid;
+    border-width: 1px 0
+}
+
+.govuk-template--rebranded .govuk-service-navigation--inverse .govuk-service-navigation__container {
+    margin-top: -1px
+}
+
+.govuk-template--rebranded .govuk-service-navigation--inverse .govuk-service-navigation__item,
+.govuk-template--rebranded .govuk-service-navigation--inverse .govuk-service-navigation__service-name {
+    border-color: #fff
+}
+
+.govuk-template--rebranded .govuk-service-navigation--inverse .govuk-service-navigation__link:link,
+.govuk-template--rebranded .govuk-service-navigation--inverse .govuk-service-navigation__link:visited {
+    color: #fff
+}
+
+.govuk-template--rebranded .govuk-service-navigation--inverse .govuk-service-navigation__link:active,
+.govuk-template--rebranded .govuk-service-navigation--inverse .govuk-service-navigation__link:hover {
+    color: hsla(0, 0%, 100%, .99)
+}
+
+.govuk-template--rebranded .govuk-service-navigation--inverse .govuk-service-navigation__link:focus {
+    color: #0b0c0c
+}
+
+.govuk-template--rebranded .govuk-service-navigation--inverse .govuk-service-navigation__toggle:not(:focus) {
+    color: #fff
+}
+
 .govuk-skip-link {
     font-family: GDS Transport, arial, sans-serif;
     -webkit-font-smoothing: antialiased;

Action run for 6a1a125

@github-actions
Copy link

github-actions bot commented Jun 5, 2025

Rendered HTML changes to npm package

diff --git a/packages/govuk-frontend/dist/govuk/components/service-navigation/template-inverse.html b/packages/govuk-frontend/dist/govuk/components/service-navigation/template-inverse.html
new file mode 100644
index 000000000..8fb4bdade
--- /dev/null
+++ b/packages/govuk-frontend/dist/govuk/components/service-navigation/template-inverse.html
@@ -0,0 +1,63 @@
+
+  <section aria-label="Service information" class="govuk-service-navigation govuk-service-navigation--inverse"
+data-module="govuk-service-navigation"
+>
+      <div class="govuk-width-container">
+
+    <div class="govuk-service-navigation__container">
+      
+        <span class="govuk-service-navigation__service-name">
+            <a href="#/" class="govuk-service-navigation__link">
+              Apply for a juggling license
+            </a>
+        </span>
+
+      
+        <nav aria-label="Menu" class="govuk-service-navigation__wrapper">
+          <button type="button" class="govuk-service-navigation__toggle govuk-js-service-navigation-toggle" aria-controls="navigation" hidden>
+            Menu
+          </button>
+
+          <ul class="govuk-service-navigation__list" id="navigation" >
+
+            
+              
+              <li class="govuk-service-navigation__item">
+                  <a class="govuk-service-navigation__link" href="#/1">
+                                    
+Navigation item 1
+                  </a>
+              </li>
+
+              
+              <li class="govuk-service-navigation__item govuk-service-navigation__item--active">
+                  <a class="govuk-service-navigation__link" href="#/2" aria-current="true">
+                                    
+                  <strong class="govuk-service-navigation__active-fallback">Navigation item 2</strong>
+
+                  </a>
+              </li>
+
+              
+              <li class="govuk-service-navigation__item">
+                  <a class="govuk-service-navigation__link" href="#/3">
+                                    
+Navigation item 3
+                  </a>
+              </li>
+
+              
+              <li class="govuk-service-navigation__item">
+                  <a class="govuk-service-navigation__link" href="#/4">
+                                    
+Navigation item 4
+                  </a>
+              </li>
+
+            </ul>
+        </nav>
+    </div>
+
+    </div>
+
+  </section>

Action run for 6a1a125

@github-actions
Copy link

github-actions bot commented Jun 5, 2025

Other changes to npm package

diff --git a/packages/govuk-frontend/dist/govuk/components/service-navigation/_index.scss b/packages/govuk-frontend/dist/govuk/components/service-navigation/_index.scss
index 2d28020e3..4afae52d3 100644
--- a/packages/govuk-frontend/dist/govuk/components/service-navigation/_index.scss
+++ b/packages/govuk-frontend/dist/govuk/components/service-navigation/_index.scss
@@ -48,7 +48,13 @@
 
       @include _govuk-rebrand {
         padding: govuk-spacing(3) 0;
-        line-height: 1.5;
+
+        // More magic numbers ahoy:
+        // 29 is the desired height of the element (60), minus top and bottom
+        // padding (2×15), minus bottom border (1); 19 is the font-size at this
+        // point. This gives us the perfect fractional line height to make the
+        // overall component 60px high
+        line-height: (29 / 19);
       }
 
       &:not(:last-child) {
@@ -182,6 +188,42 @@
   .govuk-service-navigation__active-fallback {
     font-weight: inherit;
   }
+
+  // Inverted colour scheme style intended for product pages
+  .govuk-service-navigation--inverse {
+    @include _govuk-rebrand {
+      // Remove bottom border to add width-container ones
+      border-bottom: none;
+      background-color: $govuk-brand-colour;
+
+      .govuk-width-container {
+        border-width: 1px 0;
+        border-style: solid;
+        border-color: $_govuk-rebrand-border-colour-on-blue-tint-95;
+      }
+
+      // Subtract 1px of space to account for the extra border-top
+      .govuk-service-navigation__container {
+        margin-top: -1px;
+      }
+
+      // Override the 'active' border colour
+      .govuk-service-navigation__item,
+      .govuk-service-navigation__service-name {
+        border-color: govuk-colour("white");
+      }
+
+      // Override link styles
+      .govuk-service-navigation__link {
+        @include govuk-link-style-inverse;
+      }
+
+      // Override mobile menu toggle colour when not focused
+      .govuk-service-navigation__toggle:not(:focus) {
+        color: govuk-colour("white");
+      }
+    }
+  }
 }
 
 /*# sourceMappingURL=_index.scss.map */
diff --git a/packages/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json b/packages/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json
index 0305468d5..7b8b1e33d 100644
--- a/packages/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json
+++ b/packages/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json
@@ -274,6 +274,40 @@
             "screenshot": false,
             "html": "<section aria-label=\"Service information\" class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n      <div class=\"govuk-width-container\">\n\n    <div class=\"govuk-service-navigation__container\">\n      \n        <span class=\"govuk-service-navigation__service-name\">\n            <a href=\"#/\" class=\"govuk-service-navigation__link\">\n              Apply for a juggling license\n            </a>\n        </span>\n\n      \n        <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\">\n          <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n            Menu\n          </button>\n\n          <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n            \n              \n              <li class=\"govuk-service-navigation__item\">\n                  <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n                                    \nNavigation item 1\n                  </a>\n              </li>\n\n              \n              <li class=\"govuk-service-navigation__item govuk-service-navigation__item--active\">\n                  <a class=\"govuk-service-navigation__link\" href=\"#/2\" aria-current=\"true\">\n                                    \n                  <strong class=\"govuk-service-navigation__active-fallback\">Navigation item 2</strong>\n\n                  </a>\n              </li>\n\n              \n              <li class=\"govuk-service-navigation__item\">\n                  <a class=\"govuk-service-navigation__link\" href=\"#/3\">\n                                    \nNavigation item 3\n                  </a>\n              </li>\n\n              \n              <li class=\"govuk-service-navigation__item\">\n                  <a class=\"govuk-service-navigation__link\" href=\"#/4\">\n                                    \nNavigation item 4\n                  </a>\n              </li>\n\n            </ul>\n        </nav>\n    </div>\n\n    </div>\n\n  </section>"
         },
+        {
+            "name": "inverse",
+            "options": {
+                "classes": "govuk-service-navigation--inverse",
+                "serviceName": "Apply for a juggling license",
+                "serviceUrl": "#/",
+                "navigation": [
+                    {
+                        "href": "#/1",
+                        "text": "Navigation item 1"
+                    },
+                    {
+                        "href": "#/2",
+                        "text": "Navigation item 2",
+                        "active": true
+                    },
+                    {
+                        "href": "#/3",
+                        "text": "Navigation item 3"
+                    },
+                    {
+                        "href": "#/4",
+                        "text": "Navigation item 4"
+                    }
+                ]
+            },
+            "hidden": false,
+            "description": "Service navigation that appears between other areas of brand blue. Rebrand only.",
+            "previewLayoutModifiers": [
+                "inverse"
+            ],
+            "screenshot": false,
+            "html": "<section aria-label=\"Service information\" class=\"govuk-service-navigation govuk-service-navigation--inverse\"\ndata-module=\"govuk-service-navigation\"\n>\n      <div class=\"govuk-width-container\">\n\n    <div class=\"govuk-service-navigation__container\">\n      \n        <span class=\"govuk-service-navigation__service-name\">\n            <a href=\"#/\" class=\"govuk-service-navigation__link\">\n              Apply for a juggling license\n            </a>\n        </span>\n\n      \n        <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\">\n          <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n            Menu\n          </button>\n\n          <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n            \n              \n              <li class=\"govuk-service-navigation__item\">\n                  <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n                                    \nNavigation item 1\n                  </a>\n              </li>\n\n              \n              <li class=\"govuk-service-navigation__item govuk-service-navigation__item--active\">\n                  <a class=\"govuk-service-navigation__link\" href=\"#/2\" aria-current=\"true\">\n                                    \n                  <strong class=\"govuk-service-navigation__active-fallback\">Navigation item 2</strong>\n\n                  </a>\n              </li>\n\n              \n              <li class=\"govuk-service-navigation__item\">\n                  <a class=\"govuk-service-navigation__link\" href=\"#/3\">\n                                    \nNavigation item 3\n                  </a>\n              </li>\n\n              \n              <li class=\"govuk-service-navigation__item\">\n                  <a class=\"govuk-service-navigation__link\" href=\"#/4\">\n                                    \nNavigation item 4\n                  </a>\n              </li>\n\n            </ul>\n        </nav>\n    </div>\n\n    </div>\n\n  </section>"
+        },
         {
             "name": "with no options set",
             "options": {},

Action run for 6a1a125

Copy link
Contributor

@36degrees 36degrees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This currently looks right when the rebrand feature flag is not enabled, but incorrect when it is. I think this is likely because of the specificity of .govuk-template--rebranded .govuk-service-navigation

Would you mind updating the 'product page' full page example (possibly just when the brand feature flag is enabled…?) so we can see how it looks in situ?

@querkmachine querkmachine force-pushed the service-navigation-inverse branch from 178f064 to ec875c9 Compare June 5, 2025 14:21
@querkmachine
Copy link
Member Author

@36degrees D'oh, forgot to copy over the specificity-overriding bit when duplicating my spike from the DS website. Fixed now.

I've been assuming that this new variant is only expected to be available with the rebrand active, given it's intended to tie the new header background colour into a masthead below, but if we want it available pre-rebrand too, that becomes a more awkward kettle of fish.

@querkmachine querkmachine force-pushed the service-navigation-inverse branch from ec875c9 to b58ccd8 Compare June 5, 2025 16:23
@querkmachine querkmachine force-pushed the service-navigation-inverse branch from b58ccd8 to a1ce680 Compare June 6, 2025 10:11
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-6015 June 6, 2025 10:11 Inactive
@querkmachine querkmachine changed the title [WIP] Add inverse service navigation styles Add inverse variant to Service navigation component Jun 9, 2025
@querkmachine querkmachine added this to the [NEXT] milestone Jun 9, 2025
@querkmachine querkmachine force-pushed the service-navigation-inverse branch from a1ce680 to c28a7ee Compare June 10, 2025 09:48
@querkmachine querkmachine force-pushed the service-navigation-inverse branch from c28a7ee to 6a1a125 Compare June 10, 2025 10:12
@querkmachine querkmachine marked this pull request as ready for review June 10, 2025 11:02
@querkmachine querkmachine merged commit 5a8e928 into main Jun 10, 2025
49 checks passed
@querkmachine querkmachine deleted the service-navigation-inverse branch June 10, 2025 11:10
@36degrees
Copy link
Contributor

Realised this doesn't have a changelog entry – @querkmachine are you OK to draft something and raise another PR?

Aware we probably need to align the changelog with any potential guidance on usage.

This was referenced Jun 20, 2025
rossdowthwaite added a commit to ministryofjustice/hmpps-digital-prison-reporting-frontend that referenced this pull request Jul 22, 2025
![snyk-top-banner](https://res.cloudinary.com/snyk/image/upload/r-d/scm-platform/snyk-pull-requests/pr-banner-default.svg)


<h3>Snyk has created this PR to upgrade govuk-frontend from 5.10.1 to
5.11.0.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.

<hr/>


- The recommended version is **3 versions** ahead of your current
version.

- The recommended version was released **a month ago**.



<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>govuk-frontend</b></summary>
    <ul>
      <li>
        <b>5.11.0</b> - 2025-06-24
      </li>
      <li>
<b>5.11.0-internal.0</b> - <a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/releases/tag/v5.11.0-internal.0">2025-06-11</a></br><div">https://redirect.github.com/alphagov/govuk-frontend/releases/tag/v5.11.0-internal.0">2025-06-11</a></br><div
class="markdown-alert markdown-alert-caution"><p
class="markdown-alert-title"><svg class="octicon octicon-stop mr-2"
viewBox="0 0 16 16" version="1.1" width="16" height="16"
aria-hidden="true"><path d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0
.389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0
1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22
11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5
5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1
.75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1
1 0 0 1 0 2Z"></path></svg>Caution</p><p>This version must
<strong>not</strong> be used in production, only to help you prepare
ahead of time to the changes that will be brought by GOV.UK Frontend
5.11</p>
</div>
<p>To install this version with npm, run <code>npm install
[email protected]</code>. You can also find more
information about <a
href="https://github.com/%3Ca%20href="https://frontend.design-system.service.gov.uk/staying-up-to-date/#updating-to-the-latest-version" rel="nofollow">https://frontend.design-system.service.gov.uk/staying-up-to-date/#updating-to-the-latest-version"
rel="nofollow">how to stay up to date</a> in our documentation.</p>
<h2>New features</h2>
<h3>The Service navigation component no longer uses a menu on mobile for
a single link</h3>
<p>If you're using our Nunjucks macros, the Service navigation component
will no longer collapse the navigation behind a 'Menu' toggle if there
is only one navigation item.</p>
<p>You can control this behaviour using the new
<code>collapseNavigationOnMobile</code> Nunjucks option.</p>
<p>If you are not using our Nunjucks macros, you can recreate this
behaviour by omitting the 'Menu' <code>&lt;button&gt;</code> element if
there is only one navigation item.</p>
<p>This change was introduced in <a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/6016">https://redirect.github.com/alphagov/govuk-frontend/pull/6016"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/6016/hovercard">pull
request #6016: Don’t use menu for service nav with a single
link</a>.</p>
<h3>Added inverse styling to Service navigation for use on product
pages</h3>
<p>When the GOV.UK rebrand is enabled, you can now add the
<code>govuk-service-navigation--inverse</code> class to the Service
navigation component to use white links on a blue background.</p>
<p>This allows the rebranded GOV.UK header and Service navigation to
flow seamlessly with subsequent components that have a blue background,
as is common on <a href="https://github.com/%3Ca%20href="https://platforms.service.gov.uk/" rel="nofollow">https://platforms.service.gov.uk/"
rel="nofollow">GOV.UK Digital Service Platform</a> pages.</p>
<p>This change was made in <a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/6015">https://redirect.github.com/alphagov/govuk-frontend/pull/6015"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/6015/hovercard">pull
request #6015: Add inverse variant to Service navigation
component</a>.</p>
<h2>Deprecated features</h2>
<h3>Replace references to CSS custom properties for breakpoints</h3>
<p>We've renamed the CSS custom properties for breakpoints to simplify
the prefix from <code>--govuk-frontend</code> to just
<code>--govuk</code>.</p>
<table>
<thead>
<tr>
<th>Old name</th>
<th>New name</th>
</tr>
</thead>
<tbody>
<tr>
<td>--govuk-frontend-breakpoint-mobile</td>
<td>--govuk-breakpoint-mobile</td>
</tr>
<tr>
<td>--govuk-frontend-breakpoint-tablet</td>
<td>--govuk-breakpoint-tablet</td>
</tr>
<tr>
<td>--govuk-frontend-breakpoint-desktop</td>
<td>--govuk-breakpoint-desktop</td>
</tr>
</tbody>
</table>
<p>You can still use the old names, but we'll remove them in the next
breaking release (GOV.UK Frontend v6.0.0).</p>
<p>This change was introduced in <a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/6014">https://redirect.github.com/alphagov/govuk-frontend/pull/6014"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/6014/hovercard">pull
request #6014: Simplify prefix for breakpoint custom properties</a>.</p>
<h2>Fixes</h2>
<p>We've made fixes to GOV.UK Frontend in the following pull
requests:</p>
<ul>
<li><a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/6018">https://redirect.github.com/alphagov/govuk-frontend/pull/6018"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/6018/hovercard">#6018:
Fix layout of Service navigation in Edge when forced colours are
enabled</a></li>
<li><a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/6019">https://redirect.github.com/alphagov/govuk-frontend/pull/6019"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/6019/hovercard">#6019:
Fix service nav wrapper not filling available width</a>, thanks to <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/joelanman/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://github.com/%3Ca%20href="https://redirect.github.com/joelanman">@">https://redirect.github.com/joelanman">@ joelanman</a> for
reporting and fixing this issue</li>
</ul>
      </li>
      <li>
<b>5.10.2</b> - <a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/releases/tag/v5.10.2">2025-05-29</a></br><p>To">https://redirect.github.com/alphagov/govuk-frontend/releases/tag/v5.10.2">2025-05-29</a></br><p>To
install this version with npm, run <code>npm install
[email protected]</code>. You can also find more information about
<a
href="https://github.com/%3Ca%20href="https://frontend.design-system.service.gov.uk/staying-up-to-date/" rel="nofollow">https://frontend.design-system.service.gov.uk/staying-up-to-date/"
rel="nofollow">how to stay up to date</a> in our documentation.</p>
<h2>Fixes</h2>
<p>We've made fixes to GOV.UK Frontend in the following pull
requests:</p>
<ul>
<li><a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/5968">https://redirect.github.com/alphagov/govuk-frontend/pull/5968"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/5968/hovercard">#5968:
Apply header logo right padding only when menu button is
visible</a></li>
</ul>
      </li>
      <li>
<b>5.10.1</b> - <a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/releases/tag/v5.10.1">2025-05-15</a></br><p>To">https://redirect.github.com/alphagov/govuk-frontend/releases/tag/v5.10.1">2025-05-15</a></br><p>To
install this version with npm, run <code>npm install
[email protected]</code>. You can also find more information about
<a
href="https://github.com/%3Ca%20href="https://frontend.design-system.service.gov.uk/staying-up-to-date/" rel="nofollow">https://frontend.design-system.service.gov.uk/staying-up-to-date/"
rel="nofollow">how to stay up to date</a> in our documentation.</p>
<h2>Brand refresh fixes</h2>
<p>We’ve fixed the colour of the dot in the refreshed GOV.UK logo as
well as made some fixes to the implementation of the brand refresh in
GOV.UK Frontend. We did this in the following pull requests:</p>
<ul>
<li><a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/5962">https://redirect.github.com/alphagov/govuk-frontend/pull/5962"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/5962/hovercard">#5962:
Fix colour of refreshed GOV.UK logo's dot</a></li>
<li><a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/5905">https://redirect.github.com/alphagov/govuk-frontend/pull/5905"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/5905/hovercard">#5905:
Fix unnecessary whitespace after logo</a></li>
<li><a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/5920">https://redirect.github.com/alphagov/govuk-frontend/pull/5920"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/5920/hovercard">#5920:
Fix transparency around edge of rebranded favicon.ico</a>, thanks to <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/matteason/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://github.com/%3Ca%20href="https://redirect.github.com/matteason">@">https://redirect.github.com/matteason">@ matteason</a> for
reporting and fixing this issue</li>
</ul>
<h2>Other fixes</h2>
<p>We've made fixes to GOV.UK Frontend in the following pull
requests:</p>
<ul>
<li><a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/5908">https://redirect.github.com/alphagov/govuk-frontend/pull/5908"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/5908/hovercard">#5908:
Fix footer licence link reflowing on focus in Safari</a></li>
<li><a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/5919">https://redirect.github.com/alphagov/govuk-frontend/pull/5919"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/5919/hovercard">#5919:
Update deprecation warning message to make it clearer how to update to
new organisation colour palette</a></li>
<li><a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/5953">https://redirect.github.com/alphagov/govuk-frontend/pull/5953"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/5953/hovercard">#5953:
Move organisation legacy colour palette warning into the
govuk-organisation-colour mixin</a></li>
<li><a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/5918">https://redirect.github.com/alphagov/govuk-frontend/pull/5918"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/5918/hovercard">#5918:
Fix <code>govuk-font-size</code> mixin outputting the wrong font
properties for size 14 text when compiled using libsass</a>, thanks to
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/oscarduignan/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://github.com/%3Ca%20href="https://redirect.github.com/oscarduignan">@">https://redirect.github.com/oscarduignan">@ oscarduignan</a> for
reporting this issue</li>
<li><a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/pull/5896">https://redirect.github.com/alphagov/govuk-frontend/pull/5896"
data-hovercard-type="pull_request"
data-hovercard-url="/alphagov/govuk-frontend/pull/5896/hovercard">#5896:
Fix character count not having error border colour when rendered with
error message</a>, thanks to <a class="user-mention notranslate"
data-hovercard-type="user" data-hovercard-url="/users/gunjam/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://github.com/%3Ca%20href="https://redirect.github.com/gunjam">@">https://redirect.github.com/gunjam">@ gunjam</a> for fixing this
issue</li>
</ul>
      </li>
    </ul>
from <a
href="https://github.com/%3Ca%20href="https://redirect.github.com/alphagov/govuk-frontend/releases">govuk-frontend">https://redirect.github.com/alphagov/govuk-frontend/releases">govuk-frontend
GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img
src="https://github.com/%3Ca%20href="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiIxNmMxNGUxOC1jZmUzLTRmZmMtOTMxZC00Y2I1YzBmNDhjNTAiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjE2YzE0ZTE4LWNmZTMtNGZmYy05MzFkLTRjYjVjMGY0OGM1MCJ9fQ==" rel="nofollow">https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiIxNmMxNGUxOC1jZmUzLTRmZmMtOTMxZC00Y2I1YzBmNDhjNTAiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjE2YzE0ZTE4LWNmZTMtNGZmYy05MzFkLTRjYjVjMGY0OGM1MCJ9fQ=="
width="0" height="0"/>

> - 🧐 [View latest project
report](https://app.snyk.io/org/legal-aid-agency/project/fd5c57c0-0aee-40df-9218-f283fc21ce9a?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template)
> - 🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/legal-aid-agency/project/fd5c57c0-0aee-40df-9218-f283fc21ce9a/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/legal-aid-agency/project/fd5c57c0-0aee-40df-9218-f283fc21ce9a/settings/integration?pkg&#x3D;govuk-frontend&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: #
'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"govuk-frontend","from":"5.10.1","to":"5.11.0"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"16c14e18-cfe3-4ffc-931d-4cb5c0f48c50","prPublicId":"16c14e18-cfe3-4ffc-931d-4cb5c0f48c50","packageManager":"npm","priorityScoreList":[],"projectPublicId":"fd5c57c0-0aee-40df-9218-f283fc21ce9a","projectUrl":"https://app.snyk.io/org/legal-aid-agency/project/fd5c57c0-0aee-40df-9218-f283fc21ce9a?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":3,"publishedDate":"2025-06-24T13:03:47.324Z"},"vulns":[]}'

Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: Ross Dowthwaite <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants