Skip to content

Commit f8f3097

Browse files
committed
Update GOV.UK Frontend to v6 and CCS Frontend v3
1 parent f866b07 commit f8f3097

File tree

10 files changed

+42
-22
lines changed

10 files changed

+42
-22
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
- Update GOV.UK Frontend and CCS Frontend ([PR 1335](https://github.com/Crown-Commercial-Service/pmp-idam/pull/1335))
1717
- Updated content that references CCS to now reference GCA ([PR 1357](https://github.com/Crown-Commercial-Service/pmp-idam/pull/1357))
18+
- Update GOV.UK Frontend to v6 and CCS Frontend v3 ([PR 1393](https://github.com/Crown-Commercial-Service/pmp-idam/pull/1393))
1819

1920
## [3.2.1] - 2026-01-05
2021

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ gem 'aws-sdk-ssm', '~> 1.211.0'
5858
gem 'rack-attack', '~> 6.8.0'
5959

6060
# GOV.UK Frontend helpers
61-
gem 'ccs-frontend_helpers', '~> 3.5.0'
61+
gem 'ccs-frontend_helpers', '~> 4.0.0'
6262

6363
group :development, :test do
6464
# Call 'byebug' anywhere in the code to stop execution and get a debugger console

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ GEM
121121
builder (3.3.0)
122122
byebug (13.0.0)
123123
reline (>= 0.6.0)
124-
ccs-frontend_helpers (3.5.0)
124+
ccs-frontend_helpers (4.0.0)
125125
rails (>= 7.2)
126126
concurrent-ruby (1.3.6)
127127
connection_pool (3.0.2)
@@ -453,7 +453,7 @@ DEPENDENCIES
453453
brakeman (~> 8.0.4)
454454
byebug (~> 13.0.0)
455455
canonical-rails!
456-
ccs-frontend_helpers (~> 3.5.0)
456+
ccs-frontend_helpers (~> 4.0.0)
457457
cssbundling-rails (~> 1.4)
458458
csv (~> 3.3.5)
459459
dotenv-rails (~> 3.2.0)

app/assets/stylesheets/application.sass.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@import "settings/all";
33

44
// Import the ccs-frontend and govuk-frontend assets
5-
@import "ccs-frontend/dist/ccs/all";
5+
@import "ccs-frontend/dist/ccs/index";
66

77
// Import the accessible autocomplete styles
88
@import "accessible-autocomplete/dist/accessible-autocomplete.min";

app/assets/stylesheets/ccs/_ccs.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ abbr[title] {
3030

3131
// Notification banner
3232
.govuk-notification-banner--error {
33-
border-color: $govuk-error-colour;
33+
border-color: govuk-functional-colour(error);
3434

35-
background-color: $govuk-error-colour;
35+
background-color: govuk-functional-colour(error);
3636
}

app/views/layouts/application.html.erb

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,24 @@
3737
<% end -%>
3838

3939
<div id="wrapper">
40+
<%= render partial: '/layouts/cookie-banner' unless cookie_preferences_settings['settings_viewed'] || controller.action_name == 'cookie_settings' %>
41+
4042
<%= govuk_skip_link('Skip to main content', '#main-content') %>
4143

42-
<%= render partial: '/layouts/cookie-banner' unless cookie_preferences_settings['settings_viewed'] || controller.action_name == 'cookie_settings' %>
43-
<%= render partial: '/layouts/header' %>
44-
<%= render partial: '/layouts/service-navigation' %>
44+
<header class="govuk-template__header">
45+
<%= render partial: '/layouts/header' %>
46+
<%= render partial: '/layouts/service-navigation' %>
47+
</header>
4548

4649
<div class="govuk-width-container">
4750
<main id="main-content" class="govuk-main-wrapper" role="main">
4851
<%= yield %>
4952
</main>
5053
</div>
5154

52-
<%= render partial: '/layouts/footer' %>
55+
<footer class="govuk-template__footer">
56+
<%= render partial: '/layouts/footer' %>
57+
</footer>
5358
</div>
5459
</body>
5560

app/views/layouts/error.html.erb

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,14 @@
3737
<% end -%>
3838

3939
<div class="error-content">
40+
<%= render partial: '/layouts/cookie-banner' unless cookie_preferences_settings['settings_viewed'] || controller.action_name == 'cookie_settings' %>
41+
4042
<%= govuk_skip_link('Skip to main content', '#main-content') %>
4143

42-
<%= render partial: '/layouts/cookie-banner' unless cookie_preferences_settings['settings_viewed'] || controller.action_name == 'cookie_settings' %>
43-
<%= render partial: '/layouts/header' %>
44-
<%= render partial: '/layouts/service-navigation' %>
44+
<header class="govuk-template__header">
45+
<%= render partial: '/layouts/header' %>
46+
<%= render partial: '/layouts/service-navigation' %>
47+
</header>
4548

4649
<div class="govuk-width-container">
4750
<main id="main-content" class="govuk-main-wrapper" role="main">
@@ -50,7 +53,9 @@
5053
</div>
5154
</div>
5255

53-
<%= render partial: '/layouts/footer' %>
56+
<footer class="govuk-template__footer">
57+
<%= render partial: '/layouts/footer' %>
58+
</footer>
5459
</body>
5560

5661
</html>

bin/dev

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
#!/usr/bin/env ruby
2-
exec "./bin/rails", "server", *ARGV
1+
#!/usr/bin/env sh
2+
3+
if gem list --no-installed --exact --silent foreman; then
4+
echo "Installing foreman..."
5+
gem install foreman
6+
fi
7+
8+
# Default to port 3000 if not specified
9+
export PORT="${PORT:-3000}"
10+
11+
exec foreman start -f Procfile.dev --env /dev/null "$@"

bun.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"@types/node": "^25.5.0",
99
"@types/rails__request.js": "^0.0.1",
1010
"accessible-autocomplete": "^3.0.1",
11-
"ccs-frontend": "^2.5.0",
12-
"govuk-frontend": "^5.14.0",
11+
"ccs-frontend": "^3.1.1",
12+
"govuk-frontend": "^6.1.0",
1313
"jquery": "^4.0.0",
1414
"js-cookie": "^3.0.5",
1515
"sass": "^1.98.0",

0 commit comments

Comments
 (0)