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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +1 -1
  3. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +7 -0
  4. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +36 -6
  5. data/app/assets/javascripts/govuk_publishing_components/components/show-password.js +12 -0
  6. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +1 -1
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +34 -34
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +0 -2
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +0 -8
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +0 -37
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +1 -0
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +1 -2
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +1 -11
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +4 -2
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +0 -1
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +0 -1
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +0 -1
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +4 -4
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +0 -1
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +0 -4
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +20 -20
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +0 -1
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +0 -4
  24. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +27 -24
  25. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +1 -1
  26. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +17 -2
  27. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +1 -0
  28. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +1 -1
  29. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -0
  30. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -0
  31. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +1 -0
  32. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss +19 -16
  33. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_fraction.scss +1 -0
  34. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +30 -27
  35. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -0
  36. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -0
  37. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -0
  38. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +26 -21
  39. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -0
  40. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss +19 -16
  41. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_summary.scss +21 -18
  42. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -0
  43. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +1 -0
  44. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -0
  45. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss +2 -0
  46. data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +15 -0
  47. data/app/views/govuk_publishing_components/component_guide/index.html.erb +2 -2
  48. data/app/views/govuk_publishing_components/component_guide/show.html.erb +1 -1
  49. data/app/views/govuk_publishing_components/components/_accordion.html.erb +25 -0
  50. data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +7 -7
  51. data/app/views/govuk_publishing_components/components/_highlight_boxes.html.erb +1 -1
  52. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +3 -3
  53. data/app/views/govuk_publishing_components/components/_metadata.html.erb +6 -6
  54. data/app/views/govuk_publishing_components/components/_notice.html.erb +1 -1
  55. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +3 -3
  56. data/app/views/govuk_publishing_components/components/_print_link.html.erb +2 -2
  57. data/app/views/govuk_publishing_components/components/_share_links.html.erb +1 -1
  58. data/app/views/govuk_publishing_components/components/_show_password.html.erb +2 -0
  59. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +4 -4
  60. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +5 -5
  61. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +4 -4
  62. data/app/views/govuk_publishing_components/components/_success_alert.html.erb +1 -1
  63. data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +1 -1
  64. data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +9 -27
  65. data/app/views/govuk_publishing_components/components/docs/accordion.yml +73 -73
  66. data/app/views/govuk_publishing_components/components/docs/show_password.yml +10 -0
  67. data/app/views/govuk_publishing_components/components/docs/success_alert.yml +5 -0
  68. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +1 -1
  69. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +1 -1
  70. data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +2 -2
  71. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +4 -3
  72. data/config/locales/cy.yml +0 -5
  73. data/config/locales/en.yml +11 -8
  74. data/lib/govuk_publishing_components/version.rb +1 -1
  75. metadata +36 -3
  76. 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(govuk-link)
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("govuk_component.step_by_step_nav.show", default: "show") %>"
26
- data-hide-text="<%= t("govuk_component.step_by_step_nav.hide", default: "hide") %>"
27
- data-show-all-text="<%= t("govuk_component.step_by_step_nav.show_all", default: "Show all steps") %>"
28
- data-hide-all-text="<%= t("govuk_component.step_by_step_nav.hide_all", default: "Hide all steps") %>"
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("govuk_component.step_by_step_nav_related.part_of", default: "Part of")
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="gem-c-step-nav-related__link"
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="gem-c-step-nav-related__link"
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("govuk_component.subscription_links.subscriptions", default: "Subscriptions") %></h2>
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("govuk_component.success_alert.success", default: "Success"), class: "govuk-notification-banner__title", id: title_id %>
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 %>
@@ -11,31 +11,13 @@
11
11
  "track-dimension-index": "29",
12
12
  } %>
13
13
 
14
- <%= link_to link_path,
15
- class: "govuk-link gem-c-contextual-sidebar__brexit-cta",
16
- data: data_attributes,
17
- aria: { label: "#{t("components.related_navigation.take_action_list.aria_label")} #{link_text}" },
18
- lang: shared_helper.t_locale("components.related_navigation.transition.title") do %>
19
- <h2 class="gem-c-contextual-sidebar__brexit-heading"><%= t("components.related_navigation.transition.title") %></h2>
20
- <ul class="govuk-list gem-c-contextual-sidebar__take-action-traffic-lights">
21
- <li>
22
- <%= image_tag 'govuk_publishing_components/take-action-red.svg', class: "gem-c-contextual-sidebar__take-action-traffic-lists-icon", alt: "" %>
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: "Writing well for the web"
43
+ text: Writing well for the web
44
44
  content:
45
- html: "<p class='govuk-body'>This is the content for Writing well for the web.</p>"
45
+ html: <p class="govuk-body">This is the content for Writing well for the web.</p>
46
46
  - heading:
47
- text: "Writing well for specialists"
47
+ text: Writing well for specialists
48
48
  content:
49
- html: "<p class='govuk-body'>This is the content for Writing well for specialists.</p>"
49
+ html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
50
50
  - heading:
51
- text: "Know your audience"
51
+ text: Know your audience
52
52
  content:
53
- html: "<p class='govuk-body'>This is the content for Know your audience.</p>"
53
+ html: <p class="govuk-body">This is the content for Know your audience.</p>
54
54
  - heading:
55
- text: "How people read"
55
+ text: How people read
56
56
  content:
57
- html: "<p class='govuk-body'>This is the content for How people read.</p>"
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: "Writing well for the web"
69
+ text: Writing well for the web
70
70
  content:
71
- html: "<p class='govuk-body'>This is the content for Writing well for the web.</p>"
71
+ html: <p class="govuk-body">This is the content for Writing well for the web.</p>
72
72
  - heading:
73
- text: "Writing well for specialists"
73
+ text: Writing well for specialists
74
74
  content:
75
- html: "<p class='govuk-body'>This is the content for Writing well for specialists.</p>"
75
+ html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
76
76
  - heading:
77
- text: "Know your audience"
77
+ text: Know your audience
78
78
  content:
79
- html: "<p class='govuk-body'>This is the content for Know your audience.</p>"
79
+ html: <p class="govuk-body">This is the content for Know your audience.</p>
80
80
  - heading:
81
- text: "How people read"
81
+ text: How people read
82
82
  content:
83
- html: "<p class='govuk-body'>This is the content for How people read.</p>"
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: "Understanding agile project management"
89
+ text: Understanding agile project management
90
90
  summary:
91
- text: "Introductions, methods, core features."
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: "Working with agile methods"
106
+ text: Working with agile methods
107
107
  summary:
108
- text: "Workspaces, tools and techniques, user stories, planning."
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: "Governing agile services"
135
+ text: Governing agile services
136
136
  summary:
137
- text: "Principles, measuring progress, spending money."
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: "Phases of an agile project"
161
+ text: Phases of an agile project
162
162
  summary:
163
- text: "Discovery, alpha, beta, live and retirement."
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: 'gtm-accordion'
194
- ga: 'ga-accordion'
193
+ gtm: gtm-accordion
194
+ ga: ga-accordion
195
195
  items:
196
196
  - heading:
197
- text: "Writing well for the web"
197
+ text: Writing well for the web
198
198
  content:
199
- html: "<p class='govuk-body'>This is the content for Writing well for the web.</p>"
199
+ html: <p class="govuk-body">This is the content for Writing well for the web.</p>
200
200
  data_attributes:
201
- gtm: 'gtm-accordion-item-1'
201
+ gtm: gtm-accordion-item-1
202
202
  - heading:
203
- text: "Writing well for specialists"
203
+ text: Writing well for specialists
204
204
  content:
205
- html: "<p class='govuk-body'>This is the content for Writing well for specialists.</p>"
205
+ html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
206
206
  data_attributes:
207
- gtm: 'gtm-accordion-item-2'
207
+ gtm: gtm-accordion-item-2
208
208
  - heading:
209
- text: "Know your audience"
209
+ text: Know your audience
210
210
  content:
211
- html: "<p class='govuk-body'>This is the content for Know your audience.</p>"
211
+ html: <p class="govuk-body">This is the content for Know your audience.</p>
212
212
  data_attributes:
213
- gtm: 'gtm-accordion-item-3'
213
+ gtm: gtm-accordion-item-3
214
214
  - heading:
215
- text: "How people read"
215
+ text: How people read
216
216
  content:
217
- html: "<p class='govuk-body'>This is the content for How people read.</p>"
217
+ html: <p class="govuk-body">This is the content for How people read.</p>
218
218
  data_attributes:
219
- gtm: 'gtm-accordion-item-4'
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: "Writing well for the web"
226
+ text: Writing well for the web
227
227
  content:
228
- html: "<p class='govuk-body'>This is the content for Writing well for the web.</p>"
228
+ html: <p class="govuk-body">This is the content for Writing well for the web.</p>
229
229
  - heading:
230
- text: "Writing well for specialists"
230
+ text: Writing well for specialists
231
231
  content:
232
- html: "<p class='govuk-body'>This is the content for Writing well for specialists.</p>"
232
+ html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
233
233
  - heading:
234
- text: "Know your audience"
234
+ text: Know your audience
235
235
  content:
236
- html: "<p class='govuk-body'>This is the content for Know your audience.</p>"
236
+ html: <p class="govuk-body">This is the content for Know your audience.</p>
237
237
  - heading:
238
- text: "How people read"
238
+ text: How people read
239
239
  content:
240
- html: "<p class='govuk-body'>This is the content for How people read.</p>"
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: "Writing well for the web"
248
+ text: Writing well for the web
249
249
  content:
250
- html: "<p class='govuk-body'>This is the content for Writing well for the web.</p>"
250
+ html: <p class="govuk-body">This is the content for Writing well for the web.</p>
251
251
  - heading:
252
- text: "Writing well for specialists"
252
+ text: Writing well for specialists
253
253
  content:
254
- html: "<p class='govuk-body'>This is the content for Writing well for specialists.</p>"
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: "Writing well for the web"
261
+ text: Writing well for the web
262
262
  content:
263
- html: "<p class='govuk-body'>This is the content for Writing well for the web.</p>"
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: "Writing well for specialists"
266
+ text: Writing well for specialists
267
267
  content:
268
- html: "<p class='govuk-body'>This is the content for Writing well for specialists.</p>"
268
+ html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
269
269
  - heading:
270
- text: "Know your audience"
270
+ text: Know your audience
271
271
  content:
272
- html: "<p class='govuk-body'>This is the content for Know your audience.</p>"
272
+ html: <p class="govuk-body">This is the content for Know your audience.</p>
273
273
  - heading:
274
- text: "How people read"
274
+ text: How people read
275
275
  content:
276
- html: "<p class='govuk-body'>This is the content for How people read.</p>"
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: "Writing well for the web"
291
- id: "writing-well-for-the-web"
290
+ text: Writing well for the web
291
+ id: writing-well-for-the-web
292
292
  content:
293
- html: "<p class='govuk-body'>This is the content for Writing well for the web.</p>"
293
+ html: <p class="govuk-body">This is the content for Writing well for the web.</p>
294
294
  - heading:
295
- text: "Writing well for specialists"
295
+ text: Writing well for specialists
296
296
  content:
297
- html: "<p class='govuk-body'>This is the content for Writing well for specialists.</p>"
297
+ html: <p class="govuk-body">This is the content for Writing well for specialists.</p>
298
298
  - heading:
299
- text: "Know your audience"
299
+ text: Know your audience
300
300
  content:
301
- html: "<p class='govuk-body'>This is the content for Know your audience.</p>"
301
+ html: <p class="govuk-body">This is the content for Know your audience.</p>
302
302
  - heading:
303
- text: "How people read"
303
+ text: How people read
304
304
  content:
305
- html: "<p class='govuk-body'>This is the content for How people read.</p>"
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: "Understanding agile project management"
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: "Working with agile methods"
328
+ text: Working with agile methods
329
329
  summary:
330
- text: "Workspaces, tools and techniques, user stories, planning."
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: "Governing agile services"
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: "Phases of an agile project"
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>'