Skip to content

Commit 214b93d

Browse files
authored
Merge pull request #2626 from alphagov/ldeb-govuk-frontend-6
Upgrade to GOV.UK Frontend 6.0.0
2 parents 433fe6a + 0bb2427 commit 214b93d

File tree

44 files changed

+62
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+62
-101
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ gem "bootsnap", require: false
4141
gem "vite_rails"
4242

4343
# For GOV.UK branding
44-
gem "govuk-components"
45-
gem "govuk_design_system_formbuilder"
44+
gem "govuk-components", "~> 6"
45+
gem "govuk_design_system_formbuilder", "~> 6"
4646

4747
# The autocomplete component is not currently published as a gem, if changing
4848
# the hash, also change in package.json

Gemfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,11 @@ GEM
242242
rake (>= 13)
243243
googleapis-common-protos-types (1.22.0)
244244
google-protobuf (~> 4.26)
245-
govuk-components (5.13.1)
245+
govuk-components (6.0.0)
246246
html-attributes-utils (~> 1.0.0, >= 1.0.0)
247247
pagy (>= 6, < 10)
248-
view_component (>= 4.0, < 4.2)
249-
govuk_design_system_formbuilder (5.13.0)
248+
view_component (>= 4.0, < 4.3)
249+
govuk_design_system_formbuilder (6.0.0)
250250
actionview (>= 6.1)
251251
activemodel (>= 6.1)
252252
activesupport (>= 6.1)
@@ -822,9 +822,9 @@ DEPENDENCIES
822822
factory_bot_rails
823823
faker
824824
gds-sso
825-
govuk-components
825+
govuk-components (~> 6)
826826
govuk-forms-markdown!
827-
govuk_design_system_formbuilder
827+
govuk_design_system_formbuilder (~> 6)
828828
govuk_notify_rails
829829
i18n-tasks (~> 1.1.2)
830830
lograge
@@ -933,9 +933,9 @@ CHECKSUMS
933933
google-protobuf (4.33.4-x86_64-linux-gnu) sha256=a8cff953d742bc804ece78bd96e82d88cf65a7d8c1910e045359e2f53074e55d
934934
google-protobuf (4.33.4-x86_64-linux-musl) sha256=265e6e5bbcc0ba1367268739e31c4cc84ff310b56e8d738d2a3245b5cccfc2e7
935935
googleapis-common-protos-types (1.22.0) sha256=f97492b77bd6da0018c860d5004f512fe7cd165554d7019a8f4df6a56fbfc4c7
936-
govuk-components (5.13.1) sha256=74808d8188a7de2c5e83e5a829c5f8ac3851df27f82410a4a2444cf53c24cfe5
936+
govuk-components (6.0.0) sha256=38feaed165ea2afe4c6f9f68bfcdfdb56426be133d2402912817e21830cbce81
937937
govuk-forms-markdown (0.8.0)
938-
govuk_design_system_formbuilder (5.13.0) sha256=126ff4af70b36f06395e8f4f09d399944bcc10e9a41c2ff7d7773e81e92ca885
938+
govuk_design_system_formbuilder (6.0.0) sha256=30025c64e05b71018a48b8618e6e9501efe4bf049d5e127d90e2fd48c0b60ea8
939939
govuk_notify_rails (3.0.0) sha256=e0e1b8b0a7c47f90963034f290fb2982652aa8051a733c25c178680d44f2d7aa
940940
hashdiff (1.2.1) sha256=9c079dbc513dfc8833ab59c0c2d8f230fa28499cc5efb4b8dd276cf931457cd1
941941
hashie (5.1.0) sha256=c266471896f323c446ea8207f8ffac985d2718df0a0ba98651a3057096ca3870

app/components/form_status_tag_component/view.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def initialize(status: :draft)
88
def status_colour
99
{
1010
draft: "yellow",
11-
live: "turquoise",
11+
live: "teal",
1212
archived: "orange",
1313
}[@status]
1414
end

app/components/header_component/_index.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
}
1313

1414
.govuk-header {
15-
&.app-header--pink {
16-
border-top: 10px solid govuk-colour("pink");
15+
&.app-header--magenta {
16+
border-top: 10px solid govuk-colour("magenta");
1717
}
1818

19-
&.app-header--turquoise {
20-
border-top: 10px solid govuk-colour("turquoise");
19+
&.app-header--teal {
20+
border-top: 10px solid govuk-colour("teal");
2121
}
2222

2323
&.app-header--yellow {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<%= govuk_header classes: ["govuk-header--full-width-border", "app-header", app_header_class_for_environment] do |header| %>
2-
<%= header.with_product_name(name: "#{t("header.product_name")} #{render(environment_tag)}".html_safe, classes: ["app-header__product-name"]) %>
2+
<% header.with_product_name(name: "#{t("header.product_name")} #{render(environment_tag)}".html_safe, classes: ["app-header__product-name"]) %>
33
<% end %>

app/components/header_component/view.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def app_header_class_for_environment
2222
def colour_for_environment
2323
case environment_name
2424
when "Local"
25-
"pink"
25+
"magenta"
2626
when "Development"
27-
"turquoise"
27+
"teal"
2828
when "Staging"
2929
"yellow"
3030
else

app/components/markdown_editor_component/_index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}
44

55
.app-markdown-editor__preview-area {
6-
border: 2px solid $govuk-border-colour;
6+
border: 2px solid govuk-functional-colour(border);
77
padding: 30px;
88
margin: 0 0 1em;
99
}
@@ -44,7 +44,7 @@
4444

4545
&:focus-within {
4646
box-shadow: inset 0 0 0 2px;
47-
outline: 3px solid $govuk-focus-colour;
47+
outline: 3px solid govuk-functional-colour(focus);
4848
outline-offset: 0;
4949
}
5050
}

app/components/metrics_summary_component/_index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
flex-flow: column nowrap;
2222
justify-content: space-between;
2323

24-
border-top: $govuk-border-width solid $govuk-border-colour;
25-
border-bottom: $govuk-border-width solid $govuk-border-colour;
24+
border-top: $govuk-border-width solid govuk-functional-colour(border);
25+
border-bottom: $govuk-border-width solid govuk-functional-colour(border);
2626
}
2727
}
2828
}

app/components/page_list_component/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222

2323
.app-page_list__route-text--error {
2424
@include govuk-responsive-margin(2, "bottom");
25-
color: $govuk-error-colour;
25+
color: govuk-functional-colour(error);
2626
font-weight: 700;
2727
}

app/components/scrolling_wrapper_component/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}
44

55
.app-scrolling-wrapper:focus-visible {
6-
outline: $govuk-focus-width solid $govuk-focus-colour;
6+
outline: $govuk-focus-width solid govuk-functional-colour(focus);
77
outline-offset: $govuk-focus-width;
88
box-shadow: 0 0 0 $govuk-focus-width;
99
}

0 commit comments

Comments
 (0)