@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
package/layout/_dsTemplate.njk
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{% from "components/autosuggest/_macro.njk" import onsAutosuggest %}
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
{%
|
|
3
|
+
set inputWithSearch = {
|
|
4
4
|
"id": 'search-field',
|
|
5
5
|
"width": '20',
|
|
6
6
|
"label": {
|
|
@@ -11,23 +11,25 @@
|
|
|
11
11
|
"classes": "ons-input-search ons-input-search--icon ons-input-search--dark ons-u-mb-s",
|
|
12
12
|
"accessiblePlaceholder": true,
|
|
13
13
|
"autocomplete": "off"
|
|
14
|
-
}
|
|
14
|
+
}
|
|
15
15
|
%}
|
|
16
16
|
|
|
17
|
-
{{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
17
|
+
{{
|
|
18
|
+
onsAutosuggest({
|
|
19
|
+
"id": "search-input-autosuggest",
|
|
20
|
+
"input": inputWithSearch,
|
|
21
|
+
"containerClasses": "ons-autosuggest--header",
|
|
22
|
+
"instructions": "Use up and down keys to navigate suggestions once you\'ve typed more than two characters. Use the enter key to select a suggestion. Touch device users, explore by touch or with swipe gestures.",
|
|
23
|
+
"ariaYouHaveSelected": "You have selected",
|
|
24
|
+
"ariaMinChars": "Enter 3 or more characters for suggestions.",
|
|
25
|
+
"ariaOneResult": "There is one suggestion available.",
|
|
26
|
+
"ariaNResults": "There are {n} suggestions available.",
|
|
27
|
+
"ariaLimitedResults": "Results have been limited to 10 suggestions. Type more characters to improve your search",
|
|
28
|
+
"moreResults": "Continue entering to improve suggestions",
|
|
29
|
+
"resultsTitle": "Suggestions",
|
|
30
|
+
"resultsTitleId": "results-suggestions",
|
|
31
|
+
"autosuggestData": "/examples/data/search-index.json",
|
|
32
|
+
"noResults": "No suggestions found",
|
|
33
|
+
"typeMore": "Continue entering to get suggestions"
|
|
34
|
+
})
|
|
35
|
+
}}
|
package/layout/_template.njk
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{% from "components/skip-to-content/_macro.njk" import onsSkipToContent %}
|
|
2
2
|
{% from "components/header/_macro.njk" import onsHeader %}
|
|
3
3
|
{% from "components/footer/_macro.njk" import onsFooter %}
|
|
4
|
-
|
|
5
4
|
{% set currentLanguageISOCode = "en" %}
|
|
6
5
|
|
|
7
6
|
{% if pageConfig and pageConfig.header.language and pageConfig.header.language.languages %}
|
|
@@ -14,8 +13,10 @@
|
|
|
14
13
|
{% if pageConfig.cdn or release_version or designSystemVersion %}
|
|
15
14
|
{# Production #}
|
|
16
15
|
{% set cdn_url = (pageConfig.cdn.url if pageConfig.cdn and pageConfig.cdn.url) or "https://cdn.ons.gov.uk/sdc/design-system" %}
|
|
17
|
-
{%
|
|
18
|
-
"/"
|
|
16
|
+
{%
|
|
17
|
+
set slash = "" if cdn_url | last == "/" else
|
|
18
|
+
"/"
|
|
19
|
+
%}
|
|
19
20
|
{% set assetsURL = cdn_url + slash + ((pageConfig.cdn.version if pageConfig.cdn and pageConfig.cdn.version) or release_version or designSystemVersion) %}
|
|
20
21
|
{% elif pageConfig.assetsURL %}
|
|
21
22
|
{# Runner Dev #}
|
|
@@ -44,34 +45,40 @@
|
|
|
44
45
|
|
|
45
46
|
{# Page columns #}
|
|
46
47
|
{% set pageColNumber = pageConfig.pageColNumber | default("12") %}
|
|
47
|
-
{%
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
{%
|
|
52
|
-
|
|
48
|
+
{%
|
|
49
|
+
set pageColClasses = pageConfig.pageColClasses if pageConfig.pageColClasses else
|
|
50
|
+
''
|
|
51
|
+
%}
|
|
52
|
+
{%
|
|
53
|
+
set mainClasses = pageConfig.mainColClasses if pageConfig.mainColClasses else
|
|
54
|
+
''
|
|
55
|
+
%}
|
|
56
|
+
{%
|
|
57
|
+
set themeColor = pageConfig.themeColor if pageConfig.themeColor else
|
|
58
|
+
"#206095"
|
|
59
|
+
%}
|
|
53
60
|
<!doctype html>
|
|
54
61
|
<html lang="{{ currentLanguageISOCode }}">
|
|
55
62
|
<head>
|
|
56
|
-
<meta charset="utf-8"
|
|
57
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge"
|
|
58
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"
|
|
63
|
+
<meta charset="utf-8" />
|
|
64
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
65
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
59
66
|
<title>{{ page_title }}</title>
|
|
60
|
-
<link rel="stylesheet" href="{{ assetsURL }}/css/main.css"
|
|
61
|
-
<link rel="stylesheet" media="print" href="{{ assetsURL }}/css/print.css"
|
|
62
|
-
<meta name="theme-color" content="{{ themeColor }}"/>
|
|
67
|
+
<link rel="stylesheet" href="{{ assetsURL }}/css/main.css" />
|
|
68
|
+
<link rel="stylesheet" media="print" href="{{ assetsURL }}/css/print.css" />
|
|
69
|
+
<meta name="theme-color" content="{{ themeColor }}" />
|
|
63
70
|
{% block meta %}
|
|
64
71
|
{% if pageConfig.meta %}
|
|
65
72
|
{% if pageConfig.meta.description or pageConfig.description %}
|
|
66
|
-
<meta name="description" content="{{ pageConfig.meta.description | default(pageConfig.description) }}"
|
|
73
|
+
<meta name="description" content="{{ pageConfig.meta.description | default(pageConfig.description) }}" />
|
|
67
74
|
{% endif %}
|
|
68
75
|
|
|
69
76
|
<!-- Canonical -->
|
|
70
|
-
<link rel="canonical" href="{{ pageConfig.meta.canonicalUrl | default(pageConfig.absoluteUrl) }}"
|
|
77
|
+
<link rel="canonical" href="{{ pageConfig.meta.canonicalUrl | default(pageConfig.absoluteUrl) }}" />
|
|
71
78
|
|
|
72
79
|
{% if pageConfig.meta.hrefLangs %}
|
|
73
80
|
{% for item in pageConfig.meta.hrefLangs %}
|
|
74
|
-
<link rel="alternate" href="{{ item.url }}" hreflang="{{ item.lang }}"
|
|
81
|
+
<link rel="alternate" href="{{ item.url }}" hreflang="{{ item.lang }}" />
|
|
75
82
|
{% endfor %}
|
|
76
83
|
{% endif %}
|
|
77
84
|
{% endif %}
|
|
@@ -79,49 +86,53 @@
|
|
|
79
86
|
|
|
80
87
|
{% block social %}
|
|
81
88
|
<!-- Open Graph -->
|
|
82
|
-
<meta property="og:type" content="website"
|
|
83
|
-
<meta property="og:url" content="{{ pageConfig.meta.canonicalUrl | default(pageConfig.absoluteUrl) }}"
|
|
84
|
-
<meta property="og:title" content="{{ pageConfig.title }}"
|
|
85
|
-
<meta property="og:image" content="{{ assetsURL }}/favicons/opengraph.png"
|
|
86
|
-
<meta property="og:image:type" content="image/png"
|
|
87
|
-
<meta property="og:image:width" content="1200"
|
|
88
|
-
<meta property="og:image:height" content="630"
|
|
89
|
-
<meta property="og:description" content="{{ pageConfig.meta.description | default(pageConfig.description) }}"
|
|
90
|
-
<meta property="og:site_name" content="{{ pageConfig.header.title | default(pageConfig.title) }}"
|
|
91
|
-
<meta property="og:locale" content="{{ currentLanguageISOCode }}"
|
|
89
|
+
<meta property="og:type" content="website" />
|
|
90
|
+
<meta property="og:url" content="{{ pageConfig.meta.canonicalUrl | default(pageConfig.absoluteUrl) }}" />
|
|
91
|
+
<meta property="og:title" content="{{ pageConfig.title }}" />
|
|
92
|
+
<meta property="og:image" content="{{ assetsURL }}/favicons/opengraph.png" />
|
|
93
|
+
<meta property="og:image:type" content="image/png" />
|
|
94
|
+
<meta property="og:image:width" content="1200" />
|
|
95
|
+
<meta property="og:image:height" content="630" />
|
|
96
|
+
<meta property="og:description" content="{{ pageConfig.meta.description | default(pageConfig.description) }}" />
|
|
97
|
+
<meta property="og:site_name" content="{{ pageConfig.header.title | default(pageConfig.title) }}" />
|
|
98
|
+
<meta property="og:locale" content="{{ currentLanguageISOCode }}" />
|
|
92
99
|
|
|
93
100
|
{% if otherLanguageISOCode %}
|
|
94
|
-
<meta property="og:locale:alternate" content="{{ otherLanguageISOCode }}"
|
|
101
|
+
<meta property="og:locale:alternate" content="{{ otherLanguageISOCode }}" />
|
|
95
102
|
{% endif %}
|
|
96
103
|
|
|
97
104
|
{% if pageConfig.social %}
|
|
98
|
-
{%
|
|
99
|
-
|
|
105
|
+
{%
|
|
106
|
+
set twitterImagePath = pageConfig.social.twitterImage if pageConfig.social.twitterImage else
|
|
107
|
+
assetsURL + '/favicons/twitter.png'
|
|
108
|
+
%}
|
|
100
109
|
<!-- Twitter -->
|
|
101
|
-
<meta name="twitter:card" content="summary"
|
|
102
|
-
<meta name="twitter:site" content="{{ pageConfig.social.twitterSite }}"
|
|
103
|
-
<meta name="twitter:url" content="{{ pageConfig.meta.canonicalUrl | default(pageConfig.absoluteUrl) }}"
|
|
104
|
-
<meta name="twitter:title" content="{{ pageConfig.social.title | default(pageConfig.title) }}"
|
|
105
|
-
<meta name="twitter:description" content="{{ pageConfig.social.description | default(pageConfig.description) }}"
|
|
106
|
-
<meta name="twitter:image" content="{{ twitterImagePath }}"
|
|
110
|
+
<meta name="twitter:card" content="summary" />
|
|
111
|
+
<meta name="twitter:site" content="{{ pageConfig.social.twitterSite }}" />
|
|
112
|
+
<meta name="twitter:url" content="{{ pageConfig.meta.canonicalUrl | default(pageConfig.absoluteUrl) }}" />
|
|
113
|
+
<meta name="twitter:title" content="{{ pageConfig.social.title | default(pageConfig.title) }}" />
|
|
114
|
+
<meta name="twitter:description" content="{{ pageConfig.social.description | default(pageConfig.description) }}" />
|
|
115
|
+
<meta name="twitter:image" content="{{ twitterImagePath }}" />
|
|
107
116
|
{% endif %}
|
|
108
117
|
{% endblock %}
|
|
109
118
|
|
|
110
119
|
{% block favicons %}
|
|
111
120
|
<!-- Favicons -->
|
|
112
|
-
<link rel="icon" type="image/x-icon" href="{{ assetsURL }}/favicons/favicon.ico"
|
|
113
|
-
<link rel="icon" type="image/png" href="{{ assetsURL }}/favicons/favicon-32x32.png" sizes="32x32"
|
|
114
|
-
<link rel="icon" type="image/png" href="{{ assetsURL }}/favicons/favicon-16x16.png" sizes="16x16"
|
|
115
|
-
<link rel="mask-icon" href="{{ assetsURL }}/favicons/safari-pinned-tab.svg" color="#000000"
|
|
116
|
-
<link rel="apple-touch-icon" type="image/png" href="{{ assetsURL }}/favicons/apple-touch-icon.png" sizes="180x180"
|
|
117
|
-
<link rel="manifest" href="{{ assetsURL }}/favicons/manifest.json"
|
|
121
|
+
<link rel="icon" type="image/x-icon" href="{{ assetsURL }}/favicons/favicon.ico" />
|
|
122
|
+
<link rel="icon" type="image/png" href="{{ assetsURL }}/favicons/favicon-32x32.png" sizes="32x32" />
|
|
123
|
+
<link rel="icon" type="image/png" href="{{ assetsURL }}/favicons/favicon-16x16.png" sizes="16x16" />
|
|
124
|
+
<link rel="mask-icon" href="{{ assetsURL }}/favicons/safari-pinned-tab.svg" color="#000000" />
|
|
125
|
+
<link rel="apple-touch-icon" type="image/png" href="{{ assetsURL }}/favicons/apple-touch-icon.png" sizes="180x180" />
|
|
126
|
+
<link rel="manifest" href="{{ assetsURL }}/favicons/manifest.json" />
|
|
118
127
|
{% endblock %}
|
|
119
128
|
|
|
120
|
-
{% block head %}
|
|
121
|
-
|
|
129
|
+
{% block head %}
|
|
130
|
+
{% endblock %}
|
|
122
131
|
</head>
|
|
123
|
-
<body{% if pageConfig.bodyClasses %}
|
|
124
|
-
|
|
132
|
+
<body {% if pageConfig.bodyClasses %}class="{{ pageConfig.bodyClasses }}"{% endif %}>
|
|
133
|
+
<!-- prettier-ignore-start -->
|
|
134
|
+
<script {% if pageConfig.cspNonce %}nonce="{{ pageConfig.cspNonce }}"{% elif pageConfig.cspNonce is not defined and csp_nonce %}nonce="{{ csp_nonce() }}"{% endif %}>document.body.className = ((document.body.className) ? document.body.className + ' ons-js-enabled' : 'ons-js-enabled');</script>
|
|
135
|
+
<!-- prettier-ignore-end -->
|
|
125
136
|
{% block bodyStart %}{% endblock %}
|
|
126
137
|
{% block body %}
|
|
127
138
|
<div class="ons-page">
|
|
@@ -211,7 +222,8 @@
|
|
|
211
222
|
{% endblock %}
|
|
212
223
|
{% block bodyEnd %}{% endblock %}
|
|
213
224
|
|
|
214
|
-
|
|
225
|
+
<!-- prettier-ignore-start -->
|
|
226
|
+
<script {% if pageConfig.cspNonce %}nonce="{{ pageConfig.cspNonce }}"{% elif pageConfig.cspNonce is not defined and csp_nonce %}nonce="{{ csp_nonce() }}"{% endif %}>
|
|
215
227
|
(function() {
|
|
216
228
|
var s = [ '{{ assetsURL }}/scripts/main.js' ],
|
|
217
229
|
c = document.createElement('script');
|
|
@@ -231,7 +243,9 @@
|
|
|
231
243
|
}
|
|
232
244
|
})();
|
|
233
245
|
</script>
|
|
246
|
+
<!-- prettier-ignore-end -->
|
|
234
247
|
|
|
235
|
-
{% block scripts %}
|
|
248
|
+
{% block scripts %}
|
|
249
|
+
{% endblock %}
|
|
236
250
|
</body>
|
|
237
251
|
</html>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ons/design-system",
|
|
3
3
|
"description": "ONS Design System built CSS, JS, and Nunjucks templates",
|
|
4
|
-
"version": "70.0.
|
|
4
|
+
"version": "70.0.10",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"prettier --write",
|
|
44
44
|
"yarn run stylelint-fix"
|
|
45
45
|
],
|
|
46
|
-
"*.{yml,yaml}": [
|
|
46
|
+
"*.{yml,yaml,njk,html}": [
|
|
47
47
|
"prettier --write"
|
|
48
48
|
]
|
|
49
49
|
},
|
|
@@ -109,7 +109,8 @@
|
|
|
109
109
|
"postcss": "^8.3.5",
|
|
110
110
|
"postcss-url": "^10.1.3",
|
|
111
111
|
"prepend-file": "^2.0.1",
|
|
112
|
-
"prettier": "^3.
|
|
112
|
+
"prettier": "^3.2.5",
|
|
113
|
+
"prettier-plugin-jinja-template": "^1.4.0",
|
|
113
114
|
"puppeteer": "^21.0.2",
|
|
114
115
|
"remark-cli": "^12.0.0",
|
|
115
116
|
"remark-lint": "^9.1.2",
|