Skip to content

Conversation

@querkmachine
Copy link
Member

These properties were renamed to begin with --govuk-breakpoint in 5.11.0.

Closes #6022.

@querkmachine querkmachine self-assigned this Oct 31, 2025
@querkmachine querkmachine force-pushed the remove-old-breakpoint-properties branch from d125e1b to 973a54e Compare October 31, 2025 13:36
@github-actions
Copy link

github-actions bot commented Oct 31, 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 a44f66ab5..f4978c50a 100644
--- a/packages/govuk-frontend/dist/govuk/govuk-frontend.min.css
+++ b/packages/govuk-frontend/dist/govuk/govuk-frontend.min.css
@@ -3,11 +3,8 @@
 :root {
     --govuk-frontend-version: "development";
     --govuk-breakpoint-mobile: 20rem;
-    --govuk-frontend-breakpoint-mobile: var(--govuk-breakpoint-mobile);
     --govuk-breakpoint-tablet: 40.0625rem;
-    --govuk-frontend-breakpoint-tablet: var(--govuk-breakpoint-tablet);
-    --govuk-breakpoint-desktop: 48.0625rem;
-    --govuk-frontend-breakpoint-desktop: var(--govuk-breakpoint-desktop)
+    --govuk-breakpoint-desktop: 48.0625rem
 }
 
 .govuk-link {

Action run for 352eeac

@github-actions
Copy link

github-actions bot commented Oct 31, 2025

Other changes to npm package

diff --git a/packages/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss b/packages/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss
index 6b9136d55..cd5e60fa0 100644
--- a/packages/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss
+++ b/packages/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss
@@ -6,9 +6,6 @@
   // CSS custom property for each breakpoint
   @each $name, $value in $govuk-breakpoints {
     --govuk-breakpoint-#{$name}: #{govuk-px-to-rem($value)};
-
-    // Deprecated, use `--govuk-breakpoint-[name]` instead
-    --govuk-frontend-breakpoint-#{$name}: var(--govuk-breakpoint-#{$name});
   }
 }
 

Action run for 352eeac

@github-actions
Copy link

github-actions bot commented Oct 31, 2025

📋 Stats

File sizes

File Size Percentage change
dist/govuk-frontend-development.min.css 128.29 KiB -0.2%
packages/govuk-frontend/dist/govuk/govuk-frontend.min.css 128.28 KiB -0.2%

No changes to module sizes.


Action run for 352eeac

@querkmachine querkmachine marked this pull request as ready for review October 31, 2025 13:58
Copy link
Contributor

@owenatgov owenatgov left a comment

Choose a reason for hiding this comment

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

Code looks grand. Changelog review next

These were renamed to begin --govuk-breakpoint in 5.11.0 and the old names deprecated.

Co-authored-by: seaemsi <[email protected]>
@querkmachine querkmachine force-pushed the remove-old-breakpoint-properties branch from 973a54e to 352eeac Compare November 3, 2025 11:23
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-6385 November 3, 2025 11:24 Inactive
@querkmachine querkmachine merged commit 3def5de into main Nov 3, 2025
45 checks passed
@querkmachine querkmachine deleted the remove-old-breakpoint-properties branch November 3, 2025 11:32
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.

Remove deprecated --govuk-frontend prefixed breakpoint custom properties

5 participants