-
Notifications
You must be signed in to change notification settings - Fork 348
Release 6.0.0-beta.2 #6551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Release 6.0.0-beta.2 #6551
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JavaScript changes to GitHub releasediff --git a/dist/govuk-frontend-6.0.0-beta.1.min.js b/dist/govuk-frontend-6.0.0-beta.2.min.js
index 7d740897f..f2801f90d 100644
--- a/dist/govuk-frontend-6.0.0-beta.1.min.js
+++ b/dist/govuk-frontend-6.0.0-beta.2.min.js
@@ -1,4 +1,4 @@
-const version = "6.0.0-beta.1";
+const version = "6.0.0-beta.2";
function getBreakpoint(t) {
const e = `--govuk-breakpoint-${t}`;
@@ -984,13 +984,21 @@ class ServiceNavigation extends Component {
this.mql = window.matchMedia(`(min-width: ${t.value})`), "addEventListener" in this.mql ? this.mql.addEventListener("change", (() => this.checkMode())) : this.mql.addListener((() => this.checkMode())), this.checkMode()
}
checkMode() {
- this.mql && this.$menu && this.$menuButton && (this.mql.matches ? (this.$menu.removeAttribute("hidden"), this.$menuButton.setAttribute("hidden", "")) : (this.$menuButton.removeAttribute("hidden"), this.$menuButton.setAttribute("aria-expanded", this.menuIsOpen.toString()), this.menuIsOpen ? this.$menu.removeAttribute("hidden") : this.$menu.setAttribute("hidden", "")))
+ this.mql && this.$menu && this.$menuButton && (this.mql.matches ? (this.$menu.removeAttribute("hidden"), function(t, e) {
+ for (const i in e) t.setAttribute(i, e[i])
+ }(this.$menuButton, e)) : (! function(t, e) {
+ for (const i of e) t.removeAttribute(i)
+ }(this.$menuButton, Object.keys(e)), this.$menuButton.setAttribute("aria-expanded", this.menuIsOpen.toString()), this.menuIsOpen ? this.$menu.removeAttribute("hidden") : this.$menu.setAttribute("hidden", "")))
}
handleMenuButtonClick() {
this.menuIsOpen = !this.menuIsOpen, this.checkMode()
}
}
ServiceNavigation.moduleName = "govuk-service-navigation";
+const e = {
+ hidden: "",
+ "aria-hidden": "true"
+};
class SkipLink extends Component {
constructor(t) {
var e;
@@ -1240,4 +1248,4 @@ export {
initAll,
isSupported,
version
-}; //# sourceMappingURL=govuk-frontend-6.0.0-beta.1.min.js.map
\ No newline at end of file
+}; //# sourceMappingURL=govuk-frontend-6.0.0-beta.2.min.js.map
\ No newline at end of file
Action run for bbeb333 |
Stylesheets changes to GitHub releasediff --git a/dist/govuk-frontend-6.0.0-beta.1.min.css b/dist/govuk-frontend-6.0.0-beta.2.min.css
index d79e81952..03454b8f1 100644
--- a/dist/govuk-frontend-6.0.0-beta.1.min.css
+++ b/dist/govuk-frontend-6.0.0-beta.2.min.css
@@ -1,7 +1,7 @@
@charset "UTF-8";
:root {
- --govuk-frontend-version: "6.0.0-beta.1";
+ --govuk-frontend-version: "6.0.0-beta.2";
--govuk-breakpoint-mobile: 20rem;
--govuk-breakpoint-tablet: 40.0625rem;
--govuk-breakpoint-desktop: 48.0625rem;
@@ -2700,7 +2700,8 @@ screen and (forced-colors:active) {
.govuk-date-input__item {
display: inline-block;
margin-right: 20px;
- margin-bottom: 0
+ margin-bottom: 0;
+ vertical-align: bottom
}
.govuk-date-input__label {
@@ -5242,6 +5243,12 @@ screen and (forced-colors:active) {
background-color: var(--_govuk-focus-colour, #fd0)
}
+@media (forced-colors:active) {
+ .govuk-skip-link:focus {
+ outline-offset: -3px
+ }
+}
+
.govuk-skip-link-focused-element:focus {
outline: none
}
@@ -7526,4 +7533,4 @@ screen and (-ms-high-contrast:active) {
}
}
-/*# sourceMappingURL=govuk-frontend-6.0.0-beta.1.min.css.map */
\ No newline at end of file
+/*# sourceMappingURL=govuk-frontend-6.0.0-beta.2.min.css.map */
\ No newline at end of file
Action run for bbeb333 |
Other changes to GitHub releasediff --git a/dist/VERSION.txt b/dist/VERSION.txt
index 1cd446ae8..7bdb82666 100644
--- a/dist/VERSION.txt
+++ b/dist/VERSION.txt
@@ -1 +1 @@
-6.0.0-beta.1
+6.0.0-beta.2
Action run for bbeb333 |
owenatgov
previously approved these changes
Dec 18, 2025
📋 StatsNo changes to any distributed file sizes! Action run for bbeb333 |
CHANGELOG.md
Outdated
| #### Use the `container` block instead of the `main` block to replace the width container | ||
|
|
||
| We've reduced the scope of the `main` block to only replace the `<main>` element, | ||
| rather than the whole `<div class="govuk-width-container"> element. |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
| rather than the whole `<div class="govuk-width-container">` element. |
We missed an unclosed backtick in the changelog which we just need to update, then I can reapprove
owenatgov
approved these changes
Dec 18, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking changes
Update Nunjucks blocks around the GOV.UK header
We've changed the page structure around the header to separate the header element (
<header>) from the GOV.UK header component. This lets you include other components, such as the Service navigation and Phase banner components, within the header element of each page.You’ll need to follow different instructions to upgrade, depending on how you create the page headers in your service. In all cases, you should make sure your page includes a single
<header>element after you’ve made the changes.If you use GOV.UK Frontend's template and override the
govukHeadercomponent, update references to theheaderNunjucks block to usegovukHeaderinstead.If you do not use GOV.UK Frontend's template but use the
govukHeadercomponent, update your template to include a<header>element around the component.If you do not use the
headerNunjucks block at any point, or you're only using the block to remove it, you do not need to change anything.If you do not use Nunjucks, change the existing GOV.UK header to a
<div>element and wrap it, along with any other header components, with a<header>element.We made this change in pull request #6536: Refactor heading to detach element from component.
Use the
containerblock instead of themainblock to replace the width containerWe've reduced the scope of the
mainblock to only replace the<main>element,rather than the whole `
If you’re using the
mainblock, use the newcontainerblock instead.We made this change in pull request #6538: Make Page template options besides header and footer follow conventions.
Update Nunjucks blocks around the GOV.UK footer
We've changed the page structure around the footer to separate the
<footer>element from the GOV.UK footer component. This lets you include other components within the footer element (<footer>) of each page.You’ll need to follow different instructions to upgrade depending on how you create the page footers in your service. In all cases, you should make sure your page includes a single
<footer>element after you’ve made the changes.If you use GOV.UK Frontend's template and override the
govukFootercomponent, update references to thefooterNunjucks block to usegovukFooterinstead.If you do not use GOV.UK Frontend's template but use the
govukFootercomponent, update your template to include a<footer>element around the component.If you do not use the
footerNunjucks block at any point, or you're only using the block in order to remove it, you do not need to change anything.If you do not use Nunjucks, change the existing GOV.UK footer to a
<div>element and wrap it with a<footer>element.We made this change in pull request #6537: Refactor footer to detach element from component.
New features
Customise the template's
<header>elementIf you use Nunjucks, you can customise the appearance and content of the template's
<header>element with new blocks and variables.New variables:
headerClassesapplies custom classes to the elementheaderAttributesapplies custom HTML attributes to the elementNew Nunjucks blocks:
headerStartinserts HTML immediately after the element's opening tag, andheaderEndinserts HTML immediately before the element's closing taggovukHeaderlets you customise thegovukHeadercomponent without affecting other parts of the headerWe made this change in pull request #6536: Refactor heading to detach element from component.
Easily include Service navigation on your page
We've added new ways to include the Service navigation component on a page when using GOV.UK Frontend's Nunjucks template.
If you set the
serviceNamevariable, the page template will add the Service navigation component to the<header>element and show the service name. You can also set theserviceUrlvariable to provide a link for the service name.To help you make further customisations, we've added a
govukServiceNavigationNunjucks block to override the default component.We made this change in pull request #6541: Add service navigation block to template.
Customise the
<div class="govuk-width-container">elementWe've added new variables and blocks to allow you to further customise the
<div class="govuk-width-container">element.New variables:
containerAttributesapplies custom HTML attributes to the elementNew blocks
containerStartinserts HTML immediately after the element's opening tagcontainerEndinserts HTML immediately before the element's closing tagWe made this change in pull request #6538: Make Page template options besides header and footer follow conventions.
Use the
mainAttributesvariable to add attributes to the<main>elementWe've added a new
mainAttributesvariable to apply custom HTML attributes to the<main>element.We made this change in pull request #6538: Make Page template options besides header and footer follow conventions.
Customise the template's
<footer>elementIf you use Nunjucks, you can customise the appearance and content of the template's
<footer>element with new blocks and variables.New variables:
footerClassesapplies custom classes to the elementfooterAttributesapplies custom HTML attributes to the elementNew Nunjucks blocks:
footerStartinserts HTML immediately after the element's opening tagfooterEndinserts HTML immediately before the element's closing taggovukFooterlets you customise thegovukFootercomponent without affecting other parts of the footerWe made this change in pull request #6537: Refactor footer to detach element from component.
Recommended changes
Use the
govukSkipLinkblock instead ofskipLinkWe're deprecating the
skipLinkblock and replacing it with agovukSkipLinkblock so all blocks replacing GOV.UK Frontend elements have the same name as the component's macro.We made this change in pull request #6538: Make Page template options besides header and footer follow conventions.
Use the
containerStartblock instead ofbeforeContentWe're deprecating the
beforeContentblock and replacing it with acontainerStartblock so all blocks adding content at the start of an element are named...Startto make its name better match what it does.We made this change in pull request #6538: Make Page template options besides header and footer follow conventions.
Fixes
Add
aria-hidden="true"to the Service navigation's menu toggleIf you do not use Nunjucks macros to generate your components' HTML, add an
aria-hidden="true"attribute to the hidden<button>element of the Service navigation component.The VoiceOver screen reader software for macOS and iPadOS contains bugs that make the button accessible to VoiceOver users, even if the button has a
hiddenattribute. Adding thearia-hidden="true"attribute means the button will remain hidden for VoiceOver users.We made this change in pull request #6467: Fix VoiceOver access to
hiddenService Navigation menu button.Other fixes
We've made fixes to GOV.UK Frontend in the following pull requests:
attributesvalues to prevent double escaping – thanks to @colinrotherham for fixing this issue