govuk_publishing_components 60.2.0 → 61.0.0

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.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js +1 -0
  3. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +704 -594
  4. data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -2
  5. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +1 -1
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +0 -4
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +4 -4
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +1 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +0 -15
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +51 -40
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +0 -11
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +1 -0
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_select-with-search.scss +1 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +0 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +1 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +0 -5
  17. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +2 -1
  18. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +9 -8
  19. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_content-block.scss +27 -0
  20. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_css3.scss +6 -0
  21. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss +0 -13
  22. data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +0 -3
  23. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +1 -35
  24. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +222 -237
  25. data/app/views/govuk_publishing_components/components/_summary_card.html.erb +2 -2
  26. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +69 -0
  27. data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +0 -7
  28. data/app/views/govuk_publishing_components/components/docs/translation_nav.yml +0 -11
  29. data/config/locales/ar.yml +1 -1
  30. data/config/locales/az.yml +1 -1
  31. data/config/locales/be.yml +1 -1
  32. data/config/locales/bg.yml +1 -1
  33. data/config/locales/bn.yml +1 -1
  34. data/config/locales/cs.yml +1 -1
  35. data/config/locales/cy.yml +1 -1
  36. data/config/locales/da.yml +1 -1
  37. data/config/locales/de.yml +1 -1
  38. data/config/locales/dr.yml +1 -1
  39. data/config/locales/el.yml +1 -1
  40. data/config/locales/en.yml +1 -1
  41. data/config/locales/es-419.yml +1 -1
  42. data/config/locales/es.yml +1 -1
  43. data/config/locales/et.yml +1 -1
  44. data/config/locales/fa.yml +1 -1
  45. data/config/locales/fi.yml +1 -1
  46. data/config/locales/fr.yml +1 -1
  47. data/config/locales/gd.yml +1 -1
  48. data/config/locales/gu.yml +1 -1
  49. data/config/locales/he.yml +1 -1
  50. data/config/locales/hi.yml +1 -1
  51. data/config/locales/hr.yml +1 -1
  52. data/config/locales/hu.yml +1 -1
  53. data/config/locales/hy.yml +1 -1
  54. data/config/locales/id.yml +1 -1
  55. data/config/locales/is.yml +1 -1
  56. data/config/locales/it.yml +1 -1
  57. data/config/locales/ja.yml +1 -1
  58. data/config/locales/ka.yml +1 -1
  59. data/config/locales/kk.yml +1 -1
  60. data/config/locales/ku.yml +1 -1
  61. data/config/locales/ky.yml +1 -1
  62. data/config/locales/lt.yml +1 -1
  63. data/config/locales/lv.yml +1 -1
  64. data/config/locales/ms.yml +1 -1
  65. data/config/locales/mt.yml +1 -1
  66. data/config/locales/nl.yml +1 -1
  67. data/config/locales/no.yml +1 -1
  68. data/config/locales/pa-pk.yml +1 -1
  69. data/config/locales/pa.yml +1 -1
  70. data/config/locales/pl.yml +1 -1
  71. data/config/locales/ps.yml +1 -1
  72. data/config/locales/pt.yml +1 -1
  73. data/config/locales/ro.yml +1 -1
  74. data/config/locales/ru.yml +1 -1
  75. data/config/locales/si.yml +1 -1
  76. data/config/locales/sk.yml +1 -1
  77. data/config/locales/sl.yml +1 -1
  78. data/config/locales/so.yml +1 -1
  79. data/config/locales/sq.yml +1 -1
  80. data/config/locales/sr.yml +1 -1
  81. data/config/locales/sv.yml +1 -1
  82. data/config/locales/sw.yml +1 -1
  83. data/config/locales/ta.yml +1 -1
  84. data/config/locales/th.yml +1 -1
  85. data/config/locales/ti.yml +1 -1
  86. data/config/locales/tk.yml +1 -1
  87. data/config/locales/tr.yml +1 -1
  88. data/config/locales/uk.yml +1 -1
  89. data/config/locales/ur.yml +1 -1
  90. data/config/locales/uz.yml +1 -1
  91. data/config/locales/vi.yml +1 -1
  92. data/config/locales/zh-hk.yml +1 -1
  93. data/config/locales/zh-tw.yml +1 -1
  94. data/config/locales/zh.yml +1 -1
  95. data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +0 -5
  96. data/lib/govuk_publishing_components/presenters/translation_nav_helper.rb +0 -6
  97. data/lib/govuk_publishing_components/version.rb +1 -1
  98. metadata +3 -5
  99. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_govuk-template-link-focus-override.scss +0 -14
  100. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss +0 -22
  101. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_prefixed-transform.scss +0 -5
@@ -33,8 +33,6 @@
33
33
 
34
34
  header_link_classes = %w(govuk-header__link govuk-header__link--homepage)
35
35
 
36
- button_container_classes = %w(gem-c-layout-super-navigation-header__button-container)
37
-
38
36
  dropdown_menu_classes = %w(gem-c-layout-super-navigation-header__navigation-dropdown-menu)
39
37
 
40
38
  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
@@ -42,254 +40,241 @@
42
40
  component_helper.add_data_attribute({ module: "ga4-event-tracker ga4-link-tracker", ga4_expandable: "" })
43
41
  %>
44
42
  <%= tag.header(**component_helper.all_attributes) do %>
45
- <div class="gem-c-layout-super-navigation-header__container govuk-clearfix">
46
- <div class="govuk-width-container transparent-bottom-border">
47
- <%= content_tag(:div, {
48
- class: header_logo_classes,
49
- }) do %>
50
- <%= link_to logo_link, {
51
- class: header_link_classes,
52
- data: {
53
- "ga4-link": {
54
- "event_name": "navigation",
55
- "type": "header menu bar",
56
- "external": "false",
57
- "text": "GOV.UK",
58
- "section": "Logo",
59
- "index_link": 1,
60
- "index_section": 0,
61
- "index_section_count": 2,
62
- "index_total": 1,
63
- }.to_json,
64
- },
65
- id: "logo",
66
- aria: {
67
- label: logo_link_title,
68
- },
69
- } do %>
70
- <%= render "govuk_publishing_components/components/govuk_logo/govuk_logo" %>
71
- <% end %>
43
+ <div class="gem-c-layout-super-navigation-header__container govuk-width-container">
44
+ <nav
45
+ aria-labelledby="super-navigation-menu-heading"
46
+ class="gem-c-layout-super-navigation-header__content"
47
+ data-module="super-navigation-mega-menu">
48
+ <%= content_tag(:div, {
49
+ class: header_logo_classes,
50
+ }) do %>
51
+ <%= link_to logo_link, {
52
+ class: header_link_classes,
53
+ data: {
54
+ "ga4-link": {
55
+ "event_name": "navigation",
56
+ "type": "header menu bar",
57
+ "external": "false",
58
+ "text": "GOV.UK",
59
+ "section": "Logo",
60
+ "index_link": 1,
61
+ "index_section": 0,
62
+ "index_section_count": 2,
63
+ "index_total": 1,
64
+ }.to_json,
65
+ },
66
+ id: "logo",
67
+ aria: {
68
+ label: logo_link_title,
69
+ },
70
+ } do %>
71
+ <%= render "govuk_publishing_components/components/govuk_logo/govuk_logo" %>
72
72
  <% end %>
73
- </div>
74
- <nav
75
- aria-labelledby="super-navigation-menu-heading"
76
- class="gem-c-layout-super-navigation-header__content govuk-!-display-none-print"
77
- data-module="super-navigation-mega-menu">
78
- <h2 id="super-navigation-menu-heading" class="govuk-visually-hidden">
79
- <%= navigation_menu_heading %>
80
- </h2>
73
+ <% end %>
74
+ <h2 id="super-navigation-menu-heading" class="govuk-visually-hidden">
75
+ <%= navigation_menu_heading %>
76
+ </h2>
81
77
 
82
- <%
83
- link = t("components.layout_super_navigation_header.navigation_link")
84
- show_menu_text = show_navigation_menu_text
85
- hide_menu_text = hide_navigation_menu_text
86
- %>
78
+ <%
79
+ link = t("components.layout_super_navigation_header.navigation_link")
80
+ show_menu_text = show_navigation_menu_text
81
+ hide_menu_text = hide_navigation_menu_text
82
+ %>
87
83
 
88
- <div class="govuk-width-container gem-c-layout-super-navigation-header__button-width-container">
89
- <%= content_tag(:div, {
90
- class: button_container_classes,
84
+ <div class="gem-c-layout-super-navigation-header__navigation-item">
85
+ <%= link_to link[:href], {
86
+ class: item_link_classes,
87
+ } do %>
88
+ <% content_tag(:span, {
89
+ class: item_link_inner_classes,
91
90
  }) do %>
92
- <div class="gem-c-layout-super-navigation-header__navigation-item">
93
- <%= link_to link[:href], {
94
- class: item_link_classes,
95
- } do %>
96
- <% content_tag(:span, {
97
- class: item_link_inner_classes,
98
- }) do %>
99
- <%= link[:label] %>
100
- <% end %>
101
- <% end %>
91
+ <%= link[:label] %>
92
+ <% end %>
93
+ <% end %>
102
94
 
103
- <%= content_tag(:button, {
104
- aria: {
105
- controls: "super-navigation-menu",
106
- expanded: false,
107
- label: show_menu_text,
108
- },
109
- class: top_toggle_button_classes,
110
- data: {
111
- text_for_hide: hide_menu_text,
112
- text_for_show: show_menu_text,
113
- toggle_desktop_group: "top",
114
- toggle_mobile_group: "top",
115
- ga4_event: {
116
- event_name: "select_content",
117
- type: "header menu bar",
118
- text: link[:label],
119
- index_section: 1,
120
- index_section_count: 2,
121
- section: link[:label],
122
- },
123
- },
124
- hidden: true,
125
- id: "super-navigation-menu-toggle",
126
- type: "button",
127
- }) do %>
128
- <%= tag.span link[:label], class: top_toggle_button_inner_classes %>
129
- <% end %>
130
- </div>
95
+ <%= content_tag(:button, {
96
+ aria: {
97
+ controls: "super-navigation-menu",
98
+ expanded: false,
99
+ label: show_menu_text,
100
+ },
101
+ class: top_toggle_button_classes,
102
+ data: {
103
+ text_for_hide: hide_menu_text,
104
+ text_for_show: show_menu_text,
105
+ toggle_desktop_group: "top",
106
+ toggle_mobile_group: "top",
107
+ ga4_event: {
108
+ event_name: "select_content",
109
+ type: "header menu bar",
110
+ text: link[:label],
111
+ index_section: 1,
112
+ index_section_count: 2,
113
+ section: link[:label],
114
+ },
115
+ },
116
+ hidden: true,
117
+ id: "super-navigation-menu-toggle",
118
+ type: "button",
119
+ }) do %>
120
+ <%= tag.span link[:label], class: top_toggle_button_inner_classes %>
121
+ <% end %>
122
+ </div>
123
+ <%= content_tag(:div, {
124
+ id: "super-navigation-menu",
125
+ hidden: "",
126
+ class: dropdown_menu_classes,
127
+ }) do %>
128
+ <div class="govuk-grid-row gem-c-layout-super-navigation-header__navigation-items">
131
129
 
132
- <div class="gem-c-layout-super-navigation-header__search-item">
133
- <%= content_tag(:button, {
134
- id: "super-search-menu-toggle",
135
- class: search_toggle_button_classes,
136
- aria: {
137
- controls: "super-search-menu",
138
- expanded: "true",
139
- label: hide_search_menu_text,
140
- },
141
- data: {
142
- "text-for-hide": hide_search_menu_text,
143
- "text-for-show": show_search_menu_text,
144
- "toggle-mobile-group": "top",
145
- "toggle-desktop-group": "top",
146
- "ga4-event": "#{{
147
- "event_name": "select_content",
148
- "type": "header menu bar",
149
- "text": "Search",
150
- "index_section": 2,
151
- "index_section_count": 2,
152
- "section": "Search",
153
- }.to_json
154
- }",
155
- },
156
- hidden: true,
157
- type: "button",
158
- }) do %>
159
- <span class="govuk-visually-hidden">
160
- <%= search_text %>
161
- </span>
162
- <%=
163
- render "govuk_publishing_components/components/search/search_icon", {
164
- classes: %w[gem-c-layout-super-navigation-header__search-toggle-button-link-icon],
165
- }
166
- %>
167
- <span
168
- aria-hidden="true"
169
- class="gem-c-layout-super-navigation-header__navigation-top-toggle-close-icon">
170
- &times;
171
- </span>
172
- <% end %>
130
+ <% navigation_links_columns.each_with_index do | column, column_index | %>
131
+ <%
132
+ case column[:size]
133
+ when 2
134
+ width_class = "govuk-grid-column-two-thirds-from-desktop"
135
+ when 3
136
+ width_class = "govuk-grid-column-full-from-desktop"
137
+ else
138
+ width_class = "govuk-grid-column-one-third-from-desktop"
139
+ end
140
+ %>
173
141
 
174
- <%= link_to "/search", {
175
- class: search_item_link_classes,
176
- } do %>
177
- <span class="govuk-visually-hidden">
178
- <%= search_text %>
179
- </span>
180
- <%=
181
- render "govuk_publishing_components/components/search/search_icon", {
182
- classes: %w[gem-c-layout-super-navigation-header__search-item-link-icon],
183
- }
184
- %>
185
- <% end %>
142
+ <div class="<%= width_class %> gem-c-layout-super-navigation-header__column--<%= column[:label].downcase.gsub(" ", "-") %>">
143
+ <h3 class="govuk-heading-m gem-c-layout-super-navigation-header__column-header">
144
+ <%= column[:label] %>
145
+ </h3>
146
+ <ul class="gem-c-layout-super-navigation-header__navigation-second-items gem-c-layout-super-navigation-header__navigation-second-items--<%= column[:label].downcase.gsub(" ", "-") %>">
147
+ <% index_total = column[:menu_contents].length %>
148
+ <% column[:menu_contents].each_with_index do | item, index | %>
149
+ <%
150
+ has_description = item[:description].present?
151
+ link_classes = %w[govuk-link gem-c-layout-super-navigation-header__navigation-second-item-link]
152
+ link_classes << "gem-c-layout-super-navigation-header__navigation-second-item-link--with-description" if has_description
153
+ %>
154
+ <li class="gem-c-layout-super-navigation-header__dropdown-list-item">
155
+ <%= link_to item[:label], item[:href], {
156
+ class: link_classes,
157
+ data: {
158
+ ga4_link: {
159
+ "event_name": "navigation",
160
+ "type": "header menu bar",
161
+ "index_section": column_index + 1,
162
+ "index_link": index + 1,
163
+ "index_section_count": 3,
164
+ "index_total": index_total,
165
+ "section": column[:label],
166
+ },
167
+ },
168
+ } %>
169
+ <%= tag.p item[:description], class: "gem-c-layout-super-navigation-header__navigation-second-item-description" if has_description %>
170
+ </li>
171
+ <% end %>
172
+ </ul>
186
173
  </div>
187
174
  <% end %>
188
175
  </div>
189
-
190
- <%= content_tag(:div, {
191
- id: "super-navigation-menu",
192
- hidden: "",
193
- class: dropdown_menu_classes,
176
+ <% end %>
177
+ <div class="gem-c-layout-super-navigation-header__search-item">
178
+ <%= content_tag(:button, {
179
+ id: "super-search-menu-toggle",
180
+ class: search_toggle_button_classes,
181
+ aria: {
182
+ controls: "super-search-menu",
183
+ expanded: "true",
184
+ label: hide_search_menu_text,
185
+ },
186
+ data: {
187
+ "text-for-hide": hide_search_menu_text,
188
+ "text-for-show": show_search_menu_text,
189
+ "toggle-mobile-group": "top",
190
+ "toggle-desktop-group": "top",
191
+ "ga4-event": "#{{
192
+ "event_name": "select_content",
193
+ "type": "header menu bar",
194
+ "text": "Search",
195
+ "index_section": 2,
196
+ "index_section_count": 2,
197
+ "section": "Search",
198
+ }.to_json
199
+ }",
200
+ },
201
+ hidden: true,
202
+ type: "button",
194
203
  }) do %>
195
- <div class="govuk-width-container">
196
- <div class="govuk-grid-row gem-c-layout-super-navigation-header__navigation-items">
197
-
198
- <% navigation_links_columns.each_with_index do | column, column_index | %>
199
- <%
200
- case column[:size]
201
- when 2
202
- width_class = "govuk-grid-column-two-thirds-from-desktop"
203
- when 3
204
- width_class = "govuk-grid-column-full-from-desktop"
205
- else
206
- width_class = "govuk-grid-column-one-third-from-desktop"
207
- end
208
- %>
209
-
210
- <div class="<%= width_class %> gem-c-layout-super-navigation-header__column--<%= column[:label].downcase.gsub(" ", "-") %>">
211
- <h3 class="govuk-heading-m gem-c-layout-super-navigation-header__column-header">
212
- <%= column[:label] %>
213
- </h3>
214
- <ul class="gem-c-layout-super-navigation-header__navigation-second-items gem-c-layout-super-navigation-header__navigation-second-items--<%= column[:label].downcase.gsub(" ", "-") %>">
215
- <% index_total = column[:menu_contents].length %>
216
- <% column[:menu_contents].each_with_index do | item, index | %>
217
- <%
218
- has_description = item[:description].present?
219
- link_classes = %w[govuk-link gem-c-layout-super-navigation-header__navigation-second-item-link]
220
- link_classes << "gem-c-layout-super-navigation-header__navigation-second-item-link--with-description" if has_description
221
- %>
222
- <li class="gem-c-layout-super-navigation-header__dropdown-list-item">
223
- <%= link_to item[:label], item[:href], {
224
- class: link_classes,
225
- data: {
226
- ga4_link: {
227
- "event_name": "navigation",
228
- "type": "header menu bar",
229
- "index_section": column_index + 1,
230
- "index_link": index + 1,
231
- "index_section_count": 3,
232
- "index_total": index_total,
233
- "section": column[:label],
234
- },
235
- },
236
- } %>
237
- <%= tag.p item[:description], class: "gem-c-layout-super-navigation-header__navigation-second-item-description" if has_description %>
238
- </li>
239
- <% end %>
240
- </ul>
241
- </div>
242
- <% end %>
243
- </div>
244
- </div>
204
+ <span class="govuk-visually-hidden">
205
+ <%= search_text %>
206
+ </span>
207
+ <%=
208
+ render "govuk_publishing_components/components/search/search_icon", {
209
+ classes: %w[gem-c-layout-super-navigation-header__search-toggle-button-link-icon],
210
+ }
211
+ %>
212
+ <span
213
+ aria-hidden="true"
214
+ class="gem-c-layout-super-navigation-header__navigation-top-toggle-close-icon">
215
+ &times;
216
+ </span>
245
217
  <% end %>
246
218
 
247
- <%= content_tag(:div, {
248
- id: "super-search-menu",
249
- hidden: "",
250
- class: dropdown_menu_classes,
251
- }) do %>
252
- <div class="govuk-width-container gem-c-layout-super-navigation-header__search-container gem-c-layout-super-navigation-header__search-items">
253
- <h3 class="govuk-visually-hidden">
254
- <%= navigation_search_subheading %>
255
- </h3>
256
- <div class="govuk-grid-row">
257
- <div class="govuk-grid-column-full">
258
- <%= tag.form(
259
- class: "gem-c-layout-super-navigation-header__search-form",
260
- id: "search",
261
- data: {
262
- module: "ga4-search-tracker",
263
- ga4_search_type: "header menu bar",
264
- ga4_search_url: "/search/all",
265
- ga4_search_section: "Search GOV.UK",
266
- ga4_search_index_section: 3,
267
- ga4_search_index_section_count: 3,
268
- },
269
- action: "/search/all",
270
- method: "get",
271
- role: "search",
272
- aria: {
273
- label: "Site-wide",
274
- },
275
- ) do %>
276
- <%= render "govuk_publishing_components/components/search_with_autocomplete", {
277
- name: "keywords",
278
- inline_label: false,
279
- label_size: "m",
280
- label_text: search_text,
281
- label_custom_class: "gem-c-layout-super-navigation-header__search-label--large-navbar",
282
- size: "large",
283
- margin_bottom: 0,
284
- disable_corrections: true,
285
- source_url: [Plek.new.website_root, "/api/search/autocomplete.json"].join,
286
- source_key: "suggestions",
287
- } %>
288
- <% end %>
289
- </div>
219
+ <%= link_to "/search", {
220
+ class: search_item_link_classes,
221
+ } do %>
222
+ <span class="govuk-visually-hidden">
223
+ <%= search_text %>
224
+ </span>
225
+ <%=
226
+ render "govuk_publishing_components/components/search/search_icon", {
227
+ classes: %w[gem-c-layout-super-navigation-header__search-item-link-icon],
228
+ }
229
+ %>
230
+ <% end %>
231
+ </div>
232
+ <%= content_tag(:div, {
233
+ id: "super-search-menu",
234
+ hidden: "",
235
+ class: dropdown_menu_classes,
236
+ }) do %>
237
+ <div class="gem-c-layout-super-navigation-header__search-container gem-c-layout-super-navigation-header__search-items">
238
+ <h3 class="govuk-visually-hidden">
239
+ <%= navigation_search_subheading %>
240
+ </h3>
241
+ <div class="govuk-grid-row">
242
+ <div class="govuk-grid-column-full">
243
+ <%= tag.form(
244
+ class: "gem-c-layout-super-navigation-header__search-form",
245
+ id: "search",
246
+ data: {
247
+ module: "ga4-search-tracker",
248
+ ga4_search_type: "header menu bar",
249
+ ga4_search_url: "/search/all",
250
+ ga4_search_section: "Search GOV.UK",
251
+ ga4_search_index_section: 3,
252
+ ga4_search_index_section_count: 3,
253
+ },
254
+ action: "/search/all",
255
+ method: "get",
256
+ role: "search",
257
+ aria: {
258
+ label: "Site-wide",
259
+ },
260
+ ) do %>
261
+ <%= render "govuk_publishing_components/components/search_with_autocomplete", {
262
+ name: "keywords",
263
+ inline_label: false,
264
+ label_size: "m",
265
+ label_text: search_text,
266
+ label_custom_class: "gem-c-layout-super-navigation-header__search-label--large-navbar",
267
+ size: "large",
268
+ margin_bottom: 0,
269
+ disable_corrections: true,
270
+ source_url: [Plek.new.website_root, "/api/search/autocomplete.json"].join,
271
+ source_key: "suggestions",
272
+ } %>
273
+ <% end %>
290
274
  </div>
291
275
  </div>
292
- <% end %>
293
- </nav>
294
- </div>
276
+ </div>
277
+ <% end %>
278
+ </nav>
279
+ </div>
295
280
  <% end %>
@@ -31,8 +31,8 @@
31
31
  <%= tag.dl class: "govuk-summary-list" do %>
32
32
  <% rows.each do |row| %>
33
33
  <%
34
- row_classes = "govuk-summary-list__row"
35
- row_classes << " govuk-summary-list__row--no-actions" if row[:actions].blank?
34
+ row_classes = %w(govuk-summary-list__row)
35
+ row_classes << "govuk-summary-list__row--no-actions" if row[:actions].blank?
36
36
  %>
37
37
  <%= tag.div class: row_classes, data: row[:data] do %>
38
38
  <%= tag.dt class: "govuk-summary-list__key" do %>
@@ -544,6 +544,75 @@ examples:
544
544
  </div>
545
545
  </div>
546
546
  </div>
547
+ contact_content_block:
548
+ data:
549
+ block: |
550
+ <div class="content-block content-block--contact">
551
+ <dl class="vcard content-block__contact-list">
552
+ <dt class="content-block__contact-key fn org">Get help with your application</dt>
553
+ <dd class="content-block__contact-value">
554
+ <dl class="content-block__contact-list--nested">
555
+ <dt class="content-block__contact-key">Address</dt>
556
+ <dd class="content-block__contact-value">
557
+ <p class="adr">
558
+ <span class="street-address"> 49 to 53 Cherry Street</span>,<br><span class="locality">London</span>,<br><span class="postal-code"> AB1 2DC </span>
559
+ </p>
560
+ </dd>
561
+ <dt class="content-block__contact-key">Email</dt>
562
+ <dd class="content-block__contact-value">
563
+ <ul class="content-block__list">
564
+ <li>
565
+ <a href="mailto:name@example.com" class="email">
566
+ name@example.com
567
+ </a>
568
+ </li>
569
+ <li>
570
+ <p>We aim to respond within 2 working days</p>
571
+ </li>
572
+ </ul>
573
+ </dd>
574
+ <dt class="content-block__contact-key">Phone</dt>
575
+ <dd class="content-block__contact-value">
576
+ <p>If you have a unique reference number, have it with you when you call.</p>
577
+ <ul class="content-block__list">
578
+ <li>
579
+ <span>Phone: </span>
580
+ <span class="tel">020 7946 0101</span>
581
+ </li>
582
+ <li>
583
+ <span>Textphone: </span>
584
+ <span class="tel">020 7946 0102</span>
585
+ </li>
586
+ <li>
587
+ <span>Welsh language: </span>
588
+ <span class="tel">020 7946 0103</span>
589
+ </li>
590
+ </ul>
591
+ <p>Monday to Friday, 8am to 6pm<br>
592
+ Saturday and Sunday, 10am to 4pm</p>
593
+ <p>
594
+ <a href="https://gov.uk/call-charges">
595
+ Find out about call charges
596
+ </a>
597
+ </p>
598
+ </dd>
599
+ <dt class="content-block__contact-key">Webchat</dt>
600
+ <dd class="content-block__contact-value">
601
+ <ul class="content-block__list">
602
+ <li>
603
+ <a href="http://example.com" class="url">
604
+ Speak to an adviser now
605
+ </a>
606
+ </li>
607
+ <li>
608
+ <p>Current waiting time is 17 minutes</p>
609
+ </li>
610
+ </ul>
611
+ </dd>
612
+ </dl>
613
+ </dd>
614
+ </dl>
615
+ </div>
547
616
  charts:
548
617
  description: |
549
618
  The Government Statistical Service (GSS) guidance recommends [a limit of four categories as best practice for basic data visualisations](https://gss.civilservice.gov.uk/policy-store/data-visualisation-colours-in-charts/#section-5).
@@ -38,13 +38,6 @@ examples:
38
38
  description: This allows the header to be omitted which is currently used when rendering CSV previews from Whitehall
39
39
  data:
40
40
  omit_header: true
41
- blue_bar_background:
42
- description: For use when a page has a heading component with a background colour.
43
- data:
44
- for_static: true
45
- full_width: true
46
- blue_bar: true
47
- blue_bar_background_colour: "no"
48
41
  omit_feedback:
49
42
  description: This allows the feedback form to be omitted
50
43
  data:
@@ -74,17 +74,6 @@ examples:
74
74
  - locale: 'cy'
75
75
  base_path: '/cy'
76
76
  text: 'Cymraeg'
77
- with_no_top_margin:
78
- data:
79
- no_margin_top: true
80
- translations:
81
- - locale: 'en'
82
- base_path: '/en'
83
- text: 'English'
84
- active: true
85
- - locale: 'cy'
86
- base_path: '/cy'
87
- text: 'Cymraeg'
88
77
  with_data_attributes_on_links:
89
78
  description: Data attributes can be passed for each link as shown.
90
79
  data:
@@ -54,7 +54,7 @@ ar:
54
54
  html: يمكنك %{link} في أي وقت.
55
55
  link: قم بتغيير إعدادات ملفات تعريف الارتباط الخاصة بك
56
56
  rejected:
57
- hide: إخفاء هذه الرسالة
57
+ hide:
58
58
  text:
59
59
  - نحن نستخدم بعض ملفات تعريف الارتباط الأساسية لجعل هذا الموقع يعمل.
60
60
  - نود تعيين ملفات تعريف ارتباط إضافية لفهم كيفية استخدامك لـموقع GOV.UK، ولتذكر إعداداتك، ولتحسين الخدمات الحكومية.
@@ -50,7 +50,7 @@ az:
50
50
  html: İstənilən vaxt %{link}.
51
51
  link: Kuki parametrlərinizi dəyişdirin
52
52
  rejected:
53
- hide: Bu mesajı gizlət
53
+ hide:
54
54
  text:
55
55
  - Biz bu vebsaytın işləməsini təmin etmək üçün bəzi zəruri kukilərdən istifadə edirik.
56
56
  - Biz GOV.UK-dən necə istifadə etdiyinizi anlamaq
@@ -52,7 +52,7 @@ be:
52
52
  html: Вы можаце %{link} у любы час.
53
53
  link: змяніць налады файлаў cookie
54
54
  rejected:
55
- hide: Схаваць гэта паведамленне
55
+ hide:
56
56
  text:
57
57
  - Мы выкарыстоўваем некаторыя асноўныя файлы cookie для забеспячэння працы гэтага сайта.
58
58
  - Мы хацелі б наладзіць дадатковыя файлы cookie
@@ -50,7 +50,7 @@ bg:
50
50
  html: Можете да %{link} по всяко време.
51
51
  link: Промяна на настройките за бисквитките
52
52
  rejected:
53
- hide: Скриване на това съобщение
53
+ hide:
54
54
  text:
55
55
  - Използваме някои основни бисквитки
56
56
  - за да работи този уебсайт.