govuk_publishing_components 66.6.1 → 66.7.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/components/chart.js +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/all-components.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +8 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/_chart.scss +60 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +3 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_high-contrast-outline.scss +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_index.scss +1 -0
- data/app/views/govuk_publishing_components/component_guide/index.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/_chart.html.erb +131 -0
- data/app/views/govuk_publishing_components/components/_service_navigation.html.erb +5 -3
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_tabs.html.erb +4 -4
- data/app/views/govuk_publishing_components/components/docs/chart.yml +425 -0
- data/app/views/govuk_publishing_components/components/docs/service_navigation.yml +11 -0
- data/app/views/govuk_publishing_components/components/docs/tabs.yml +8 -7
- data/config/locales/ar.yml +8 -0
- data/config/locales/az.yml +8 -0
- data/config/locales/be.yml +8 -0
- data/config/locales/bg.yml +8 -0
- data/config/locales/bn.yml +8 -0
- data/config/locales/cs.yml +8 -0
- data/config/locales/cy.yml +8 -0
- data/config/locales/da.yml +8 -0
- data/config/locales/de.yml +8 -0
- data/config/locales/dr.yml +8 -0
- data/config/locales/el.yml +8 -0
- data/config/locales/en.yml +8 -0
- data/config/locales/es-419.yml +8 -0
- data/config/locales/es.yml +8 -0
- data/config/locales/et.yml +8 -0
- data/config/locales/fa.yml +8 -0
- data/config/locales/fi.yml +8 -0
- data/config/locales/fr.yml +8 -0
- data/config/locales/gd.yml +8 -0
- data/config/locales/gu.yml +8 -0
- data/config/locales/he.yml +8 -0
- data/config/locales/hi.yml +8 -0
- data/config/locales/hr.yml +8 -0
- data/config/locales/hu.yml +8 -0
- data/config/locales/hy.yml +8 -0
- data/config/locales/id.yml +8 -0
- data/config/locales/is.yml +8 -0
- data/config/locales/it.yml +8 -0
- data/config/locales/ja.yml +8 -0
- data/config/locales/ka.yml +8 -0
- data/config/locales/kk.yml +8 -0
- data/config/locales/ko.yml +8 -0
- data/config/locales/ku.yml +8 -0
- data/config/locales/ky.yml +8 -0
- data/config/locales/lt.yml +8 -0
- data/config/locales/lv.yml +8 -0
- data/config/locales/ms.yml +8 -0
- data/config/locales/mt.yml +8 -0
- data/config/locales/ne.yml +8 -0
- data/config/locales/nl.yml +8 -0
- data/config/locales/no.yml +8 -0
- data/config/locales/pa-pk.yml +8 -0
- data/config/locales/pa.yml +8 -0
- data/config/locales/pl.yml +8 -0
- data/config/locales/ps.yml +8 -0
- data/config/locales/pt.yml +8 -0
- data/config/locales/ro.yml +8 -0
- data/config/locales/ru.yml +8 -0
- data/config/locales/si.yml +8 -0
- data/config/locales/sk.yml +8 -0
- data/config/locales/sl.yml +8 -0
- data/config/locales/so.yml +8 -0
- data/config/locales/sq.yml +8 -0
- data/config/locales/sr.yml +8 -0
- data/config/locales/sv.yml +8 -0
- data/config/locales/sw.yml +8 -0
- data/config/locales/ta.yml +8 -0
- data/config/locales/th.yml +8 -0
- data/config/locales/ti.yml +8 -0
- data/config/locales/tk.yml +8 -0
- data/config/locales/tr.yml +8 -0
- data/config/locales/uk.yml +8 -0
- data/config/locales/ur.yml +8 -0
- data/config/locales/uz.yml +8 -0
- data/config/locales/vi.yml +8 -0
- data/config/locales/zh-hk.yml +8 -0
- data/config/locales/zh-tw.yml +8 -0
- data/config/locales/zh.yml +8 -0
- data/lib/govuk_publishing_components/presenters/chart_helper.rb +123 -0
- data/lib/govuk_publishing_components/presenters/select_helper.rb +3 -3
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/lib/govuk_publishing_components.rb +1 -0
- data/node_modules/chartkick/LICENSE.txt +22 -0
- data/node_modules/chartkick/README.md +593 -0
- data/node_modules/chartkick/chart.js/chart.esm.js +5 -0
- data/node_modules/chartkick/chart.js/package.json +6 -0
- data/node_modules/chartkick/dist/chartkick.esm.js +2562 -0
- data/node_modules/chartkick/dist/chartkick.js +2570 -0
- data/node_modules/chartkick/dist/chartkick.min.js +2 -0
- data/node_modules/chartkick/highcharts/highcharts.esm.js +4 -0
- data/node_modules/chartkick/highcharts/package.json +6 -0
- data/node_modules/chartkick/package.json +50 -0
- metadata +18 -2
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
name: Chart (experimental)
|
|
2
|
+
description: The chart component presents a data chart and a tabular version of the same data
|
|
3
|
+
body: |
|
|
4
|
+
This component takes a set of data and presents it as a line graph and a table with one or more rows and lines.
|
|
5
|
+
The chart relies upon chartkick and renders using JavaScript, so the table is provided as a fallback for a lack of JavaScript,
|
|
6
|
+
an accessible view on the data for screenreaders, and a simple view of the raw data for all users.
|
|
7
|
+
accessibility_criteria: |
|
|
8
|
+
Charts must:
|
|
9
|
+
|
|
10
|
+
- use line colours with a contrast ratio higher than 4.5:1 against the background colour to meet WCAG AA
|
|
11
|
+
- contain a `heading` and `description` so that skip links and semantics are accurate
|
|
12
|
+
shared_accessibility_criteria:
|
|
13
|
+
- link
|
|
14
|
+
uses_component_wrapper_helper: true
|
|
15
|
+
examples:
|
|
16
|
+
default:
|
|
17
|
+
data:
|
|
18
|
+
heading: Chart showing page views on the website in January 2015
|
|
19
|
+
h_axis_title: Day
|
|
20
|
+
v_axis_title: Views
|
|
21
|
+
description: This chart shows page views for January 2015.
|
|
22
|
+
source: GOV.UK
|
|
23
|
+
keys:
|
|
24
|
+
- "2015-01-01"
|
|
25
|
+
- "2015-01-02"
|
|
26
|
+
- "2015-01-03"
|
|
27
|
+
- "2015-01-04"
|
|
28
|
+
- "2015-01-05"
|
|
29
|
+
- "2015-01-06"
|
|
30
|
+
- "2015-01-07"
|
|
31
|
+
- "2015-01-08"
|
|
32
|
+
- "2015-01-09"
|
|
33
|
+
- "2015-01-10"
|
|
34
|
+
rows:
|
|
35
|
+
- label: January 2015
|
|
36
|
+
values:
|
|
37
|
+
- 500
|
|
38
|
+
- 1190
|
|
39
|
+
- 740
|
|
40
|
+
- 820
|
|
41
|
+
- 270
|
|
42
|
+
- 450
|
|
43
|
+
- 110
|
|
44
|
+
- 210
|
|
45
|
+
- 670
|
|
46
|
+
- 430
|
|
47
|
+
multiple_rows_of_data:
|
|
48
|
+
description: Where more than one series is shown on a chart, hide_legend will not work.
|
|
49
|
+
data:
|
|
50
|
+
heading: Page views chart
|
|
51
|
+
h_axis_title: Day
|
|
52
|
+
v_axis_title: Views
|
|
53
|
+
description: This chart shows page views for January in different years.
|
|
54
|
+
keys:
|
|
55
|
+
- 1st
|
|
56
|
+
- 2nd
|
|
57
|
+
- 3rd
|
|
58
|
+
- 4th
|
|
59
|
+
- 5th
|
|
60
|
+
- 6th
|
|
61
|
+
- 7th
|
|
62
|
+
- 8th
|
|
63
|
+
- 9th
|
|
64
|
+
- 10th
|
|
65
|
+
rows:
|
|
66
|
+
- label: January 2015
|
|
67
|
+
values:
|
|
68
|
+
- 5
|
|
69
|
+
- 119
|
|
70
|
+
- 74
|
|
71
|
+
- 82
|
|
72
|
+
- 27
|
|
73
|
+
- 45
|
|
74
|
+
- 11
|
|
75
|
+
- 21
|
|
76
|
+
- 67
|
|
77
|
+
- 43
|
|
78
|
+
- label: January 2016
|
|
79
|
+
values:
|
|
80
|
+
- 5
|
|
81
|
+
- 8
|
|
82
|
+
- 37
|
|
83
|
+
- 50
|
|
84
|
+
- 43
|
|
85
|
+
- 29
|
|
86
|
+
- 67
|
|
87
|
+
- 61
|
|
88
|
+
- 14
|
|
89
|
+
- 91
|
|
90
|
+
- label: January 2017
|
|
91
|
+
values:
|
|
92
|
+
- 31
|
|
93
|
+
- 81
|
|
94
|
+
- 12
|
|
95
|
+
- 15
|
|
96
|
+
- 52
|
|
97
|
+
- 61
|
|
98
|
+
- 143
|
|
99
|
+
- 27
|
|
100
|
+
- 18
|
|
101
|
+
- 34
|
|
102
|
+
hide_legend:
|
|
103
|
+
description: This will only work when there is only one row of data.
|
|
104
|
+
data:
|
|
105
|
+
hide_legend: true
|
|
106
|
+
heading: Page views chart
|
|
107
|
+
h_axis_title: Day
|
|
108
|
+
v_axis_title: Views
|
|
109
|
+
description: This chart shows page views for January 2015.
|
|
110
|
+
keys:
|
|
111
|
+
- "2015-01-01"
|
|
112
|
+
- "2015-01-02"
|
|
113
|
+
- "2015-01-03"
|
|
114
|
+
- "2015-01-04"
|
|
115
|
+
- "2015-01-05"
|
|
116
|
+
- "2015-01-06"
|
|
117
|
+
- "2015-01-07"
|
|
118
|
+
- "2015-01-08"
|
|
119
|
+
- "2015-01-09"
|
|
120
|
+
- "2015-01-10"
|
|
121
|
+
rows:
|
|
122
|
+
- label: January 2015
|
|
123
|
+
values:
|
|
124
|
+
- 500
|
|
125
|
+
- 1190
|
|
126
|
+
- 740
|
|
127
|
+
- 820
|
|
128
|
+
- 270
|
|
129
|
+
- 450
|
|
130
|
+
- 110
|
|
131
|
+
- 210
|
|
132
|
+
- 670
|
|
133
|
+
- 430
|
|
134
|
+
with_line_colours_and_styles:
|
|
135
|
+
description: Note that this only works on line charts. Supported line style options are solid or dotted. Supported colours are CSS colour names (e.g. red, turquoise) and CSS hex codes (e.g. "#FF0000").
|
|
136
|
+
data:
|
|
137
|
+
line_colours:
|
|
138
|
+
- orange
|
|
139
|
+
- blue
|
|
140
|
+
- "#88AA11"
|
|
141
|
+
line_styles:
|
|
142
|
+
- solid
|
|
143
|
+
- dotted
|
|
144
|
+
- solid
|
|
145
|
+
heading: Page views chart
|
|
146
|
+
h_axis_title: Day
|
|
147
|
+
v_axis_title: Views
|
|
148
|
+
description: This chart shows page views for January in different years.
|
|
149
|
+
keys:
|
|
150
|
+
- 1st
|
|
151
|
+
- 2nd
|
|
152
|
+
- 3rd
|
|
153
|
+
rows:
|
|
154
|
+
- label: January 2015
|
|
155
|
+
values:
|
|
156
|
+
- 110
|
|
157
|
+
- 119
|
|
158
|
+
- 105
|
|
159
|
+
- label: January 2016
|
|
160
|
+
values:
|
|
161
|
+
- 71
|
|
162
|
+
- 68
|
|
163
|
+
- 75
|
|
164
|
+
- label: January 2017
|
|
165
|
+
values:
|
|
166
|
+
- 21
|
|
167
|
+
- 42
|
|
168
|
+
- 18
|
|
169
|
+
bar_chart:
|
|
170
|
+
data:
|
|
171
|
+
chart_type: "bar"
|
|
172
|
+
heading: Hats owned
|
|
173
|
+
h_axis_title: Day
|
|
174
|
+
v_axis_title: Views
|
|
175
|
+
description: This chart shows page views for January 2015.
|
|
176
|
+
hide_legend: true
|
|
177
|
+
keys:
|
|
178
|
+
- Jon
|
|
179
|
+
- Ash
|
|
180
|
+
- James
|
|
181
|
+
- Phil
|
|
182
|
+
rows:
|
|
183
|
+
- label: Hats owned
|
|
184
|
+
values:
|
|
185
|
+
- 3
|
|
186
|
+
- 1
|
|
187
|
+
- 1
|
|
188
|
+
- 2
|
|
189
|
+
column_chart:
|
|
190
|
+
data:
|
|
191
|
+
chart_type: "column"
|
|
192
|
+
heading: Hats owned
|
|
193
|
+
h_axis_title: Day
|
|
194
|
+
v_axis_title: Views
|
|
195
|
+
description: This chart shows page views for January 2015.
|
|
196
|
+
hide_legend: true
|
|
197
|
+
keys:
|
|
198
|
+
- Jon
|
|
199
|
+
- Ash
|
|
200
|
+
- James
|
|
201
|
+
- Phil
|
|
202
|
+
rows:
|
|
203
|
+
- label: Hats owned
|
|
204
|
+
values:
|
|
205
|
+
- 3
|
|
206
|
+
- 1
|
|
207
|
+
- 1
|
|
208
|
+
- 2
|
|
209
|
+
format_axis_labels:
|
|
210
|
+
description: |
|
|
211
|
+
Axis labels can be forced into date or currency format as shown.
|
|
212
|
+
|
|
213
|
+
'currency' will add a currency symbol (£) at the start of the labels.
|
|
214
|
+
|
|
215
|
+
'percent' will add a percent (%) to the end of the labels.
|
|
216
|
+
|
|
217
|
+
'date' will force a standard date format of `YYYY-MM-DD` to the labels, where they are in an undesirable date format. This can be useful if there are a lot of labels on the axes because the chart can do strange truncation sometimes.
|
|
218
|
+
data:
|
|
219
|
+
v_axis_format: currency
|
|
220
|
+
h_axis_format: date
|
|
221
|
+
heading: Cost per day
|
|
222
|
+
h_axis_title: Day
|
|
223
|
+
v_axis_title: Cost
|
|
224
|
+
description: This chart shows cost per day.
|
|
225
|
+
keys:
|
|
226
|
+
- 2024 Jan 1
|
|
227
|
+
- 2024 Jan 2
|
|
228
|
+
- 2024 Jan 3
|
|
229
|
+
- 2024 Jan 4
|
|
230
|
+
- 2024 Jan 5
|
|
231
|
+
- 2024 Jan 6
|
|
232
|
+
rows:
|
|
233
|
+
- label: Cost
|
|
234
|
+
values:
|
|
235
|
+
- 14
|
|
236
|
+
- 29
|
|
237
|
+
- 45
|
|
238
|
+
- 63
|
|
239
|
+
- 54
|
|
240
|
+
- 22
|
|
241
|
+
horizontal_table:
|
|
242
|
+
description: Reorient the table to better suit the output of some data sets.
|
|
243
|
+
data:
|
|
244
|
+
table_direction: horizontal
|
|
245
|
+
heading: Page views chart
|
|
246
|
+
h_axis_title: Day
|
|
247
|
+
v_axis_title: Views
|
|
248
|
+
description: This chart shows page views for January in different years.
|
|
249
|
+
keys:
|
|
250
|
+
- 1st
|
|
251
|
+
- 2nd
|
|
252
|
+
- 3rd
|
|
253
|
+
- 4th
|
|
254
|
+
- 5th
|
|
255
|
+
- 6th
|
|
256
|
+
- 7th
|
|
257
|
+
rows:
|
|
258
|
+
- label: January 2015
|
|
259
|
+
values:
|
|
260
|
+
- 5
|
|
261
|
+
- 119
|
|
262
|
+
- 74
|
|
263
|
+
- 117
|
|
264
|
+
- 33
|
|
265
|
+
- 89
|
|
266
|
+
- 79
|
|
267
|
+
- label: January 2016
|
|
268
|
+
values:
|
|
269
|
+
- 3
|
|
270
|
+
- 8
|
|
271
|
+
- 37
|
|
272
|
+
- 82
|
|
273
|
+
- 118
|
|
274
|
+
- 85
|
|
275
|
+
- 80
|
|
276
|
+
scale_y_axis_based_on_data:
|
|
277
|
+
description: |
|
|
278
|
+
By default the Y-axis will always start at zero, but this may not always be required.
|
|
279
|
+
|
|
280
|
+
If there are empty items in the data the chart line will either discontinue or leave a gap, as shown.
|
|
281
|
+
data:
|
|
282
|
+
y_axis_auto_adjust: true
|
|
283
|
+
heading: Page views chart
|
|
284
|
+
h_axis_title: Day
|
|
285
|
+
v_axis_title: Views
|
|
286
|
+
description: This chart shows page views for January 2015.
|
|
287
|
+
hide_legend: true
|
|
288
|
+
keys:
|
|
289
|
+
- "2015-01-01"
|
|
290
|
+
- "2015-01-02"
|
|
291
|
+
- "2015-01-03"
|
|
292
|
+
- "2015-01-04"
|
|
293
|
+
- "2015-01-05"
|
|
294
|
+
- "2015-01-06"
|
|
295
|
+
- "2015-01-07"
|
|
296
|
+
- "2015-01-08"
|
|
297
|
+
- "2015-01-09"
|
|
298
|
+
- "2015-01-10"
|
|
299
|
+
- "2015-01-11"
|
|
300
|
+
- "2015-01-12"
|
|
301
|
+
- "2015-01-13"
|
|
302
|
+
rows:
|
|
303
|
+
- label: January 2015
|
|
304
|
+
values:
|
|
305
|
+
- 1500
|
|
306
|
+
- 1190
|
|
307
|
+
- 1740
|
|
308
|
+
- 1820
|
|
309
|
+
- 1270
|
|
310
|
+
-
|
|
311
|
+
-
|
|
312
|
+
- 1450
|
|
313
|
+
- 1110
|
|
314
|
+
- 1210
|
|
315
|
+
- 1670
|
|
316
|
+
- 1430
|
|
317
|
+
- 1352
|
|
318
|
+
with_a_different_heading_level:
|
|
319
|
+
description: Use a different heading level for the chart heading. It defaults to a H2.
|
|
320
|
+
data:
|
|
321
|
+
heading_level: 4
|
|
322
|
+
heading: Page views chart
|
|
323
|
+
h_axis_title: Day
|
|
324
|
+
v_axis_title: Views
|
|
325
|
+
description: This chart shows page views for January in different years.
|
|
326
|
+
keys:
|
|
327
|
+
- 1st
|
|
328
|
+
- 2nd
|
|
329
|
+
- 3rd
|
|
330
|
+
- 4th
|
|
331
|
+
- 5th
|
|
332
|
+
- 6th
|
|
333
|
+
- 7th
|
|
334
|
+
rows:
|
|
335
|
+
- label: January 2015
|
|
336
|
+
values:
|
|
337
|
+
- 5
|
|
338
|
+
- 119
|
|
339
|
+
- 74
|
|
340
|
+
- 117
|
|
341
|
+
- 33
|
|
342
|
+
- 89
|
|
343
|
+
- 79
|
|
344
|
+
- label: January 2016
|
|
345
|
+
values:
|
|
346
|
+
- 3
|
|
347
|
+
- 8
|
|
348
|
+
- 37
|
|
349
|
+
- 82
|
|
350
|
+
- 118
|
|
351
|
+
- 85
|
|
352
|
+
- 80
|
|
353
|
+
with_a_download_link:
|
|
354
|
+
description: Add a download link to the original data. Doesn't do anything clever, just creates a link to the URL passed.
|
|
355
|
+
data:
|
|
356
|
+
download_link: 'https://www.gov.uk'
|
|
357
|
+
heading: Page views chart
|
|
358
|
+
h_axis_title: Day
|
|
359
|
+
v_axis_title: Views
|
|
360
|
+
description: This chart shows page views for January in different years.
|
|
361
|
+
keys:
|
|
362
|
+
- 1st
|
|
363
|
+
- 2nd
|
|
364
|
+
- 3rd
|
|
365
|
+
- 4th
|
|
366
|
+
- 5th
|
|
367
|
+
- 6th
|
|
368
|
+
- 7th
|
|
369
|
+
rows:
|
|
370
|
+
- label: January 2015
|
|
371
|
+
values:
|
|
372
|
+
- 5
|
|
373
|
+
- 119
|
|
374
|
+
- 74
|
|
375
|
+
- 117
|
|
376
|
+
- 33
|
|
377
|
+
- 89
|
|
378
|
+
- 79
|
|
379
|
+
- label: January 2016
|
|
380
|
+
values:
|
|
381
|
+
- 3
|
|
382
|
+
- 8
|
|
383
|
+
- 37
|
|
384
|
+
- 82
|
|
385
|
+
- 118
|
|
386
|
+
- 85
|
|
387
|
+
- 80
|
|
388
|
+
with_a_different_height:
|
|
389
|
+
description: |
|
|
390
|
+
Sets a height in pixels for the chart, defaulting to `400`. This is useful where the chart might appear in a narrow column and the default height would be too tall.
|
|
391
|
+
|
|
392
|
+
The component is not currently responsive.
|
|
393
|
+
data:
|
|
394
|
+
heading: Page views
|
|
395
|
+
h_axis_title: Day
|
|
396
|
+
v_axis_title: Views
|
|
397
|
+
description: This is a graph of views per day
|
|
398
|
+
height: 200
|
|
399
|
+
keys:
|
|
400
|
+
- 1st
|
|
401
|
+
- 2nd
|
|
402
|
+
- 3rd
|
|
403
|
+
- 4th
|
|
404
|
+
- 5th
|
|
405
|
+
- 6th
|
|
406
|
+
- 7th
|
|
407
|
+
rows:
|
|
408
|
+
- label: January 2015
|
|
409
|
+
values:
|
|
410
|
+
- 5
|
|
411
|
+
- 119
|
|
412
|
+
- 74
|
|
413
|
+
- 117
|
|
414
|
+
- 33
|
|
415
|
+
- 89
|
|
416
|
+
- 79
|
|
417
|
+
- label: January 2016
|
|
418
|
+
values:
|
|
419
|
+
- 3
|
|
420
|
+
- 8
|
|
421
|
+
- 37
|
|
422
|
+
- 82
|
|
423
|
+
- 118
|
|
424
|
+
- 85
|
|
425
|
+
- 80
|
|
@@ -24,6 +24,17 @@ examples:
|
|
|
24
24
|
href: "#"
|
|
25
25
|
- text: Navigation item 3
|
|
26
26
|
href: "#"
|
|
27
|
+
with_custom_mobile_toggle_text:
|
|
28
|
+
data:
|
|
29
|
+
toggle_text: See the menu
|
|
30
|
+
navigation_items:
|
|
31
|
+
- text: Navigation item 1
|
|
32
|
+
href: "#"
|
|
33
|
+
active: true
|
|
34
|
+
- text: Navigation item 2
|
|
35
|
+
href: "#"
|
|
36
|
+
- text: Navigation item 3
|
|
37
|
+
href: "#"
|
|
27
38
|
with_service_name:
|
|
28
39
|
data:
|
|
29
40
|
service_name: My service name
|
|
@@ -10,13 +10,14 @@ body: |
|
|
|
10
10
|
|
|
11
11
|
The content block MUST be passed as a block to avoid the risk of unsanitised HTML.
|
|
12
12
|
accessibility_criteria: |
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
Tabs must:
|
|
14
|
+
|
|
15
|
+
* accept focus
|
|
16
|
+
* be usable with a keyboard
|
|
17
|
+
* indicate when they have focus
|
|
18
|
+
* be usable with touch
|
|
19
|
+
* be usable with voice commands
|
|
20
|
+
* have visible text
|
|
20
21
|
uses_component_wrapper_helper: true
|
|
21
22
|
examples:
|
|
22
23
|
default:
|
data/config/locales/ar.yml
CHANGED
|
@@ -46,6 +46,12 @@ ar:
|
|
|
46
46
|
type:
|
|
47
47
|
characters: أحرف
|
|
48
48
|
words: كلمات
|
|
49
|
+
chart:
|
|
50
|
+
accessibility_heading:
|
|
51
|
+
accessibility_html:
|
|
52
|
+
accessibility_link:
|
|
53
|
+
source:
|
|
54
|
+
table_dropdown:
|
|
49
55
|
checkboxes:
|
|
50
56
|
or: أو
|
|
51
57
|
contents_list:
|
|
@@ -221,6 +227,8 @@ ar:
|
|
|
221
227
|
input_title: بحث
|
|
222
228
|
label: بحث على GOV.UK
|
|
223
229
|
search_button: بحث
|
|
230
|
+
service_navigation:
|
|
231
|
+
menu_toggle:
|
|
224
232
|
share_links:
|
|
225
233
|
all_opens_in_new_tab:
|
|
226
234
|
opens_in_new_tab:
|
data/config/locales/az.yml
CHANGED
|
@@ -42,6 +42,12 @@ az:
|
|
|
42
42
|
type:
|
|
43
43
|
characters: simvol
|
|
44
44
|
words: söz
|
|
45
|
+
chart:
|
|
46
|
+
accessibility_heading:
|
|
47
|
+
accessibility_html:
|
|
48
|
+
accessibility_link:
|
|
49
|
+
source:
|
|
50
|
+
table_dropdown:
|
|
45
51
|
checkboxes:
|
|
46
52
|
or: və ya
|
|
47
53
|
contents_list:
|
|
@@ -218,6 +224,8 @@ az:
|
|
|
218
224
|
input_title: Axtar
|
|
219
225
|
label: GOV.UK-də axtar
|
|
220
226
|
search_button: Axtar
|
|
227
|
+
service_navigation:
|
|
228
|
+
menu_toggle:
|
|
221
229
|
share_links:
|
|
222
230
|
all_opens_in_new_tab:
|
|
223
231
|
opens_in_new_tab:
|
data/config/locales/be.yml
CHANGED
|
@@ -44,6 +44,12 @@ be:
|
|
|
44
44
|
type:
|
|
45
45
|
characters: знакаў
|
|
46
46
|
words: словаў
|
|
47
|
+
chart:
|
|
48
|
+
accessibility_heading:
|
|
49
|
+
accessibility_html:
|
|
50
|
+
accessibility_link:
|
|
51
|
+
source:
|
|
52
|
+
table_dropdown:
|
|
47
53
|
checkboxes:
|
|
48
54
|
or: або
|
|
49
55
|
contents_list:
|
|
@@ -224,6 +230,8 @@ be:
|
|
|
224
230
|
input_title: Пошук
|
|
225
231
|
label: Шукаць на GOV.UK
|
|
226
232
|
search_button: Пошук
|
|
233
|
+
service_navigation:
|
|
234
|
+
menu_toggle:
|
|
227
235
|
share_links:
|
|
228
236
|
all_opens_in_new_tab:
|
|
229
237
|
opens_in_new_tab:
|
data/config/locales/bg.yml
CHANGED
|
@@ -42,6 +42,12 @@ bg:
|
|
|
42
42
|
type:
|
|
43
43
|
characters: символа
|
|
44
44
|
words: думи
|
|
45
|
+
chart:
|
|
46
|
+
accessibility_heading:
|
|
47
|
+
accessibility_html:
|
|
48
|
+
accessibility_link:
|
|
49
|
+
source:
|
|
50
|
+
table_dropdown:
|
|
45
51
|
checkboxes:
|
|
46
52
|
or: или
|
|
47
53
|
contents_list:
|
|
@@ -222,6 +228,8 @@ bg:
|
|
|
222
228
|
input_title: Търсене
|
|
223
229
|
label: Търсене в GOV.UK
|
|
224
230
|
search_button: Търсене
|
|
231
|
+
service_navigation:
|
|
232
|
+
menu_toggle:
|
|
225
233
|
share_links:
|
|
226
234
|
all_opens_in_new_tab:
|
|
227
235
|
opens_in_new_tab:
|
data/config/locales/bn.yml
CHANGED
|
@@ -42,6 +42,12 @@ bn:
|
|
|
42
42
|
type:
|
|
43
43
|
characters: ক্যারেক্টার
|
|
44
44
|
words: শব্দসমষ্টি
|
|
45
|
+
chart:
|
|
46
|
+
accessibility_heading:
|
|
47
|
+
accessibility_html:
|
|
48
|
+
accessibility_link:
|
|
49
|
+
source:
|
|
50
|
+
table_dropdown:
|
|
45
51
|
checkboxes:
|
|
46
52
|
or: অথবা
|
|
47
53
|
contents_list:
|
|
@@ -219,6 +225,8 @@ bn:
|
|
|
219
225
|
input_title: খুঁজুন
|
|
220
226
|
label: GOV.UK-এ অনুসন্ধান করুন
|
|
221
227
|
search_button: খুঁজুন
|
|
228
|
+
service_navigation:
|
|
229
|
+
menu_toggle:
|
|
222
230
|
share_links:
|
|
223
231
|
all_opens_in_new_tab:
|
|
224
232
|
opens_in_new_tab:
|
data/config/locales/cs.yml
CHANGED
|
@@ -43,6 +43,12 @@ cs:
|
|
|
43
43
|
type:
|
|
44
44
|
characters: znaky
|
|
45
45
|
words: slova
|
|
46
|
+
chart:
|
|
47
|
+
accessibility_heading:
|
|
48
|
+
accessibility_html:
|
|
49
|
+
accessibility_link:
|
|
50
|
+
source:
|
|
51
|
+
table_dropdown:
|
|
46
52
|
checkboxes:
|
|
47
53
|
or: nebo
|
|
48
54
|
contents_list:
|
|
@@ -223,6 +229,8 @@ cs:
|
|
|
223
229
|
input_title: Vyhledávání
|
|
224
230
|
label: Vyhledávání na GOV.UK
|
|
225
231
|
search_button: Vyhledávání
|
|
232
|
+
service_navigation:
|
|
233
|
+
menu_toggle:
|
|
226
234
|
share_links:
|
|
227
235
|
all_opens_in_new_tab:
|
|
228
236
|
opens_in_new_tab:
|
data/config/locales/cy.yml
CHANGED
|
@@ -46,6 +46,12 @@ cy:
|
|
|
46
46
|
type:
|
|
47
47
|
characters: nodau
|
|
48
48
|
words: geiriau
|
|
49
|
+
chart:
|
|
50
|
+
accessibility_heading:
|
|
51
|
+
accessibility_html:
|
|
52
|
+
accessibility_link:
|
|
53
|
+
source:
|
|
54
|
+
table_dropdown:
|
|
49
55
|
checkboxes:
|
|
50
56
|
or: neu
|
|
51
57
|
contents_list:
|
|
@@ -222,6 +228,8 @@ cy:
|
|
|
222
228
|
input_title: Chwilio
|
|
223
229
|
label: Chwilio ar GOV.UK
|
|
224
230
|
search_button: Chwilio
|
|
231
|
+
service_navigation:
|
|
232
|
+
menu_toggle:
|
|
225
233
|
share_links:
|
|
226
234
|
all_opens_in_new_tab: Bydd rhannu yn agor y dudalen hon mewn tab newydd
|
|
227
235
|
opens_in_new_tab:
|
data/config/locales/da.yml
CHANGED
|
@@ -42,6 +42,12 @@ da:
|
|
|
42
42
|
type:
|
|
43
43
|
characters: Tegn
|
|
44
44
|
words: ord
|
|
45
|
+
chart:
|
|
46
|
+
accessibility_heading:
|
|
47
|
+
accessibility_html:
|
|
48
|
+
accessibility_link:
|
|
49
|
+
source:
|
|
50
|
+
table_dropdown:
|
|
45
51
|
checkboxes:
|
|
46
52
|
or: eller
|
|
47
53
|
contents_list:
|
|
@@ -219,6 +225,8 @@ da:
|
|
|
219
225
|
input_title: Søge
|
|
220
226
|
label: Søg i GOV.UK
|
|
221
227
|
search_button: Søge
|
|
228
|
+
service_navigation:
|
|
229
|
+
menu_toggle:
|
|
222
230
|
share_links:
|
|
223
231
|
all_opens_in_new_tab:
|
|
224
232
|
opens_in_new_tab:
|
data/config/locales/de.yml
CHANGED
|
@@ -42,6 +42,12 @@ de:
|
|
|
42
42
|
type:
|
|
43
43
|
characters: Zeichen
|
|
44
44
|
words: Wörter
|
|
45
|
+
chart:
|
|
46
|
+
accessibility_heading:
|
|
47
|
+
accessibility_html:
|
|
48
|
+
accessibility_link:
|
|
49
|
+
source:
|
|
50
|
+
table_dropdown:
|
|
45
51
|
checkboxes:
|
|
46
52
|
or: oder
|
|
47
53
|
contents_list:
|
|
@@ -222,6 +228,8 @@ de:
|
|
|
222
228
|
input_title: Suche
|
|
223
229
|
label: Auf GOV.UK suchen
|
|
224
230
|
search_button: Suche
|
|
231
|
+
service_navigation:
|
|
232
|
+
menu_toggle:
|
|
225
233
|
share_links:
|
|
226
234
|
all_opens_in_new_tab:
|
|
227
235
|
opens_in_new_tab:
|
data/config/locales/dr.yml
CHANGED
|
@@ -45,6 +45,12 @@ dr:
|
|
|
45
45
|
type:
|
|
46
46
|
characters: ارقام
|
|
47
47
|
words: کلمات
|
|
48
|
+
chart:
|
|
49
|
+
accessibility_heading:
|
|
50
|
+
accessibility_html:
|
|
51
|
+
accessibility_link:
|
|
52
|
+
source:
|
|
53
|
+
table_dropdown:
|
|
48
54
|
checkboxes:
|
|
49
55
|
or: یا
|
|
50
56
|
contents_list:
|
|
@@ -220,6 +226,8 @@ dr:
|
|
|
220
226
|
input_title: جستجو نمایید
|
|
221
227
|
label: در GOV.UK جستجو نمایید
|
|
222
228
|
search_button: جستجو نمایید
|
|
229
|
+
service_navigation:
|
|
230
|
+
menu_toggle:
|
|
223
231
|
share_links:
|
|
224
232
|
all_opens_in_new_tab:
|
|
225
233
|
opens_in_new_tab:
|
data/config/locales/el.yml
CHANGED
|
@@ -42,6 +42,12 @@ el:
|
|
|
42
42
|
type:
|
|
43
43
|
characters: χαρακτήρες
|
|
44
44
|
words: λέξεις
|
|
45
|
+
chart:
|
|
46
|
+
accessibility_heading:
|
|
47
|
+
accessibility_html:
|
|
48
|
+
accessibility_link:
|
|
49
|
+
source:
|
|
50
|
+
table_dropdown:
|
|
45
51
|
checkboxes:
|
|
46
52
|
or: ή
|
|
47
53
|
contents_list:
|
|
@@ -218,6 +224,8 @@ el:
|
|
|
218
224
|
input_title: Αναζήτηση
|
|
219
225
|
label: Αναζήτηση στο GOV.UK
|
|
220
226
|
search_button: Αναζήτηση
|
|
227
|
+
service_navigation:
|
|
228
|
+
menu_toggle:
|
|
221
229
|
share_links:
|
|
222
230
|
all_opens_in_new_tab:
|
|
223
231
|
opens_in_new_tab:
|