govuk_publishing_components 24.9.1 → 24.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +7 -0
- data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +36 -6
- data/app/assets/javascripts/govuk_publishing_components/components/show-password.js +12 -0
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +34 -34
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +0 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +0 -37
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +1 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +4 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +20 -20
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +27 -24
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +17 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss +19 -16
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_fraction.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +30 -27
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +26 -21
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss +19 -16
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_summary.scss +21 -18
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +15 -0
- data/app/views/govuk_publishing_components/component_guide/index.html.erb +2 -2
- data/app/views/govuk_publishing_components/component_guide/show.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_accordion.html.erb +25 -0
- data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +7 -7
- data/app/views/govuk_publishing_components/components/_highlight_boxes.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +3 -3
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +6 -6
- data/app/views/govuk_publishing_components/components/_notice.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +3 -3
- data/app/views/govuk_publishing_components/components/_print_link.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_show_password.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +4 -4
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +5 -5
- data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +4 -4
- data/app/views/govuk_publishing_components/components/_success_alert.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +9 -27
- data/app/views/govuk_publishing_components/components/docs/accordion.yml +73 -73
- data/app/views/govuk_publishing_components/components/docs/show_password.yml +10 -0
- data/app/views/govuk_publishing_components/components/docs/success_alert.yml +5 -0
- data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +4 -3
- data/config/locales/cy.yml +0 -5
- data/config/locales/en.yml +11 -8
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +36 -3
- data/app/assets/javascripts/component_guide/visual-regression.js +0 -71
@@ -18,8 +18,8 @@
|
|
18
18
|
wrapper_classes << (shared_helper.get_margin_top)
|
19
19
|
wrapper_classes << (shared_helper.get_margin_bottom)
|
20
20
|
|
21
|
-
classes = %w
|
22
|
-
classes << "gem-c-print-link__button" if href.nil?
|
21
|
+
classes = %w[govuk-link]
|
22
|
+
classes << "govuk-body-s gem-c-print-link__button" if href.nil?
|
23
23
|
classes << "gem-c-print-link__link govuk-link--no-visited-state" if href.present?
|
24
24
|
%>
|
25
25
|
|
@@ -52,7 +52,7 @@
|
|
52
52
|
'track-action': link[:icon],
|
53
53
|
'track-options': track_options
|
54
54
|
},
|
55
|
-
class: "gem-c-share-links__link #{brand_helper.color_class}" do %>
|
55
|
+
class: "govuk-link gem-c-share-links__link #{brand_helper.color_class}" do %>
|
56
56
|
<span class="gem-c-share-links__link-icon">
|
57
57
|
<% if link[:icon] == 'facebook' %>
|
58
58
|
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" aria-hidden="true">
|
@@ -9,6 +9,7 @@
|
|
9
9
|
hint ||= nil
|
10
10
|
error_message ||= nil
|
11
11
|
error_items ||= nil
|
12
|
+
data ||= nil
|
12
13
|
|
13
14
|
if !label
|
14
15
|
raise ArgumentError, "This component requires a label"
|
@@ -37,6 +38,7 @@
|
|
37
38
|
error_items: error_items,
|
38
39
|
type: "password",
|
39
40
|
autocomplete: autocomplete,
|
41
|
+
data: data,
|
40
42
|
} %>
|
41
43
|
<% end %>
|
42
44
|
<% end %>
|
@@ -22,10 +22,10 @@
|
|
22
22
|
class="gem-c-step-nav js-hidden <% unless small %>gem-c-step-nav--large<% end %>"
|
23
23
|
<%= "data-remember" if remember_last_step %>
|
24
24
|
<%= "data-id=#{tracking_id}" if tracking_id %>
|
25
|
-
data-show-text="<%= t("
|
26
|
-
data-hide-text="<%= t("
|
27
|
-
data-show-all-text="<%= t("
|
28
|
-
data-hide-all-text="<%= t("
|
25
|
+
data-show-text="<%= t("components.step_by_step_nav.show", default: "show") %>"
|
26
|
+
data-hide-text="<%= t("components.step_by_step_nav.hide", default: "hide") %>"
|
27
|
+
data-show-all-text="<%= t("components.step_by_step_nav.show_all", default: "Show all steps") %>"
|
28
|
+
data-hide-all-text="<%= t("components.step_by_step_nav.hide_all", default: "Hide all steps") %>"
|
29
29
|
>
|
30
30
|
<ol class="gem-c-step-nav__steps">
|
31
31
|
<% steps.each_with_index do |step, step_index| %>
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<%
|
2
2
|
links ||= []
|
3
|
-
pretitle ||= t("
|
3
|
+
pretitle ||= t("components.step_by_step_nav_related.part_of", default: "Part of")
|
4
4
|
always_display_as_list ||= false
|
5
5
|
%>
|
6
6
|
<% if links.any? %>
|
7
|
-
<div
|
8
|
-
class="gem-c-step-nav-related <%= "gem-c-step-nav-related--singular" if links.length == 1 %>"
|
7
|
+
<div
|
8
|
+
class="gem-c-step-nav-related <%= "gem-c-step-nav-related--singular" if links.length == 1 %>"
|
9
9
|
data-module="gem-track-click">
|
10
10
|
<h2 class="gem-c-step-nav-related__heading">
|
11
11
|
<span class="gem-c-step-nav-related__pretitle"><%= pretitle %></span>
|
12
12
|
<% if links.length == 1 && !always_display_as_list %>
|
13
13
|
<a href="<%= links[0][:href] %>"
|
14
|
-
class="
|
14
|
+
class="govuk-link"
|
15
15
|
data-track-category="stepNavPartOfClicked"
|
16
16
|
data-track-action="<%= pretitle %>"
|
17
17
|
data-track-label="<%= links[0][:href] %>"
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<% links.each do |link| %>
|
28
28
|
<li class="gem-c-step-nav-related__link-item">
|
29
29
|
<a href="<%= link[:href] %>"
|
30
|
-
class="
|
30
|
+
class="govuk-link"
|
31
31
|
data-track-category="stepNavPartOfClicked"
|
32
32
|
data-track-action="<%= pretitle %>"
|
33
33
|
data-track-label="<%= link[:href] %>"
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<% if sl_helper.component_data_is_valid? %>
|
24
24
|
<%= tag.section class: css_classes, data: data do %>
|
25
25
|
<% unless hide_heading %>
|
26
|
-
<h2 class="gem-c-subscription-links__hidden-header visuallyhidden"><%= t("
|
26
|
+
<h2 class="gem-c-subscription-links__hidden-header visuallyhidden"><%= t("components.subscription_links.subscriptions", default: "Subscriptions") %></h2>
|
27
27
|
<% end %>
|
28
28
|
<ul
|
29
29
|
class="gem-c-subscription-links__list<%= ' gem-c-subscription-links__list--small' if local_assigns[:small_form] == true %>"
|
@@ -36,7 +36,7 @@
|
|
36
36
|
<%= sl_helper.email_signup_link_text %>
|
37
37
|
<% end %>
|
38
38
|
<%= link_to email_link_text, sl_helper.email_signup_link, {
|
39
|
-
class: "gem-c-subscription-links__item #{brand_helper.color_class} gem-c-subscription-links__item--link",
|
39
|
+
class: "govuk-link gem-c-subscription-links__item #{brand_helper.color_class} gem-c-subscription-links__item--link",
|
40
40
|
data: sl_helper.email_signup_link_data_attributes,
|
41
41
|
lang: email_signup_link_text_locale
|
42
42
|
} %>
|
@@ -50,13 +50,13 @@
|
|
50
50
|
<%= sl_helper.feed_link_text %>
|
51
51
|
<% end %>
|
52
52
|
<%= tag.button feed_link_text, {
|
53
|
-
class: "gem-c-subscription-links__item #{brand_helper.color_class} gem-c-subscription-links__item--button",
|
53
|
+
class: "govuk-link gem-c-subscription-links__item #{brand_helper.color_class} gem-c-subscription-links__item--button",
|
54
54
|
data: sl_helper.feed_link_data_attributes,
|
55
55
|
lang: feed_link_text_locale
|
56
56
|
} if sl_helper.feed_link_box_value %>
|
57
57
|
<%= link_to feed_link_text, sl_helper.feed_link,
|
58
58
|
{
|
59
|
-
class: "gem-c-subscription-links__item #{brand_helper.color_class} gem-c-subscription-links__item--link",
|
59
|
+
class: "govuk-link gem-c-subscription-links__item #{brand_helper.color_class} gem-c-subscription-links__item--link",
|
60
60
|
data: sl_helper.feed_link_data_attributes,
|
61
61
|
lang: feed_link_text_locale
|
62
62
|
} unless sl_helper.feed_link_box_value %>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
module: "initial-focus",
|
14
14
|
} do %>
|
15
15
|
<div class="govuk-notification-banner__header">
|
16
|
-
<%= tag.h2 t("
|
16
|
+
<%= tag.h2 t("components.success_alert.success", default: "Success"), class: "govuk-notification-banner__title", id: title_id %>
|
17
17
|
</div>
|
18
18
|
<div class="govuk-notification-banner__content">
|
19
19
|
<% if description.present? %>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
hreflang: translation[:locale],
|
20
20
|
lang: translation[:locale],
|
21
21
|
rel: "alternate",
|
22
|
-
class: "gem-c-translation-nav__link #{brand_helper.color_class}",
|
22
|
+
class: "govuk-link gem-c-translation-nav__link #{brand_helper.color_class}",
|
23
23
|
data: translation[:data_attributes]
|
24
24
|
%>
|
25
25
|
<% end %>
|
data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
CHANGED
@@ -11,31 +11,13 @@
|
|
11
11
|
"track-dimension-index": "29",
|
12
12
|
} %>
|
13
13
|
|
14
|
-
<%=
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
<span class="gem-c-contextual-sidebar__take-action-traffic-lists-text">
|
24
|
-
<%= t("components.related_navigation.take_action_list.red") %>
|
25
|
-
</span>
|
26
|
-
</li>
|
27
|
-
<li>
|
28
|
-
<%= image_tag 'govuk_publishing_components/take-action-amber.svg', class: "gem-c-contextual-sidebar__take-action-traffic-lists-icon", alt: "" %>
|
29
|
-
<span class="gem-c-contextual-sidebar__take-action-traffic-lists-text">
|
30
|
-
<%= t("components.related_navigation.take_action_list.amber") %>
|
31
|
-
</span>
|
32
|
-
</li>
|
33
|
-
<li>
|
34
|
-
<%= image_tag 'govuk_publishing_components/take-action-green.svg', class: "gem-c-contextual-sidebar__take-action-traffic-lists-icon", alt: "" %>
|
35
|
-
<span class="gem-c-contextual-sidebar__take-action-traffic-lists-text">
|
36
|
-
<%= t("components.related_navigation.take_action_list.green") %>
|
37
|
-
</span>
|
38
|
-
</li>
|
39
|
-
</ul>
|
40
|
-
<p class="gem-c-contextual-sidebar__brexit-text"><%= link_text %></p>
|
14
|
+
<%= tag.div class: "gem-c-contextual-sidebar__brexit-cta" do %>
|
15
|
+
<%= tag.h2 t("components.related_navigation.transition.title"), class: "gem-c-contextual-sidebar__brexit-heading govuk-heading-s" %>
|
16
|
+
<%= tag.p class: "gem-c-contextual-sidebar__brexit-text govuk-body" do %>
|
17
|
+
<%= link_to link_text,
|
18
|
+
link_path,
|
19
|
+
class: "govuk-link",
|
20
|
+
data: data_attributes,
|
21
|
+
lang: shared_helper.t_locale("components.related_navigation.transition.title") %>
|
22
|
+
<% end %>
|
41
23
|
<% end %>
|
@@ -40,21 +40,21 @@ examples:
|
|
40
40
|
data:
|
41
41
|
items:
|
42
42
|
- heading:
|
43
|
-
text:
|
43
|
+
text: Writing well for the web
|
44
44
|
content:
|
45
|
-
html:
|
45
|
+
html: <p class="govuk-body">This is the content for Writing well for the web.</p>
|
46
46
|
- heading:
|
47
|
-
text:
|
47
|
+
text: Writing well for specialists
|
48
48
|
content:
|
49
|
-
html:
|
49
|
+
html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
|
50
50
|
- heading:
|
51
|
-
text:
|
51
|
+
text: Know your audience
|
52
52
|
content:
|
53
|
-
html:
|
53
|
+
html: <p class="govuk-body">This is the content for Know your audience.</p>
|
54
54
|
- heading:
|
55
|
-
text:
|
55
|
+
text: How people read
|
56
56
|
content:
|
57
|
-
html:
|
57
|
+
html: <p class="govuk-body">This is the content for How people read.</p>
|
58
58
|
with_supplied_identification:
|
59
59
|
description: |
|
60
60
|
An `id` is optional as it's automatically generated, but it can be supplied if a specific `id` is required.
|
@@ -66,29 +66,29 @@ examples:
|
|
66
66
|
id: with-supplied-id-thats-unique-across-the-domain
|
67
67
|
items:
|
68
68
|
- heading:
|
69
|
-
text:
|
69
|
+
text: Writing well for the web
|
70
70
|
content:
|
71
|
-
html:
|
71
|
+
html: <p class="govuk-body">This is the content for Writing well for the web.</p>
|
72
72
|
- heading:
|
73
|
-
text:
|
73
|
+
text: Writing well for specialists
|
74
74
|
content:
|
75
|
-
html:
|
75
|
+
html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
|
76
76
|
- heading:
|
77
|
-
text:
|
77
|
+
text: Know your audience
|
78
78
|
content:
|
79
|
-
html:
|
79
|
+
html: <p class="govuk-body">This is the content for Know your audience.</p>
|
80
80
|
- heading:
|
81
|
-
text:
|
81
|
+
text: How people read
|
82
82
|
content:
|
83
|
-
html:
|
83
|
+
html: <p class="govuk-body">This is the content for How people read.</p>
|
84
84
|
with_summary:
|
85
85
|
description: Adds a subheading below each section heading.
|
86
86
|
data:
|
87
87
|
items:
|
88
88
|
- heading:
|
89
|
-
text:
|
89
|
+
text: Understanding agile project management
|
90
90
|
summary:
|
91
|
-
text:
|
91
|
+
text: Introductions, methods, core features.
|
92
92
|
content:
|
93
93
|
html:
|
94
94
|
'<ul class="govuk-list">
|
@@ -103,9 +103,9 @@ examples:
|
|
103
103
|
</li>
|
104
104
|
</ul>'
|
105
105
|
- heading:
|
106
|
-
text:
|
106
|
+
text: Working with agile methods
|
107
107
|
summary:
|
108
|
-
text:
|
108
|
+
text: Workspaces, tools and techniques, user stories, planning.
|
109
109
|
content:
|
110
110
|
html:
|
111
111
|
'<ul class="govuk-list">
|
@@ -132,9 +132,9 @@ examples:
|
|
132
132
|
</li>
|
133
133
|
</ul>'
|
134
134
|
- heading:
|
135
|
-
text:
|
135
|
+
text: Governing agile services
|
136
136
|
summary:
|
137
|
-
text:
|
137
|
+
text: Principles, measuring progress, spending money.
|
138
138
|
content:
|
139
139
|
html:
|
140
140
|
'<ul class="govuk-list">
|
@@ -158,9 +158,9 @@ examples:
|
|
158
158
|
</li>
|
159
159
|
</ul>'
|
160
160
|
- heading:
|
161
|
-
text:
|
161
|
+
text: Phases of an agile project
|
162
162
|
summary:
|
163
|
-
text:
|
163
|
+
text: Discovery, alpha, beta, live and retirement.
|
164
164
|
content:
|
165
165
|
html:
|
166
166
|
'<ul class="govuk-list">
|
@@ -190,54 +190,54 @@ examples:
|
|
190
190
|
|
191
191
|
data:
|
192
192
|
data_attributes:
|
193
|
-
gtm:
|
194
|
-
ga:
|
193
|
+
gtm: gtm-accordion
|
194
|
+
ga: ga-accordion
|
195
195
|
items:
|
196
196
|
- heading:
|
197
|
-
text:
|
197
|
+
text: Writing well for the web
|
198
198
|
content:
|
199
|
-
html:
|
199
|
+
html: <p class="govuk-body">This is the content for Writing well for the web.</p>
|
200
200
|
data_attributes:
|
201
|
-
gtm:
|
201
|
+
gtm: gtm-accordion-item-1
|
202
202
|
- heading:
|
203
|
-
text:
|
203
|
+
text: Writing well for specialists
|
204
204
|
content:
|
205
|
-
html:
|
205
|
+
html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
|
206
206
|
data_attributes:
|
207
|
-
gtm:
|
207
|
+
gtm: gtm-accordion-item-2
|
208
208
|
- heading:
|
209
|
-
text:
|
209
|
+
text: Know your audience
|
210
210
|
content:
|
211
|
-
html:
|
211
|
+
html: <p class="govuk-body">This is the content for Know your audience.</p>
|
212
212
|
data_attributes:
|
213
|
-
gtm:
|
213
|
+
gtm: gtm-accordion-item-3
|
214
214
|
- heading:
|
215
|
-
text:
|
215
|
+
text: How people read
|
216
216
|
content:
|
217
|
-
html:
|
217
|
+
html: <p class="govuk-body">This is the content for How people read.</p>
|
218
218
|
data_attributes:
|
219
|
-
gtm:
|
219
|
+
gtm: gtm-accordion-item-4
|
220
220
|
different_heading_level:
|
221
221
|
description: This will alter the level of the heading, not the appearance of the heading.
|
222
222
|
data:
|
223
223
|
heading_level: 3
|
224
224
|
items:
|
225
225
|
- heading:
|
226
|
-
text:
|
226
|
+
text: Writing well for the web
|
227
227
|
content:
|
228
|
-
html:
|
228
|
+
html: <p class="govuk-body">This is the content for Writing well for the web.</p>
|
229
229
|
- heading:
|
230
|
-
text:
|
230
|
+
text: Writing well for specialists
|
231
231
|
content:
|
232
|
-
html:
|
232
|
+
html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
|
233
233
|
- heading:
|
234
|
-
text:
|
234
|
+
text: Know your audience
|
235
235
|
content:
|
236
|
-
html:
|
236
|
+
html: <p class="govuk-body">This is the content for Know your audience.</p>
|
237
237
|
- heading:
|
238
|
-
text:
|
238
|
+
text: How people read
|
239
239
|
content:
|
240
|
-
html:
|
240
|
+
html: <p class="govuk-body">This is the content for How people read.</p>
|
241
241
|
with_margin_bottom:
|
242
242
|
description: |
|
243
243
|
The component accepts a number for margin bottom from 0 to 9 (0px to 60px) using the [GOV.UK Frontend spacing scale](https://design-system.service.gov.uk/styles/spacing/#the-responsive-spacing-scale). It defaults to having a margin bottom of 30px.
|
@@ -245,35 +245,35 @@ examples:
|
|
245
245
|
margin_bottom: 0
|
246
246
|
items:
|
247
247
|
- heading:
|
248
|
-
text:
|
248
|
+
text: Writing well for the web
|
249
249
|
content:
|
250
|
-
html:
|
250
|
+
html: <p class="govuk-body">This is the content for Writing well for the web.</p>
|
251
251
|
- heading:
|
252
|
-
text:
|
252
|
+
text: Writing well for specialists
|
253
253
|
content:
|
254
|
-
html:
|
254
|
+
html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
|
255
255
|
with_section_open:
|
256
256
|
description: |
|
257
257
|
Adding `expanded: true` to the item will mean the section will default to being open, rather than closed. Once a user has opened or closed a section, the state of each section will be remembered - this can override a section's default.
|
258
258
|
data:
|
259
259
|
items:
|
260
260
|
- heading:
|
261
|
-
text:
|
261
|
+
text: Writing well for the web
|
262
262
|
content:
|
263
|
-
html:
|
263
|
+
html: <p class="govuk-body">This is the content for Writing well for the web.</p>
|
264
264
|
expanded: true
|
265
265
|
- heading:
|
266
|
-
text:
|
266
|
+
text: Writing well for specialists
|
267
267
|
content:
|
268
|
-
html:
|
268
|
+
html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
|
269
269
|
- heading:
|
270
|
-
text:
|
270
|
+
text: Know your audience
|
271
271
|
content:
|
272
|
-
html:
|
272
|
+
html: <p class="govuk-body">This is the content for Know your audience.</p>
|
273
273
|
- heading:
|
274
|
-
text:
|
274
|
+
text: How people read
|
275
275
|
content:
|
276
|
-
html:
|
276
|
+
html: <p class="govuk-body">This is the content for How people read.</p>
|
277
277
|
with_the_anchor_link_navigation:
|
278
278
|
description: |
|
279
279
|
Some apps require custom ids per accordion section heading for linking between those specific sections, sometimes across multiple pages. An example of this is on manuals pages where multiple manuals will each include large sets of accordions and will reference between specific sections for ease of access to that content. [Live example](https://www.gov.uk/guidance/how-to-publish-on-gov-uk/creating-and-updating-pages#associations).
|
@@ -287,22 +287,22 @@ examples:
|
|
287
287
|
anchor_navigation: true
|
288
288
|
items:
|
289
289
|
- heading:
|
290
|
-
text:
|
291
|
-
id:
|
290
|
+
text: Writing well for the web
|
291
|
+
id: writing-well-for-the-web
|
292
292
|
content:
|
293
|
-
html:
|
293
|
+
html: <p class="govuk-body">This is the content for Writing well for the web.</p>
|
294
294
|
- heading:
|
295
|
-
text:
|
295
|
+
text: Writing well for specialists
|
296
296
|
content:
|
297
|
-
html:
|
297
|
+
html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
|
298
298
|
- heading:
|
299
|
-
text:
|
299
|
+
text: Know your audience
|
300
300
|
content:
|
301
|
-
html:
|
301
|
+
html: <p class="govuk-body">This is the content for Know your audience.</p>
|
302
302
|
- heading:
|
303
|
-
text:
|
303
|
+
text: How people read
|
304
304
|
content:
|
305
|
-
html:
|
305
|
+
html: <p class="govuk-body">This is the content for How people read.</p>
|
306
306
|
condensed_layout:
|
307
307
|
description: |
|
308
308
|
This is for when a smaller accordion is required. Since smaller screens trigger a single column layout, this modifier only makes the accordion smaller when viewed on large screens.
|
@@ -310,7 +310,7 @@ examples:
|
|
310
310
|
condensed: true
|
311
311
|
items:
|
312
312
|
- heading:
|
313
|
-
text:
|
313
|
+
text: Understanding agile project management
|
314
314
|
content:
|
315
315
|
html:
|
316
316
|
'<ul class="govuk-list">
|
@@ -325,9 +325,9 @@ examples:
|
|
325
325
|
</li>
|
326
326
|
</ul>'
|
327
327
|
- heading:
|
328
|
-
text:
|
328
|
+
text: Working with agile methods
|
329
329
|
summary:
|
330
|
-
text:
|
330
|
+
text: Workspaces, tools and techniques, user stories, planning.
|
331
331
|
content:
|
332
332
|
html:
|
333
333
|
'<ul class="govuk-list">
|
@@ -354,7 +354,7 @@ examples:
|
|
354
354
|
</li>
|
355
355
|
</ul>'
|
356
356
|
- heading:
|
357
|
-
text:
|
357
|
+
text: Governing agile services
|
358
358
|
content:
|
359
359
|
html:
|
360
360
|
'<ul class="govuk-list">
|
@@ -378,7 +378,7 @@ examples:
|
|
378
378
|
</li>
|
379
379
|
</ul>'
|
380
380
|
- heading:
|
381
|
-
text:
|
381
|
+
text: Phases of an agile project
|
382
382
|
content:
|
383
383
|
html:
|
384
384
|
'<ul class="govuk-list">
|
@@ -397,4 +397,4 @@ examples:
|
|
397
397
|
<li>
|
398
398
|
<a class="govuk-link govuk-body-s" href="#">Retiring your service</a>
|
399
399
|
</li>
|
400
|
-
</ul>'
|
400
|
+
</ul>'
|