govuk_publishing_components 60.2.1 → 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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +704 -594
- data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +51 -40
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +0 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_select-with-search.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +0 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +2 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +9 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_content-block.scss +27 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_css3.scss +6 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss +0 -13
- data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +0 -3
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +222 -237
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +69 -0
- data/app/views/govuk_publishing_components/components/docs/translation_nav.yml +0 -11
- data/lib/govuk_publishing_components/presenters/translation_nav_helper.rb +0 -6
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +2 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_govuk-template-link-focus-override.scss +0 -14
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss +0 -22
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_prefixed-transform.scss +0 -5
data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb
CHANGED
@@ -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
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
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
|
-
|
74
|
-
<
|
75
|
-
|
76
|
-
|
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
|
-
|
84
|
-
|
85
|
-
|
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
|
-
|
89
|
-
|
90
|
-
|
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
|
-
|
93
|
-
|
94
|
-
|
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
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
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
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
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
|
-
×
|
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
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
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
|
-
|
191
|
-
|
192
|
-
|
193
|
-
class:
|
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
|
-
<
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
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
|
+
×
|
216
|
+
</span>
|
245
217
|
<% end %>
|
246
218
|
|
247
|
-
<%=
|
248
|
-
|
249
|
-
|
250
|
-
class
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
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
|
-
|
293
|
-
|
294
|
-
</
|
276
|
+
</div>
|
277
|
+
<% end %>
|
278
|
+
</nav>
|
279
|
+
</div>
|
295
280
|
<% end %>
|
@@ -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).
|
@@ -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:
|
@@ -6,7 +6,6 @@ module GovukPublishingComponents
|
|
6
6
|
def initialize(local_assigns)
|
7
7
|
@translations = []
|
8
8
|
@translations = local_assigns[:translations] if local_assigns[:translations]
|
9
|
-
@no_margin_top = local_assigns[:no_margin_top]
|
10
9
|
@inverse = local_assigns[:inverse]
|
11
10
|
end
|
12
11
|
|
@@ -17,17 +16,12 @@ module GovukPublishingComponents
|
|
17
16
|
def classes
|
18
17
|
classes = %w[gem-c-translation-nav]
|
19
18
|
classes << inverse_class if @inverse
|
20
|
-
classes << margin_class if @no_margin_top
|
21
19
|
classes.join(" ")
|
22
20
|
end
|
23
21
|
|
24
22
|
def inverse_class
|
25
23
|
"gem-c-translation-nav--inverse"
|
26
24
|
end
|
27
|
-
|
28
|
-
def margin_class
|
29
|
-
"gem-c-translation-nav--no-margin-top"
|
30
|
-
end
|
31
25
|
end
|
32
26
|
end
|
33
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 61.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
@@ -635,6 +635,7 @@ files:
|
|
635
635
|
- app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss
|
636
636
|
- app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss
|
637
637
|
- app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss
|
638
|
+
- app/assets/stylesheets/govuk_publishing_components/components/govspeak/_content-block.scss
|
638
639
|
- app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss
|
639
640
|
- app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss
|
640
641
|
- app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss
|
@@ -656,11 +657,8 @@ files:
|
|
656
657
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_link.scss
|
657
658
|
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss
|
658
659
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_css3.scss
|
659
|
-
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_govuk-template-link-focus-override.scss
|
660
660
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_grid-helper.scss
|
661
661
|
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss
|
662
|
-
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
|
663
|
-
- app/assets/stylesheets/govuk_publishing_components/components/mixins/_prefixed-transform.scss
|
664
662
|
- app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss
|
665
663
|
- app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss
|
666
664
|
- app/controllers/govuk_publishing_components/application_controller.rb
|