govuk_publishing_components 28.8.0 → 28.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +2 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +102 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +1 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +2 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_cards.scss +4 -0
- data/app/models/govuk_publishing_components/component_docs.rb +4 -1
- data/app/views/govuk_publishing_components/components/_cards.html.erb +62 -0
- data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/contextual_sidebar/{_brexit_cta.html.erb → _ukraine_cta.html.erb} +6 -6
- data/app/views/govuk_publishing_components/components/docs/cards.yml +139 -0
- data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +12 -21
- data/config/locales/ar.yml +4 -0
- data/config/locales/az.yml +4 -0
- data/config/locales/be.yml +4 -0
- data/config/locales/bg.yml +4 -0
- data/config/locales/bn.yml +4 -0
- data/config/locales/cs.yml +4 -0
- data/config/locales/cy.yml +4 -0
- data/config/locales/da.yml +4 -0
- data/config/locales/de.yml +4 -0
- data/config/locales/dr.yml +4 -0
- data/config/locales/el.yml +4 -0
- data/config/locales/en.yml +6 -2
- data/config/locales/es-419.yml +4 -0
- data/config/locales/es.yml +4 -0
- data/config/locales/et.yml +4 -0
- data/config/locales/fa.yml +4 -0
- data/config/locales/fi.yml +4 -0
- data/config/locales/fr.yml +4 -0
- data/config/locales/gd.yml +4 -0
- data/config/locales/gu.yml +4 -0
- data/config/locales/he.yml +4 -0
- data/config/locales/hi.yml +4 -0
- data/config/locales/hr.yml +4 -0
- data/config/locales/hu.yml +4 -0
- data/config/locales/hy.yml +4 -0
- data/config/locales/id.yml +4 -0
- data/config/locales/is.yml +4 -0
- data/config/locales/it.yml +4 -0
- data/config/locales/ja.yml +4 -0
- data/config/locales/ka.yml +4 -0
- data/config/locales/kk.yml +4 -0
- data/config/locales/ko.yml +4 -0
- data/config/locales/lt.yml +4 -0
- data/config/locales/lv.yml +4 -0
- data/config/locales/ms.yml +4 -0
- data/config/locales/mt.yml +4 -0
- data/config/locales/nl.yml +4 -0
- data/config/locales/no.yml +4 -0
- data/config/locales/pa-pk.yml +4 -0
- data/config/locales/pa.yml +4 -0
- data/config/locales/pl.yml +4 -0
- data/config/locales/ps.yml +4 -0
- data/config/locales/pt.yml +4 -0
- data/config/locales/ro.yml +4 -0
- data/config/locales/ru.yml +4 -0
- data/config/locales/si.yml +4 -0
- data/config/locales/sk.yml +4 -0
- data/config/locales/sl.yml +4 -0
- data/config/locales/so.yml +4 -0
- data/config/locales/sq.yml +4 -0
- data/config/locales/sr.yml +4 -0
- data/config/locales/sv.yml +4 -0
- data/config/locales/sw.yml +4 -0
- data/config/locales/ta.yml +4 -0
- data/config/locales/th.yml +4 -0
- data/config/locales/tk.yml +4 -0
- data/config/locales/tr.yml +4 -0
- data/config/locales/uk.yml +4 -0
- data/config/locales/ur.yml +4 -0
- data/config/locales/uz.yml +4 -0
- data/config/locales/vi.yml +4 -0
- data/config/locales/zh-hk.yml +4 -0
- data/config/locales/zh-tw.yml +4 -0
- data/config/locales/zh.yml +4 -0
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +16 -45
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +7 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c3bd6215882051b9c863a3b252cdb8163820babf43ddbc6a8fa833c0da5f5b1
|
4
|
+
data.tar.gz: 552d3420a3ccf2264bfd6a9a8304c6d24d8eb2a24306daab0b1b2d3998df7309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2979878f87bb5ad5dd9daf50a81aa7fe4baeab0569d2b4d686281fd1f87aa3bea056c247784449b12a557fde3e2cf03eea7568445d4522601111a2a1b9528566
|
7
|
+
data.tar.gz: 24ee9afa94eee26d28896e9dc4d4dff843020ad9f1756b449404a35ae71ff2a881c666933e4e10b2a8c0ca32faa14dfddc2880605f672c5c60526e4df03e4588
|
@@ -19,6 +19,7 @@ $govuk-new-link-styles: true;
|
|
19
19
|
@import "components/big-number";
|
20
20
|
@import "components/breadcrumbs";
|
21
21
|
@import "components/button";
|
22
|
+
@import "components/cards";
|
22
23
|
@import "components/character-count";
|
23
24
|
@import "components/checkboxes";
|
24
25
|
@import "components/contents-list";
|
@@ -58,8 +58,9 @@ $thumbnail-icon-border-colour: govuk-colour("mid-grey", $legacy: "grey-3");
|
|
58
58
|
}
|
59
59
|
|
60
60
|
.gem-c-attachment__metadata {
|
61
|
-
@include govuk-font($size:
|
61
|
+
@include govuk-font($size: 19);
|
62
62
|
margin: 0 0 govuk-spacing(3);
|
63
|
+
color: $govuk-secondary-text-colour;
|
63
64
|
|
64
65
|
&:last-of-type {
|
65
66
|
margin-bottom: 0;
|
@@ -0,0 +1,102 @@
|
|
1
|
+
@import "mixins/grid-helper";
|
2
|
+
@import "mixins/prefixed-transform";
|
3
|
+
|
4
|
+
.gem-c-cards__heading {
|
5
|
+
margin: 0 0 govuk-spacing(6) 0;
|
6
|
+
}
|
7
|
+
|
8
|
+
.gem-c-cards__list {
|
9
|
+
list-style: none;
|
10
|
+
padding: 0;
|
11
|
+
// Remove the outermost left and right margin from the internal margin of the list items.
|
12
|
+
margin: 0 govuk-spacing(-3);
|
13
|
+
|
14
|
+
display: grid;
|
15
|
+
grid-auto-flow: row;
|
16
|
+
// Use CSS grid to calculate the number of rows
|
17
|
+
grid-template-rows: auto;
|
18
|
+
// Use the tallest cell in the grid to set the height for all rows
|
19
|
+
grid-auto-rows: fractions(1);
|
20
|
+
grid-template-columns: fractions(1);
|
21
|
+
|
22
|
+
@include govuk-media-query($from: "tablet") {
|
23
|
+
grid-template-columns: fractions(2);
|
24
|
+
}
|
25
|
+
|
26
|
+
@include govuk-media-query($from: "desktop") {
|
27
|
+
// Note that browsers that don't support CSS grid display the component as one column on all
|
28
|
+
// breakpoints
|
29
|
+
grid-template-columns: fractions(3);
|
30
|
+
|
31
|
+
// For browsers that don't support CSS grid, constrain the width to 50% to improve usability
|
32
|
+
// especially for screen magnifier users
|
33
|
+
width: 50%;
|
34
|
+
|
35
|
+
// Reset the width for browsers that support CSS grid
|
36
|
+
@supports (display: grid) {
|
37
|
+
width: initial;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
.gem-c-cards__list--two-column-desktop {
|
43
|
+
@include govuk-media-query($from: "desktop") {
|
44
|
+
grid-template-columns: fractions(2);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.gem-c-cards__list-item {
|
49
|
+
border-top: 1px solid $govuk-border-colour;
|
50
|
+
// We use grid to split the container into column widths, so manage the horizontal spacing with
|
51
|
+
// internal margins.
|
52
|
+
margin: 0 govuk-spacing(3);
|
53
|
+
padding: govuk-spacing(3) 0 govuk-spacing(6) 0;
|
54
|
+
position: relative;
|
55
|
+
}
|
56
|
+
|
57
|
+
.gem-c-cards__sub-heading {
|
58
|
+
margin: 0 govuk-spacing(6) govuk-spacing(2) 0;
|
59
|
+
}
|
60
|
+
|
61
|
+
.gem-c-cards__link {
|
62
|
+
// Make the entire list item area clickable
|
63
|
+
&:after {
|
64
|
+
bottom: 0;
|
65
|
+
content: "";
|
66
|
+
left: 0;
|
67
|
+
position: absolute;
|
68
|
+
right: 0;
|
69
|
+
top: 0;
|
70
|
+
}
|
71
|
+
|
72
|
+
&:before {
|
73
|
+
$dimension: 7px;
|
74
|
+
$width: 3px;
|
75
|
+
|
76
|
+
border-right: $width solid $govuk-brand-colour;
|
77
|
+
border-top: $width solid $govuk-brand-colour;
|
78
|
+
content: "";
|
79
|
+
height: $dimension;
|
80
|
+
position: absolute;
|
81
|
+
right: govuk-spacing(1);
|
82
|
+
top: govuk-spacing(4);
|
83
|
+
@include prefixed-transform($rotate: 45deg);
|
84
|
+
width: $dimension;
|
85
|
+
}
|
86
|
+
|
87
|
+
&:hover {
|
88
|
+
&:before {
|
89
|
+
border-color: $govuk-link-hover-colour;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
&:focus {
|
94
|
+
&:before {
|
95
|
+
border-color: $govuk-focus-text-colour;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
.gem-c-cards__description {
|
101
|
+
margin: 0;
|
102
|
+
}
|
@@ -1,5 +1,3 @@
|
|
1
|
-
$transition-campaign-red: #ff003b;
|
2
|
-
|
3
1
|
.gem-c-contextual-sidebar__related-links {
|
4
2
|
border-top: 2px solid $govuk-brand-colour;
|
5
3
|
}
|
@@ -19,13 +17,10 @@ $transition-campaign-red: #ff003b;
|
|
19
17
|
}
|
20
18
|
|
21
19
|
.gem-c-contextual-sidebar__cta {
|
20
|
+
border-top: 2px solid $govuk-brand-colour;
|
22
21
|
margin-bottom: govuk-spacing(6);
|
23
22
|
background-color: govuk-colour('light-grey', $legacy: 'grey-4');
|
24
23
|
display: block;
|
25
24
|
padding: 0 govuk-spacing(3) govuk-spacing(3);
|
26
25
|
text-decoration: none;
|
27
26
|
}
|
28
|
-
|
29
|
-
.gem-c-contextual-sidebar__cta--brexit {
|
30
|
-
border-top: 2px solid $transition-campaign-red;
|
31
|
-
}
|
@@ -45,7 +45,10 @@ module GovukPublishingComponents
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def parse_documentation(file)
|
48
|
-
|
48
|
+
# Psych 4's YAML.unsafe_load_file === Psych 3's YAML.load_file
|
49
|
+
# but until we drop support for Ruby 2.7 and Ruby 3.0, we need to support both major versions of Psych
|
50
|
+
yaml = YAML.respond_to?(:unsafe_load_file) ? YAML.unsafe_load_file(file) : YAML.load_file(file)
|
51
|
+
{ id: File.basename(file, ".yml") }.merge(yaml).with_indifferent_access
|
49
52
|
end
|
50
53
|
|
51
54
|
def app_documentation_directory
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<%
|
2
|
+
heading ||= nil
|
3
|
+
items ||= nil
|
4
|
+
sub_heading_level ||= 3
|
5
|
+
two_column_layout ||= false
|
6
|
+
local_assigns ||= nil
|
7
|
+
|
8
|
+
ul_classes = %w[gem-c-cards__list]
|
9
|
+
ul_classes << 'gem-c-cards__list--two-column-desktop' if two_column_layout
|
10
|
+
|
11
|
+
shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
|
12
|
+
%>
|
13
|
+
<% if items.present? %>
|
14
|
+
<div class="gem-c-cards">
|
15
|
+
<% if heading %>
|
16
|
+
<%= content_tag(shared_helper.get_heading_level, class: "gem-c-cards__heading govuk-heading-m") do %>
|
17
|
+
<%= heading %>
|
18
|
+
<% end %>
|
19
|
+
<% end %>
|
20
|
+
<%= content_tag 'ul', class: ul_classes do %>
|
21
|
+
<%
|
22
|
+
items.each do |item|
|
23
|
+
link = item[:link]
|
24
|
+
|
25
|
+
if !link[:path].present?
|
26
|
+
raise ArgumentError, "The cards component requires a href for all the links"
|
27
|
+
end
|
28
|
+
|
29
|
+
data_attributes = nil
|
30
|
+
attributes = link[:tracking_attributes].presence
|
31
|
+
|
32
|
+
if attributes && attributes[:track_category] && attributes[:track_action]
|
33
|
+
data_attributes = {
|
34
|
+
track_action: attributes[:track_action],
|
35
|
+
track_category: attributes[:track_category],
|
36
|
+
track_dimension_index: attributes[:track_dimension_index],
|
37
|
+
track_dimension: link[:text],
|
38
|
+
track_label: link[:path],
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
link = capture do
|
43
|
+
link_to(link[:text], link[:path], {
|
44
|
+
class: "govuk-link gem-c-cards__link",
|
45
|
+
data: data_attributes,
|
46
|
+
})
|
47
|
+
end
|
48
|
+
%>
|
49
|
+
|
50
|
+
<li class="gem-c-cards__list-item">
|
51
|
+
<%= content_tag("h#{sub_heading_level}", class: "gem-c-cards__sub-heading govuk-heading-s") do %>
|
52
|
+
<%= link %>
|
53
|
+
<% end %>
|
54
|
+
|
55
|
+
<% if item[:description] %>
|
56
|
+
<p class="govuk-body gem-c-cards__description"><%= item[:description] %></p>
|
57
|
+
<% end %>
|
58
|
+
</li>
|
59
|
+
<% end %>
|
60
|
+
<% end %>
|
61
|
+
</div>
|
62
|
+
<% end %>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
} %>
|
25
25
|
<% end %>
|
26
26
|
|
27
|
-
<% if navigation.
|
28
|
-
<%= render 'govuk_publishing_components/components/contextual_sidebar/
|
27
|
+
<% if navigation.show_ukraine_cta? %>
|
28
|
+
<%= render 'govuk_publishing_components/components/contextual_sidebar/ukraine_cta', content_item: content_item %>
|
29
29
|
<% end %>
|
30
30
|
</div>
|
@@ -1,21 +1,21 @@
|
|
1
1
|
<% shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns) %>
|
2
2
|
<%
|
3
|
-
title = t("components.related_navigation.
|
4
|
-
link_text = t("components.related_navigation.
|
5
|
-
link_path = t("components.related_navigation.
|
6
|
-
lang = shared_helper.t_locale("components.related_navigation.
|
3
|
+
title = t("components.related_navigation.ukraine.title")
|
4
|
+
link_text = t("components.related_navigation.ukraine.link_text")
|
5
|
+
link_path = t("components.related_navigation.ukraine.link_path")
|
6
|
+
lang = shared_helper.t_locale("components.related_navigation.ukraine.title")
|
7
7
|
%>
|
8
8
|
|
9
9
|
<% data_attributes = {
|
10
10
|
"module": "gem-track-click",
|
11
11
|
"track-category": "relatedLinkClicked",
|
12
|
-
"track-action": "1.0
|
12
|
+
"track-action": "1.0 Invasion of Ukraine",
|
13
13
|
"track-label": link_path,
|
14
14
|
"track-dimension": link_text,
|
15
15
|
"track-dimension-index": "29",
|
16
16
|
} %>
|
17
17
|
|
18
|
-
<%= tag.div class: "gem-c-contextual-sidebar__cta
|
18
|
+
<%= tag.div class: "gem-c-contextual-sidebar__cta" do %>
|
19
19
|
<%= tag.h2 title, class: "gem-c-contextual-sidebar__heading govuk-heading-s" %>
|
20
20
|
<%= tag.p class: "gem-c-contextual-sidebar__text govuk-body" do %>
|
21
21
|
<%= link_to link_text,
|
@@ -0,0 +1,139 @@
|
|
1
|
+
name: Cards (experimental)
|
2
|
+
description: A grid of cards that have a link and a description
|
3
|
+
body: |
|
4
|
+
The component renders the cards as an unordered list element and visually presents it as a grid. It doesn't use the [GOV.UK Design System grid](https://design-system.service.gov.uk/styles/layout/#grid-system) but sets its own so that it can separately target desktop, tablet and mobile columns.
|
5
|
+
|
6
|
+
You can display the grid in three or two columns on desktop. Browsers that don't support CSS grid always display one column.
|
7
|
+
|
8
|
+
You must set a `href` for all the links.
|
9
|
+
|
10
|
+
This component is currently experimental. If you are using it, please feed back any research findings to the GOV.UK Explore team.
|
11
|
+
accessibility_criteria: |
|
12
|
+
The component must:
|
13
|
+
|
14
|
+
- use the correct heading level hierarchy eg. if the component heading uses a `<h2>`, the subheadings must use a `<h3>`
|
15
|
+
|
16
|
+
It is also good practise to include a heading above the list to tell users what the list contains
|
17
|
+
shared_accessibility_criteria:
|
18
|
+
- link
|
19
|
+
examples:
|
20
|
+
default:
|
21
|
+
data:
|
22
|
+
heading: Topics
|
23
|
+
items:
|
24
|
+
- link:
|
25
|
+
text: Benefits
|
26
|
+
path: http://www.gov.uk
|
27
|
+
description: Includes eligibility, appeals, tax credits and Universal Credit
|
28
|
+
- link:
|
29
|
+
text: Births, deaths, marriages and care
|
30
|
+
path: http://www.gov.uk
|
31
|
+
description: Parenting, civil partnerships, divorce and Lasting Power of Attorney
|
32
|
+
- link:
|
33
|
+
text: Business and self-employed
|
34
|
+
path: http://www.gov.uk
|
35
|
+
description: Tools and guidance for businesses
|
36
|
+
- link:
|
37
|
+
text: Childcare and parenting
|
38
|
+
path: http://www.gov.uk
|
39
|
+
description: Includes giving birth, fostering, adopting, benefits for children, childcare and schools
|
40
|
+
- link:
|
41
|
+
text: Citizenship and living in the UK
|
42
|
+
path: http://www.gov.uk
|
43
|
+
description: Voting, community participation, life in the UK, international projects
|
44
|
+
- link:
|
45
|
+
text: Crime, justice and the law
|
46
|
+
path: http://www.gov.uk
|
47
|
+
description: Legal processes, courts and the police
|
48
|
+
- link:
|
49
|
+
text: Disabled people
|
50
|
+
path: http://www.gov.uk
|
51
|
+
description: Includes carers, your rights, benefits and the Equality Act
|
52
|
+
- link:
|
53
|
+
text: Driving and transport
|
54
|
+
path: http://www.gov.uk
|
55
|
+
description: Includes vehicle tax, MOT and driving licences
|
56
|
+
- link:
|
57
|
+
text: Education and learning
|
58
|
+
path: http://www.gov.uk
|
59
|
+
description: Includes student loans, admissions and apprenticeships
|
60
|
+
- link:
|
61
|
+
text: Employing people
|
62
|
+
path: http://www.gov.uk
|
63
|
+
description: Includes pay, contracts, hiring and redundancies
|
64
|
+
- link:
|
65
|
+
text: Environment and countryside
|
66
|
+
path: http://www.gov.uk
|
67
|
+
description: Includes flooding, recycling and wildlife
|
68
|
+
- link:
|
69
|
+
text: Housing and local services
|
70
|
+
path: http://www.gov.uk
|
71
|
+
description: Owning or renting and council services
|
72
|
+
two_column_layout:
|
73
|
+
description: Override default three column layout on desktop by passing through `two_column_layout` parameter (defaults to `false`).
|
74
|
+
data:
|
75
|
+
two_column_layout: true
|
76
|
+
items:
|
77
|
+
- link:
|
78
|
+
text: Benefits
|
79
|
+
path: http://www.gov.uk
|
80
|
+
description: Includes eligibility, appeals, tax credits and Universal Credit
|
81
|
+
- link:
|
82
|
+
text: Births, deaths, marriages and care
|
83
|
+
path: http://www.gov.uk
|
84
|
+
description: Parenting, civil partnerships, divorce and Lasting Power of Attorney
|
85
|
+
- link:
|
86
|
+
text: Business and self-employed
|
87
|
+
path: http://www.gov.uk
|
88
|
+
description: Tools and guidance for businesses
|
89
|
+
- link:
|
90
|
+
text: Childcare and parenting
|
91
|
+
path: http://www.gov.uk
|
92
|
+
description: Includes giving birth, fostering, adopting, benefits for children, childcare and schools
|
93
|
+
- link:
|
94
|
+
text: Citizenship and living in the UK
|
95
|
+
path: http://www.gov.uk
|
96
|
+
description: Voting, community participation, life in the UK, international projects
|
97
|
+
- link:
|
98
|
+
text: Crime, justice and the law
|
99
|
+
path: http://www.gov.uk
|
100
|
+
description: Legal processes, courts and the police
|
101
|
+
- link:
|
102
|
+
text: Disabled people
|
103
|
+
path: http://www.gov.uk
|
104
|
+
description: Includes carers, your rights, benefits and the Equality Act
|
105
|
+
custom_heading_levels:
|
106
|
+
description: |
|
107
|
+
Override default heading level by passing through `heading_level` parameter (defaults to `<h2>`).
|
108
|
+
|
109
|
+
Override default subheading level by passing through `sub_heading_level` parameter (defaults to `<h3>`)
|
110
|
+
data:
|
111
|
+
heading: Topics
|
112
|
+
heading_level: 3
|
113
|
+
sub_heading_level: 4
|
114
|
+
items:
|
115
|
+
- link:
|
116
|
+
text: Benefits
|
117
|
+
path: http://www.gov.uk
|
118
|
+
description: Includes eligibility, appeals, tax credits and Universal Credit
|
119
|
+
with_tracking_attributes:
|
120
|
+
description: |
|
121
|
+
Tracking can be enabled on the cards component by passing a minimum of data_track_category and data_track_action. Other tracking attributes are optional. Note: tracking events do not currently fire within the component guide.
|
122
|
+
data:
|
123
|
+
items:
|
124
|
+
- link:
|
125
|
+
text: Benefits
|
126
|
+
path: http://www.gov.uk
|
127
|
+
tracking_attributes:
|
128
|
+
track_action: track_action
|
129
|
+
track_category: homepageClicked
|
130
|
+
track_dimension_index: 29
|
131
|
+
description: Includes eligibility, appeals, tax credits and Universal Credit
|
132
|
+
- link:
|
133
|
+
text: Births, deaths, marriages and care
|
134
|
+
path: http://www.gov.uk
|
135
|
+
tracking_attributes:
|
136
|
+
track_action: track_action
|
137
|
+
track_category: homepageClicked
|
138
|
+
track_dimension_index: 29
|
139
|
+
description: Parenting, civil partnerships, divorce and Lasting Power of Attorney
|
@@ -86,29 +86,20 @@ examples:
|
|
86
86
|
- text: The Highway Code
|
87
87
|
href: "/guidance/the-highway-code"
|
88
88
|
optional: false
|
89
|
-
|
90
|
-
description: For documents tagged
|
89
|
+
with_ukraine_cta:
|
90
|
+
description: For documents tagged to the Ukraine topical event we show a custom 'Ukraine Invasion' call to action element.
|
91
91
|
data:
|
92
92
|
content_item:
|
93
|
-
title: "
|
94
|
-
content_id: "
|
93
|
+
title: "UK forces arrive to reinforce NATO’s eastern flank"
|
94
|
+
content_id: "a342fd46-d801-4c1e-9d8f-f41fba6da563"
|
95
95
|
locale: "en"
|
96
96
|
links:
|
97
97
|
ordered_related_items:
|
98
|
-
- title:
|
99
|
-
base_path: /
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
base_path: /government/collections/apprenticeship-vacancies
|
107
|
-
document_type: document_collection
|
108
|
-
- title: The future of jobs and skills
|
109
|
-
base_path: /government/collections/the-future-of-jobs-and-skills
|
110
|
-
document_type: document_collection
|
111
|
-
taxons:
|
112
|
-
- content_id: "2f8b848d-23c8-4f42-a41a-df1f81c64d0f"
|
113
|
-
title: "Exporting"
|
114
|
-
phase: "live"
|
98
|
+
- title: Protecting the UK and promoting a Global Britain
|
99
|
+
base_path: "/government/collections/protecting-the-uk-and-promoting-a-global-britain"
|
100
|
+
locale: "en"
|
101
|
+
topical_events:
|
102
|
+
- content_id: "bfa79635-ffda-4b5d-8266-a9cd3a03649c"
|
103
|
+
title: "Russian invasion of Ukraine: UK government response"
|
104
|
+
base_path: "/government/topical-events/russian-invasion-of-ukraine-uk-government-response"
|
105
|
+
locale: "en"
|
data/config/locales/ar.yml
CHANGED
data/config/locales/az.yml
CHANGED
data/config/locales/be.yml
CHANGED
data/config/locales/bg.yml
CHANGED
data/config/locales/bn.yml
CHANGED
data/config/locales/cs.yml
CHANGED
data/config/locales/cy.yml
CHANGED
data/config/locales/da.yml
CHANGED
data/config/locales/de.yml
CHANGED
data/config/locales/dr.yml
CHANGED
data/config/locales/el.yml
CHANGED
data/config/locales/en.yml
CHANGED
@@ -177,10 +177,10 @@ en:
|
|
177
177
|
navigation_search_heading: Search and popular pages
|
178
178
|
navigation_search_subheading: Search
|
179
179
|
popular_links:
|
180
|
+
- label: 'Invasion of Ukraine'
|
181
|
+
href: "/government/topical-events/russian-invasion-of-ukraine-uk-government-response"
|
180
182
|
- label: 'Coronavirus (COVID-19)'
|
181
183
|
href: "/coronavirus"
|
182
|
-
- label: 'Brexit: check what you need to do'
|
183
|
-
href: "/brexit"
|
184
184
|
- label: Find a job
|
185
185
|
href: "/find-a-job"
|
186
186
|
- label: 'Personal tax account: sign in'
|
@@ -234,6 +234,10 @@ en:
|
|
234
234
|
link_path: "/brexit"
|
235
235
|
link_text: Check what you need to do
|
236
236
|
title: Brexit
|
237
|
+
ukraine:
|
238
|
+
link_path: "/government/topical-events/russian-invasion-of-ukraine-uk-government-response"
|
239
|
+
link_text: Find out about the UK’s response
|
240
|
+
title: Invasion of Ukraine
|
237
241
|
world_locations: World locations
|
238
242
|
search_box:
|
239
243
|
input_title: Search
|
data/config/locales/es-419.yml
CHANGED