@ons/design-system 70.0.8 → 70.0.10
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.
- package/components/access-code/_macro.njk +31 -25
- package/components/access-code/example-access-code-error.njk +49 -37
- package/components/access-code/example-access-code.njk +40 -30
- package/components/accordion/_macro.njk +7 -6
- package/components/accordion/example-accordion-open.njk +0 -1
- package/components/address-input/_macro.njk +23 -11
- package/components/address-input/autosuggest.address.js +0 -5
- package/components/address-input/example-address-input-editable.njk +52 -50
- package/components/address-input/example-address-input-manual.njk +23 -21
- package/components/address-input/example-address-input.njk +40 -38
- package/components/address-output/_macro.njk +6 -6
- package/components/autosuggest/_macro.njk +57 -37
- package/components/autosuggest/example-autosuggest-country-multiple.njk +26 -26
- package/components/autosuggest/example-autosuggest-country.njk +24 -24
- package/components/back-to-top/example-back-to-top.njk +183 -6
- package/components/back-to-top/example-full-page-back-to-top.njk +135 -123
- package/components/breadcrumbs/_macro.njk +12 -4
- package/components/browser-banner/_macro.njk +6 -3
- package/components/button/_button.scss +36 -1
- package/components/button/_macro.njk +63 -62
- package/components/button/example-button-ghost.njk +1 -0
- package/components/call-to-action/_macro.njk +7 -5
- package/components/call-to-action/example-call-to-action-default.njk +3 -2
- package/components/card/_macro.njk +26 -10
- package/components/card/example-card-set-with-images.njk +31 -29
- package/components/card/example-card-set-with-lists.njk +58 -56
- package/components/card/example-card-set.njk +28 -26
- package/components/card/example-card.njk +9 -7
- package/components/char-check-limit/_macro.njk +1 -3
- package/components/checkboxes/_checkbox-macro.njk +19 -15
- package/components/checkboxes/_macro.njk +81 -72
- package/components/checkboxes/example-checkboxes-disabled.njk +30 -30
- package/components/checkboxes/example-checkboxes-error.njk +0 -1
- package/components/checkboxes/example-checkboxes-with-descriptions.njk +7 -5
- package/components/checkboxes/example-checkboxes-with-hidden-label.njk +162 -170
- package/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk +81 -81
- package/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk +79 -79
- package/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk +7 -5
- package/components/checkboxes/example-checkboxes-with-revealed-select.njk +7 -5
- package/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk +7 -5
- package/components/checkboxes/example-checkboxes-with-revealed-text-input.njk +7 -5
- package/components/checkboxes/example-checkboxes-with-select-all-button.njk +7 -5
- package/components/checkboxes/example-checkboxes-with-visible-text-input.njk +7 -5
- package/components/checkboxes/example-checkboxes.njk +7 -5
- package/components/content-pagination/_macro.njk +34 -32
- package/components/content-pagination/example-content-pagination.njk +17 -17
- package/components/cookies-banner/_macro.njk +19 -6
- package/components/cookies-banner/example-cookies-banner-cymraeg.njk +2 -1
- package/components/cookies-banner/example-cookies-banner.njk +3 -4
- package/components/date-input/_macro.njk +71 -63
- package/components/date-input/example-date-input-error-for-single-field.njk +0 -1
- package/components/date-input/example-date-input-error.njk +0 -1
- package/components/description-list/_macro.njk +20 -11
- package/components/details/_macro.njk +18 -11
- package/components/details/example-details-with-warning.njk +15 -10
- package/components/document-list/_macro.njk +102 -93
- package/components/document-list/example-document-list-article-featured.njk +27 -25
- package/components/document-list/example-document-list-articles.njk +55 -53
- package/components/document-list/example-document-list-downloads.njk +49 -47
- package/components/document-list/example-document-list-search-result-featured.njk +19 -17
- package/components/document-list/example-document-list-search-results.njk +60 -58
- package/components/duration/_macro.njk +61 -55
- package/components/duration/example-duration-error-for-single-field.njk +28 -26
- package/components/duration/example-duration-single-field.njk +23 -19
- package/components/duration/example-duration.njk +33 -29
- package/components/error/_macro.njk +8 -6
- package/components/external-link/_macro.njk +7 -5
- package/components/external-link/example-external-link.njk +9 -6
- package/components/feedback/_macro.njk +7 -5
- package/components/field/_macro.njk +2 -2
- package/components/fieldset/_macro.njk +23 -16
- package/components/footer/_macro.njk +28 -21
- package/components/footer/_macro.spec.js +1 -1
- package/components/footer/example-footer-cymraeg.njk +2 -1
- package/components/footer/example-footer-default.njk +3 -4
- package/components/footer/example-footer-transactional.njk +2 -1
- package/components/footer/example-footer-warning.njk +2 -1
- package/components/footer/example-footer-with-alternative-organisation.njk +2 -1
- package/components/footer/example-footer-with-coat-of-arms.njk +2 -1
- package/components/footer/example-footer-with-copyright.njk +2 -1
- package/components/footer/example-footer.njk +2 -1
- package/components/header/_header.scss +24 -19
- package/components/header/_macro.njk +183 -141
- package/components/header/example-header-default.njk +2 -1
- package/components/header/example-header-external-for-survey-with-description.njk +2 -1
- package/components/header/example-header-external-for-surveys.njk +2 -1
- package/components/header/example-header-external-welsh.njk +7 -7
- package/components/header/example-header-external-with-navigation-and-search.njk +3 -2
- package/components/header/example-header-external-with-navigation.njk +2 -1
- package/components/header/example-header-external-with-service-links.njk +2 -1
- package/components/header/example-header-external-with-sub-navigation-removed.njk +2 -1
- package/components/header/example-header-external-with-sub-navigation.njk +3 -2
- package/components/header/example-header-internal.njk +2 -1
- package/components/header/example-header-multiple-logos.njk +2 -1
- package/components/header/{example-header-neutral-for-multicoloured-logo.njk → example-header-neutral.njk} +2 -1
- package/components/helpers/grid.njk +17 -16
- package/components/hero/_macro.njk +6 -11
- package/components/hero/example-hero-dark.njk +2 -1
- package/components/hero/example-hero-default.njk +2 -1
- package/components/icon/_macro.njk +601 -168
- package/components/image/_macro.njk +7 -5
- package/components/input/_macro.njk +114 -95
- package/components/input/example-input-search-with-character-check.njk +1 -1
- package/components/input/example-input-search-with-placeholder.njk +1 -1
- package/components/input/example-input-search.njk +1 -1
- package/components/label/_macro.njk +32 -26
- package/components/language-selector/_macro.njk +11 -2
- package/components/list/_list.scss +13 -0
- package/components/list/_macro.njk +93 -73
- package/components/message/_macro.njk +20 -7
- package/components/message-list/_macro.njk +26 -20
- package/components/modal/_macro.njk +11 -12
- package/components/multiple-input-fields/_macro.njk +30 -28
- package/components/mutually-exclusive/_macro.njk +20 -13
- package/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk +6 -4
- package/components/mutually-exclusive/example-mutually-exclusive-date.njk +7 -5
- package/components/mutually-exclusive/example-mutually-exclusive-duration.njk +44 -40
- package/components/mutually-exclusive/example-mutually-exclusive-email.njk +7 -5
- package/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk +6 -4
- package/components/mutually-exclusive/example-mutually-exclusive-number.njk +6 -4
- package/components/mutually-exclusive/example-mutually-exclusive-textarea.njk +6 -4
- package/components/navigation/_macro.njk +133 -67
- package/components/navigation/_navigation.scss +0 -9
- package/components/pagination/_macro.njk +42 -20
- package/components/panel/_macro.njk +27 -16
- package/components/panel/example-panel-bare.njk +6 -4
- package/components/panel/example-panel-with-announcement.njk +7 -4
- package/components/panel/example-panel-with-error-summary.njk +6 -4
- package/components/panel/example-panel-with-warning.njk +5 -3
- package/components/password/_macro.njk +7 -5
- package/components/phase-banner/_macro.njk +3 -3
- package/components/phase-banner/example-phase-banner-alpha.njk +2 -1
- package/components/phase-banner/example-phase-banner-beta.njk +4 -3
- package/components/question/_macro.njk +62 -47
- package/components/question/example-question-ccs.njk +40 -35
- package/components/question/example-question-fieldset.njk +84 -80
- package/components/question/example-question-interviewer-note.njk +27 -24
- package/components/question/example-question-no-fieldset.njk +39 -33
- package/components/quote/_macro.njk +3 -1
- package/components/radios/_macro.njk +54 -36
- package/components/radios/_macro.spec.js +21 -0
- package/components/radios/example-radios-with-clear-button-expanded.njk +6 -4
- package/components/radios/example-radios-with-clear-button.njk +6 -4
- package/components/radios/example-radios-with-descriptions.njk +7 -5
- package/components/radios/example-radios-with-revealed-select-expanded.njk +6 -4
- package/components/radios/example-radios-with-revealed-select.njk +6 -4
- package/components/radios/example-radios-with-revealed-text-area-expanded.njk +7 -5
- package/components/radios/example-radios-with-revealed-text-area.njk +7 -5
- package/components/radios/example-radios-with-revealed-text-input-expanded.njk +7 -5
- package/components/radios/example-radios-with-revealed-text-input.njk +7 -5
- package/components/radios/example-radios-with-separator.njk +6 -4
- package/components/radios/example-radios-with-visible-text-input.njk +7 -5
- package/components/radios/example-radios-without-border.njk +0 -1
- package/components/radios/example-radios.njk +7 -5
- package/components/related-content/_macro.njk +10 -11
- package/components/related-content/_section-macro.njk +7 -7
- package/components/related-content/example-related-content-general.njk +5 -3
- package/components/related-content/example-related-content-multiple-rows-of-links.njk +51 -49
- package/components/related-content/example-related-content-social-media.njk +40 -38
- package/components/relationships/_macro.njk +10 -8
- package/components/relationships/example-relationships-error.njk +176 -168
- package/components/relationships/example-relationships-you.njk +169 -163
- package/components/relationships/example-relationships.njk +167 -161
- package/components/section-navigation/_macro.njk +34 -12
- package/components/section-navigation/example-section-navigation-single-vertical-with-title.njk +23 -0
- package/components/select/_macro.njk +21 -18
- package/components/share-page/_macro.njk +10 -5
- package/components/skip-to-content/_macro.njk +1 -1
- package/components/skip-to-content/example-skip-to-content.njk +1 -0
- package/components/status/_macro.njk +1 -1
- package/components/summary/_macro.njk +53 -23
- package/components/summary/example-summary-household-no-rows.njk +18 -16
- package/components/summary/example-summary-household.njk +75 -73
- package/components/summary/example-summary-hub-minimal.njk +74 -72
- package/components/summary/example-summary-hub.njk +169 -167
- package/components/table/_macro.njk +72 -45
- package/components/table-of-contents/_macro.njk +34 -32
- package/components/table-of-contents/example-table-of-contents-grouped.njk +1 -1
- package/components/table-of-contents/example-table-of-contents-single.njk +1 -1
- package/components/table-of-contents/example-table-of-contents-sticky-full-page.njk +79 -38
- package/components/table-of-contents/example-table-of-contents-sticky.njk +50 -13
- package/components/tabs/_macro.njk +12 -6
- package/components/tabs/example-tabs-details.njk +5 -6
- package/components/text-indent/_macro.njk +1 -3
- package/components/textarea/_macro.njk +49 -46
- package/components/textarea/_macro.spec.js +0 -11
- package/components/timeline/_macro.njk +4 -6
- package/components/timeout-modal/_macro.njk +21 -19
- package/components/timeout-modal/example-timeout-modal.njk +16 -14
- package/components/timeout-panel/_macro.njk +19 -17
- package/components/timeout-panel/example-panel-with-timeout-warning.njk +13 -11
- package/components/upload/_macro.njk +20 -16
- package/components/video/_macro.njk +16 -2
- package/components/video/example-video.njk +2 -2
- package/css/main.css +1 -1
- package/layout/_dsTemplate.njk +22 -20
- package/layout/_template.njk +63 -49
- package/package.json +4 -3
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
- package/scss/overrides/hcm.scss +1 -1
- package/scss/vars/_colors.scss +1 -1
|
@@ -1,86 +1,86 @@
|
|
|
1
1
|
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
"value": "datasets"
|
|
3
|
+
{{
|
|
4
|
+
onsCheckboxes({
|
|
5
|
+
"legend": "Content type",
|
|
6
|
+
"checkboxesLabel": "Show only:",
|
|
7
|
+
"borderless": true,
|
|
8
|
+
"name": "dietary",
|
|
9
|
+
"checkboxes": [
|
|
10
|
+
{
|
|
11
|
+
"id": "data-example-with-revealed-checkboxes",
|
|
12
|
+
"label": {
|
|
13
|
+
"text": "Data (309)"
|
|
14
|
+
},
|
|
15
|
+
"value": "data",
|
|
16
|
+
"other": {
|
|
17
|
+
"otherType": "checkboxes",
|
|
18
|
+
"selectAllChildren": true,
|
|
19
|
+
"legend": "Data type",
|
|
20
|
+
"legendClasses": "ons-u-vh",
|
|
21
|
+
"name": "name",
|
|
22
|
+
"checkboxes": [
|
|
23
|
+
{
|
|
24
|
+
"id": "datasets-example-with-revealed-checkboxes",
|
|
25
|
+
"label": {
|
|
26
|
+
"text": "Datasets (100)"
|
|
29
27
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
28
|
+
"value": "datasets"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "timeseries-example-with-revealed-checkboxes",
|
|
32
|
+
"label": {
|
|
33
|
+
"text": "Timeseries (20)"
|
|
36
34
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"id": "publications-example-with-revealed-checkboxes",
|
|
49
|
-
"label": {
|
|
50
|
-
"text": "Publications (137)"
|
|
51
|
-
},
|
|
52
|
-
"value": "publications",
|
|
53
|
-
"other": {
|
|
54
|
-
"otherType": "checkboxes",
|
|
55
|
-
"selectAllChildren": true,
|
|
56
|
-
"legend": "Publication type",
|
|
57
|
-
"legendClasses": "ons-u-vh",
|
|
58
|
-
"name": "name",
|
|
59
|
-
"checkboxes": [
|
|
60
|
-
{
|
|
61
|
-
"id": "press-release-example-with-revealed-checkboxes",
|
|
62
|
-
"label": {
|
|
63
|
-
"text": "Press release (100)"
|
|
64
|
-
},
|
|
65
|
-
"value": "pressrelease"
|
|
35
|
+
"value": "timeseries"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "requested-example-with-revealed-checkboxes",
|
|
39
|
+
"label": {
|
|
40
|
+
"text": "User requested data (17)"
|
|
66
41
|
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
42
|
+
"value": "requested"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "publications-example-with-revealed-checkboxes",
|
|
49
|
+
"label": {
|
|
50
|
+
"text": "Publications (137)"
|
|
76
51
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
52
|
+
"value": "publications",
|
|
53
|
+
"other": {
|
|
54
|
+
"otherType": "checkboxes",
|
|
55
|
+
"selectAllChildren": true,
|
|
56
|
+
"legend": "Publication type",
|
|
57
|
+
"legendClasses": "ons-u-vh",
|
|
58
|
+
"name": "name",
|
|
59
|
+
"checkboxes": [
|
|
60
|
+
{
|
|
61
|
+
"id": "press-release-example-with-revealed-checkboxes",
|
|
62
|
+
"label": {
|
|
63
|
+
"text": "Press release (100)"
|
|
64
|
+
},
|
|
65
|
+
"value": "pressrelease"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "bulletin-example-with-revealed-checkboxes",
|
|
69
|
+
"label": {
|
|
70
|
+
"text": "Bulletin (20)"
|
|
71
|
+
},
|
|
72
|
+
"value": "bulletin"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
83
75
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "areas-example-with-revealed-checkboxes",
|
|
79
|
+
"label": {
|
|
80
|
+
"text": "Areas (0)"
|
|
81
|
+
},
|
|
82
|
+
"value": "areas"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
})
|
|
86
|
+
}}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{% from "components/question/_macro.njk" import onsQuestion %}
|
|
2
2
|
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
|
|
3
3
|
|
|
4
|
-
{%
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
{%
|
|
5
|
+
call onsQuestion({
|
|
6
|
+
"title": "How would you like us to contact you?",
|
|
7
|
+
"legendIsQuestionTitle": true,
|
|
8
|
+
"classes": "ons-u-mt-no"
|
|
9
|
+
})
|
|
10
|
+
%}
|
|
9
11
|
{{
|
|
10
12
|
onsCheckboxes({
|
|
11
13
|
"checkboxesLabel": "Select all that apply",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{% from "components/question/_macro.njk" import onsQuestion %}
|
|
2
2
|
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
|
|
3
3
|
|
|
4
|
-
{%
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
{%
|
|
5
|
+
call onsQuestion({
|
|
6
|
+
"title": "How would you like us to contact you?",
|
|
7
|
+
"legendIsQuestionTitle": true,
|
|
8
|
+
"classes": "ons-u-mt-no"
|
|
9
|
+
})
|
|
10
|
+
%}
|
|
9
11
|
{{
|
|
10
12
|
onsCheckboxes({
|
|
11
13
|
"checkboxesLabel": "Select all that apply",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{% from "components/question/_macro.njk" import onsQuestion %}
|
|
2
2
|
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
|
|
3
3
|
|
|
4
|
-
{%
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
{%
|
|
5
|
+
call onsQuestion({
|
|
6
|
+
"title": "Do you have any dietary requirements?",
|
|
7
|
+
"legendIsQuestionTitle": true,
|
|
8
|
+
"classes": "ons-u-mt-no"
|
|
9
|
+
})
|
|
10
|
+
%}
|
|
9
11
|
{{
|
|
10
12
|
onsCheckboxes({
|
|
11
13
|
"checkboxesLabel": "Select all that apply",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{% from "components/question/_macro.njk" import onsQuestion %}
|
|
2
2
|
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
|
|
3
3
|
|
|
4
|
-
{%
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
{%
|
|
5
|
+
call onsQuestion({
|
|
6
|
+
"title": "Do you have any dietary requirements?",
|
|
7
|
+
"legendIsQuestionTitle": true,
|
|
8
|
+
"classes": "ons-u-mt-no"
|
|
9
|
+
})
|
|
10
|
+
%}
|
|
9
11
|
{{
|
|
10
12
|
onsCheckboxes({
|
|
11
13
|
"checkboxesLabel": "Select all that apply",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{% from "components/question/_macro.njk" import onsQuestion %}
|
|
2
2
|
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
|
|
3
3
|
|
|
4
|
-
{%
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
{%
|
|
5
|
+
call onsQuestion({
|
|
6
|
+
"title": "What devices do you own?",
|
|
7
|
+
"legendIsQuestionTitle": true,
|
|
8
|
+
"classes": "ons-u-mt-no"
|
|
9
|
+
})
|
|
10
|
+
%}
|
|
9
11
|
{{
|
|
10
12
|
onsCheckboxes({
|
|
11
13
|
"checkboxesLabel": "Select all that apply",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{% from "components/question/_macro.njk" import onsQuestion %}
|
|
2
2
|
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
|
|
3
3
|
|
|
4
|
-
{%
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
{%
|
|
5
|
+
call onsQuestion({
|
|
6
|
+
"title": "Do you have any dietary requirements?",
|
|
7
|
+
"legendIsQuestionTitle": true,
|
|
8
|
+
"classes": "ons-u-mt-no"
|
|
9
|
+
})
|
|
10
|
+
%}
|
|
9
11
|
{{
|
|
10
12
|
onsCheckboxes({
|
|
11
13
|
"checkboxesLabel": "Select all that apply",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{% from "components/question/_macro.njk" import onsQuestion %}
|
|
2
2
|
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
|
|
3
3
|
|
|
4
|
-
{%
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
{%
|
|
5
|
+
call onsQuestion({
|
|
6
|
+
"title": "What devices do you own?",
|
|
7
|
+
"legendIsQuestionTitle": true,
|
|
8
|
+
"classes": "ons-u-mt-no"
|
|
9
|
+
})
|
|
10
|
+
%}
|
|
9
11
|
{{
|
|
10
12
|
onsCheckboxes({
|
|
11
13
|
"checkboxesLabel": "Select all that apply",
|
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
{% macro onsContentPagination(params) %}
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
2
|
+
<nav class="ons-content-pagination" aria-label="{{ params.ariaLabel | default("Guide pagination") }}">
|
|
3
|
+
<ul class="ons-content-pagination__list">
|
|
4
|
+
{% for contentPaginationItem in params.contentPaginationItems %}
|
|
5
|
+
<li class="ons-content-pagination__item">
|
|
6
|
+
<a href="{{ contentPaginationItem.url }}" class="ons-content-pagination__link" rel="{{ contentPaginationItem.rel }}">
|
|
7
|
+
<span class="ons-content-pagination__link-title">
|
|
8
|
+
{%- if contentPaginationItem.rel == 'prev' -%}
|
|
9
|
+
{% from "components/icon/_macro.njk" import onsIcon %}
|
|
10
|
+
{{-
|
|
11
|
+
onsIcon({
|
|
12
|
+
"iconType": 'arrow-previous',
|
|
13
|
+
"iconSize": 'm'
|
|
14
|
+
})
|
|
15
|
+
-}}
|
|
16
|
+
{% else %}
|
|
17
|
+
{% from "components/icon/_macro.njk" import onsIcon %}
|
|
18
|
+
{{-
|
|
19
|
+
onsIcon({
|
|
20
|
+
"iconType": 'arrow-next',
|
|
21
|
+
"iconSize": 'm'
|
|
22
|
+
})
|
|
23
|
+
-}}
|
|
24
|
+
{%- endif -%}
|
|
25
|
+
<span class="ons-content-pagination__link-text">{{ contentPaginationItem.text }}</span>
|
|
26
|
+
</span>
|
|
27
|
+
<span class="ons-content-pagination__link-divider ons-u-vh"
|
|
28
|
+
>{{ contentPaginationItem.bridgingText | default("page in this guide is:") }}</span
|
|
29
|
+
>
|
|
30
|
+
<span class="ons-content-pagination__link-label">{{ contentPaginationItem.label }}</span>
|
|
31
|
+
</a>
|
|
32
|
+
</li>
|
|
33
|
+
{% endfor %}
|
|
34
|
+
</ul>
|
|
35
|
+
</nav>
|
|
34
36
|
{% endmacro %}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{% from "components/content-pagination/_macro.njk" import onsContentPagination %}
|
|
2
2
|
|
|
3
3
|
{{-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}}
|
|
4
|
+
onsContentPagination({
|
|
5
|
+
"contentPaginationItems": [
|
|
6
|
+
{
|
|
7
|
+
"rel": 'prev',
|
|
8
|
+
"text": 'Previous',
|
|
9
|
+
"url": '#0',
|
|
10
|
+
"label": 'Overview'
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"rel": 'next',
|
|
14
|
+
"text": 'Next',
|
|
15
|
+
"url": '#0',
|
|
16
|
+
"label": 'Who should take part and why'
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
})
|
|
20
|
+
-}}
|
|
@@ -40,15 +40,18 @@
|
|
|
40
40
|
{% else %}
|
|
41
41
|
{% set settingsLinkURL = '#0' %}
|
|
42
42
|
{% endif %}
|
|
43
|
-
|
|
44
43
|
{% set statementText = beforeLinkStatementText + ' <a href="' + settingsLinkURL + '">' + afterLinkStatementText %}
|
|
45
44
|
{% set preferencesText = beforeLinkPreferencesURL + ' <a href="' + settingsLinkURL + '">' + afterLinkPreferencesURL %}
|
|
46
45
|
|
|
47
46
|
<div class="ons-cookies-banner" role="region" aria-label="{{ params.ariaLabel | default(ariaLabel) }}">
|
|
48
|
-
<div
|
|
47
|
+
<div
|
|
48
|
+
class="ons-container{{ ' ons-container--full-width' if params.fullWidth }}{{ ' ons-container--wide' if params.wide }} ons-cookies-banner__primary"
|
|
49
|
+
>
|
|
49
50
|
<div class="ons-grid">
|
|
50
51
|
<div class="ons-grid__col ons-col-8@m">
|
|
51
|
-
<h2 class="ons-cookies-banner__title ons-u-mb-xs">
|
|
52
|
+
<h2 class="ons-cookies-banner__title ons-u-mb-xs">
|
|
53
|
+
{{ params.statementTitle | default(statementTitle) }} {{ params.serviceName | default(serviceName) }}
|
|
54
|
+
</h2>
|
|
52
55
|
<div class="ons-cookies-banner__statement">{{ params.statementText | default(statementText) | safe }}</div>
|
|
53
56
|
</div>
|
|
54
57
|
</div>
|
|
@@ -78,14 +81,24 @@
|
|
|
78
81
|
}}
|
|
79
82
|
</div>
|
|
80
83
|
<div class="ons-grid__col">
|
|
81
|
-
<a class="ons-cookies-banner__link" href="{{ settingsLinkURL }}"
|
|
84
|
+
<a class="ons-cookies-banner__link" href="{{ settingsLinkURL }}"
|
|
85
|
+
>{{ params.settingsLinkText | default(settingsLinkText) }}</a
|
|
86
|
+
>
|
|
82
87
|
</div>
|
|
83
88
|
</div>
|
|
84
89
|
</div>
|
|
85
|
-
<div
|
|
90
|
+
<div
|
|
91
|
+
class="ons-container{{ ' ons-container--full-width' if params.fullWidth }}{{ ' ons-container--wide' if params.wide }} ons-cookies-banner__confirmation ons-u-d-no"
|
|
92
|
+
>
|
|
86
93
|
<div class="ons-grid ons-grid--flex ons-grid--between ons-grid--gutterless ons-grid--no-wrap@s ons-grid--vertical-center">
|
|
87
94
|
<div class="ons-grid__col ons-grid__col--flex ons-col-auto ons-u-flex-shrink@s">
|
|
88
|
-
<p class="ons-cookies-banner__desc ons-u-mb-no@s ons-u-mr-s@s"
|
|
95
|
+
<p class="ons-cookies-banner__desc ons-u-mb-no@s ons-u-mr-s@s">
|
|
96
|
+
<span class="ons-js-accepted-text ons-u-d-no">{{ params.acceptedText | default(acceptedText) | safe }} </span
|
|
97
|
+
><span class="ons-js-rejected-text ons-u-d-no">{{ params.rejectedText | default(rejectedText) | safe }} </span
|
|
98
|
+
><span class="ons-cookies-banner__preferences-text"
|
|
99
|
+
>{{ params.preferencesText | default(preferencesText) | safe }}</span
|
|
100
|
+
>
|
|
101
|
+
</p>
|
|
89
102
|
</div>
|
|
90
103
|
<div class="ons-grid__col">
|
|
91
104
|
{{
|