Skip to content

Commit 0bb2427

Browse files
committed
Changes for GOV.UK Frontend 6.0.0
- Remove references to the `$govuk-new-typography-scale` feature flag - Use the `govuk-colour` function to access tints and shades - Update any light blue, turquoise or pink tags - Use `govuk-functional-colour` to access functional colours - Remove rebrand switch from template - Move rebranded assets
1 parent 9cba3de commit 0bb2427

31 files changed

Lines changed: 44 additions & 45 deletions

File tree

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 {

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
}

app/components/task_list_component/view.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def get_status_colour
6464

6565
{
6666
completed: nil,
67-
in_progress: "light-blue",
67+
in_progress: "teal",
6868
cannot_start: nil,
6969
not_started: "blue",
7070
optional: "grey",

app/frontend/entrypoints/application.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
$govuk-assets-path: "@govuk/assets/";
22
$govuk-global-styles: true;
3-
$govuk-new-typography-scale: true;
43

54
@import "pkg:govuk-frontend";
65
@import "pkg:dfe-autocomplete";

app/frontend/styles/_app_filter.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
form {
33
margin: govuk-spacing(3);
44
padding: govuk-spacing(3) 0;
5-
background: govuk-colour("light-grey");
5+
background: govuk-colour("black", $variant: "tint-95");
66
}
77

88
.govuk-hint {
9-
color: $govuk-text-colour;
9+
color: govuk-functional-colour(text);
1010
}
1111

1212
.autocomplete__input {

0 commit comments

Comments
 (0)