@ons/design-system 70.0.17 → 72.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/components/access-code/_macro.njk +4 -4
  2. package/components/access-code/_macro.spec.js +8 -8
  3. package/components/access-code/example-access-code-error.njk +2 -2
  4. package/components/access-code/example-access-code.njk +2 -2
  5. package/components/accordion/_macro.njk +1 -1
  6. package/components/accordion/_macro.spec.js +1 -1
  7. package/components/address-input/_macro.njk +7 -7
  8. package/components/address-input/_macro.spec.js +16 -15
  9. package/components/address-input/autosuggest.address.error.js +1 -1
  10. package/components/address-input/autosuggest.address.js +25 -25
  11. package/components/address-input/autosuggest.address.spec.js +6 -5
  12. package/components/address-input/example-address-input-editable.njk +5 -4
  13. package/components/address-input/example-address-input.njk +4 -5
  14. package/components/autosuggest/_autosuggest.scss +8 -8
  15. package/components/autosuggest/_macro.njk +5 -5
  16. package/components/autosuggest/autosuggest.spec.js +1 -1
  17. package/components/back-to-top/_back-to-top.scss +2 -2
  18. package/components/back-to-top/example-full-page-back-to-top.njk +6 -6
  19. package/components/breadcrumbs/_breadcrumbs.scss +1 -1
  20. package/components/button/_button.scss +24 -16
  21. package/components/button/_macro.njk +3 -3
  22. package/components/button/example-button-custom.njk +1 -1
  23. package/components/card/_card.scss +0 -6
  24. package/components/card/_macro.njk +9 -9
  25. package/components/card/_macro.spec.js +57 -24
  26. package/components/card/example-card-set-with-images.njk +30 -18
  27. package/components/card/example-card-set-with-lists.njk +57 -45
  28. package/components/card/example-card-set.njk +27 -15
  29. package/components/card/example-card.njk +9 -5
  30. package/components/char-check-limit/_macro.njk +1 -1
  31. package/components/checkboxes/_checkbox.scss +4 -4
  32. package/components/checkboxes/_checkboxes.scss +1 -1
  33. package/components/checkboxes/example-checkboxes-with-hidden-label.njk +4 -4
  34. package/components/cookies-banner/_cookies-banner.scss +5 -5
  35. package/components/cookies-banner/_macro.njk +15 -13
  36. package/components/cookies-banner/_macro.spec.js +1 -1
  37. package/components/details/_details.scss +5 -6
  38. package/components/details/_macro.njk +4 -4
  39. package/components/details/_macro.spec.js +1 -1
  40. package/components/document-list/_document-list.scss +0 -2
  41. package/components/document-list/_macro.njk +18 -18
  42. package/components/document-list/_macro.spec.js +16 -14
  43. package/components/document-list/example-document-list-article-featured.njk +5 -3
  44. package/components/document-list/example-document-list-articles.njk +15 -9
  45. package/components/document-list/example-document-list-downloads.njk +15 -9
  46. package/components/document-list/example-document-list-search-result-featured.njk +5 -3
  47. package/components/document-list/example-document-list-search-results.njk +20 -12
  48. package/components/download-resources/_download-resources.scss +1 -2
  49. package/components/download-resources/download-resources.spec.js +12 -6
  50. package/components/external-link/_macro.njk +1 -1
  51. package/components/external-link/_macro.spec.js +1 -1
  52. package/components/external-link/example-external-link.njk +1 -1
  53. package/components/feedback/_macro.njk +1 -1
  54. package/components/feedback/_macro.spec.js +3 -3
  55. package/components/feedback/example-feedback-call-to-action.njk +1 -1
  56. package/components/field/_field-group.scss +0 -2
  57. package/components/field/_field.scss +1 -2
  58. package/components/fieldset/_fieldset.scss +2 -2
  59. package/components/fieldset/_macro.njk +1 -1
  60. package/components/fieldset/_macro.spec.js +1 -1
  61. package/components/footer/_footer.scss +12 -7
  62. package/components/footer/_macro.njk +54 -34
  63. package/components/footer/_macro.spec.js +90 -28
  64. package/components/footer/example-footer-cymraeg.njk +1 -1
  65. package/components/footer/example-footer-transactional.njk +1 -1
  66. package/components/footer/example-footer-warning.njk +1 -1
  67. package/components/footer/example-footer-with-alternative-organisation.njk +99 -94
  68. package/components/footer/example-footer-with-coat-of-arms.njk +1 -1
  69. package/components/footer/example-footer-with-copyright.njk +1 -1
  70. package/components/footer/example-footer-with-multiple-logos-and-split-display.njk +173 -0
  71. package/components/footer/example-footer-with-multiple-logos.njk +172 -0
  72. package/components/footer/example-footer.njk +1 -1
  73. package/components/header/_header.scss +7 -14
  74. package/components/header/_macro.njk +19 -19
  75. package/components/header/_macro.spec.js +17 -17
  76. package/components/header/example-header-external-for-surveys.njk +2 -2
  77. package/components/header/example-header-external-welsh.njk +2 -2
  78. package/components/header/example-header-external-with-sub-navigation-removed.njk +1 -1
  79. package/components/header/example-header-external-with-sub-navigation.njk +1 -1
  80. package/components/header/example-header-multiple-logos.njk +4 -4
  81. package/components/hero/_hero.scss +6 -8
  82. package/components/hero/_macro.njk +1 -1
  83. package/components/icon/_icon.scss +4 -4
  84. package/components/icon/_macro.njk +4 -4
  85. package/components/icon/_macro.spec.js +2 -2
  86. package/components/image/_image.scss +1 -1
  87. package/components/image/_macro.njk +1 -1
  88. package/components/image/_macro.spec.js +10 -10
  89. package/components/image/example-image-for-regular-screens.njk +1 -1
  90. package/components/input/_input-type.scss +0 -2
  91. package/components/input/_input.scss +10 -10
  92. package/components/input/_macro.njk +4 -2
  93. package/components/input/example-input-search-with-character-check.njk +1 -1
  94. package/components/input/example-input-search.njk +1 -1
  95. package/components/label/_label.scss +1 -3
  96. package/components/language-selector/_macro.njk +3 -3
  97. package/components/language-selector/_macro.spec.js +7 -7
  98. package/components/list/_list.scss +1 -5
  99. package/components/list/_macro.njk +9 -10
  100. package/components/list/_macro.spec.js +50 -9
  101. package/components/list/example-inline-list-with-social-icon-prefix.njk +1 -1
  102. package/components/message/_macro.njk +3 -3
  103. package/components/message/_macro.spec.js +3 -3
  104. package/components/message-list/_macro.njk +2 -2
  105. package/components/message-list/_macro.spec.js +8 -4
  106. package/components/message-list/_message-list.scss +2 -2
  107. package/components/navigation/_macro.njk +9 -9
  108. package/components/navigation/_macro.spec.js +2 -2
  109. package/components/navigation/_navigation.scss +2 -6
  110. package/components/navigation/navigation.dom.js +1 -1
  111. package/components/navigation/navigation.spec.js +4 -4
  112. package/components/pagination/_macro.njk +2 -2
  113. package/components/pagination/_pagination.scss +1 -7
  114. package/components/panel/_macro.njk +5 -4
  115. package/components/panel/_macro.spec.js +2 -2
  116. package/components/panel/_panel.scss +12 -8
  117. package/components/password/_macro.njk +1 -1
  118. package/components/password/_macro.spec.js +2 -2
  119. package/components/phase-banner/_macro.njk +1 -1
  120. package/components/phase-banner/_phase-banner.scss +3 -4
  121. package/components/phase-banner/example-phase-banner-alpha.njk +1 -1
  122. package/components/phase-banner/example-phase-banner-beta.njk +1 -1
  123. package/components/question/_macro.njk +8 -8
  124. package/components/question/_macro.spec.js +3 -3
  125. package/components/question/_question.scss +3 -3
  126. package/components/radios/_macro.njk +1 -1
  127. package/components/radios/_macro.spec.js +1 -1
  128. package/components/radios/_radios.scss +1 -1
  129. package/components/radios/example-radios-with-clear-button-expanded.njk +1 -1
  130. package/components/radios/example-radios-with-clear-button.njk +1 -1
  131. package/components/related-content/_macro.spec.js +2 -2
  132. package/components/related-content/_related-content.scss +1 -1
  133. package/components/related-content/example-related-content-general.njk +2 -2
  134. package/components/related-content/example-related-content-social-media.njk +1 -1
  135. package/components/reply/_macro.njk +3 -1
  136. package/components/reply/_macro.spec.js +1 -1
  137. package/components/reply/reply.spec.js +1 -1
  138. package/components/section-navigation/_macro.njk +10 -10
  139. package/components/section-navigation/_macro.spec.js +15 -15
  140. package/components/section-navigation/_section-navigation.scss +3 -8
  141. package/components/section-navigation/example-section-navigation-single-vertical-with-title.njk +3 -3
  142. package/components/section-navigation/example-section-navigation-vertical.njk +14 -14
  143. package/components/section-navigation/example-section-navigation.njk +3 -3
  144. package/components/select/example-select-with-inline-label.njk +1 -1
  145. package/components/share-page/_macro.njk +7 -7
  146. package/components/share-page/_macro.spec.js +2 -2
  147. package/components/share-page/example-share-page.njk +1 -1
  148. package/components/status/_status.scss +1 -1
  149. package/components/summary/_macro.njk +33 -33
  150. package/components/summary/_macro.spec.js +34 -34
  151. package/components/summary/_summary.scss +2 -4
  152. package/components/summary/example-summary-card-grouped.njk +34 -34
  153. package/components/summary/example-summary-grouped-total.njk +7 -7
  154. package/components/summary/example-summary-grouped-with-errors.njk +9 -9
  155. package/components/summary/example-summary-grouped.njk +34 -34
  156. package/components/summary/example-summary-household.njk +7 -7
  157. package/components/summary/example-summary-hub-minimal.njk +8 -8
  158. package/components/summary/example-summary-hub.njk +16 -16
  159. package/components/summary/example-summary-multiple.njk +7 -7
  160. package/components/summary/example-summary-no-action.njk +5 -5
  161. package/components/summary/example-summary.njk +9 -9
  162. package/components/table/_table.scss +2 -3
  163. package/components/table-of-contents/_macro.njk +3 -3
  164. package/components/table-of-contents/_macro.spec.js +3 -3
  165. package/components/table-of-contents/example-table-of-contents-sticky-full-page.njk +1 -1
  166. package/components/tabs/_macro.njk +3 -3
  167. package/components/tabs/_macro.spec.js +3 -3
  168. package/components/tabs/_tabs.scss +3 -4
  169. package/components/tabs/example-tabs-details.njk +1 -1
  170. package/components/text-indent/_text-indent.scss +1 -1
  171. package/components/timeline/_macro.njk +4 -4
  172. package/components/timeline/_macro.spec.js +3 -3
  173. package/components/timeline/_timeline.scss +4 -3
  174. package/components/timeline/example-timeline.njk +1 -1
  175. package/components/upload/_upload.scss +2 -2
  176. package/components/video/_macro.njk +4 -4
  177. package/components/video/_macro.spec.js +2 -2
  178. package/components/video/_video.scss +1 -1
  179. package/components/video/example-video.njk +2 -2
  180. package/components/video/video.spec.js +2 -2
  181. package/css/main.css +1 -1
  182. package/layout/_dsTemplate.njk +1 -1
  183. package/layout/_template.njk +31 -31
  184. package/package.json +1 -1
  185. package/scripts/main.es5.js +1 -1
  186. package/scripts/main.js +1 -1
  187. package/scss/base/_global.scss +2 -0
  188. package/scss/base/_typography.scss +0 -2
  189. package/scss/main.scss +0 -1
  190. package/scss/objects/_container.scss +1 -1
  191. package/scss/objects/_page.scss +2 -3
  192. package/scss/overrides/rtl.scss +1 -1
  193. package/scss/utilities/_grid.scss +103 -96
  194. package/scss/utilities/_margin.scss +11 -5
  195. package/scss/utilities/_padding.scss +12 -5
  196. package/scss/utilities/_typography.scss +2 -1
  197. package/scss/vars/_forms.scss +8 -10
  198. package/scss/vars/_grid.scss +4 -4
  199. package/scss/vars/_typography.scss +26 -19
  200. package/components/call-to-action/_call-to-action.scss +0 -8
  201. package/components/call-to-action/_macro.njk +0 -24
  202. package/components/call-to-action/_macro.spec.js +0 -48
  203. package/components/call-to-action/example-call-to-action-default.njk +0 -15
  204. package/components/metadata/_macro.njk +0 -14
@@ -0,0 +1,172 @@
1
+ ---
2
+ 'fullWidth': true
3
+ ---
4
+
5
+ {% from "components/footer/_macro.njk" import onsFooter %}
6
+ {{
7
+ onsFooter({
8
+ "cols": [
9
+ {
10
+ "title": 'Business surveys',
11
+ "itemsList": [
12
+ {
13
+ "text": 'About our surveys',
14
+ "url": '#0'
15
+ },
16
+ {
17
+ "text": 'Lists of all surveys',
18
+ "url": '#0'
19
+ },
20
+ {
21
+ "text": 'Respondent Charter',
22
+ "url": '#0'
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "title": 'About ONS',
28
+ "itemsList": [
29
+ {
30
+ "text": 'What we do',
31
+ "url": '#0'
32
+ },
33
+ {
34
+ "text": 'Transparency and governance',
35
+ "url": '#0'
36
+ },
37
+ {
38
+ "text": 'Contact us',
39
+ "url": '#0'
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "title": 'Statistics',
45
+ "itemsList": [
46
+ {
47
+ "text": 'UK Statistics Authority',
48
+ "external": true,
49
+ "url": '#0'
50
+ },
51
+ {
52
+ "text": 'Release calendar',
53
+ "url": '#0'
54
+ },
55
+ {
56
+ "text": 'News',
57
+ "url": '#0'
58
+ }
59
+ ]
60
+ }
61
+ ],
62
+ "legal": [
63
+ {
64
+ "itemsList": [
65
+ {
66
+ "text": 'Cookies',
67
+ "url": '#0'
68
+ },
69
+ {
70
+ "text": 'Accessibility statement',
71
+ "url": '#0'
72
+ },
73
+ {
74
+ "text": 'Privacy and data protection',
75
+ "url": '#0'
76
+ },
77
+ {
78
+ "text": 'Terms and conditions',
79
+ "url": '#0'
80
+ }
81
+ ]
82
+ }
83
+ ],
84
+ "footerLogo": {
85
+ "logos": {
86
+ "logo2": {
87
+ "logoImage": '<svg xmlns:xlink="http://www.w3.org/1999/xlink" class="ons-icon--logo ons-icon--logo--nisra" xmlns="http://www.w3.org/2000/svg" width="170" height="56" viewBox="0 1 170 54" aria-labelledby="footer-logo-alt"><title id="footer-logo-alt">NISRA - Northern Ireland Statistics and Research Agency</title><g class="ons-icon--logo__group" fill="#222222"><path d="M0,39.3c2.7,4.7,6.1,8.1,10.8,10.8c4.6,2.7,9.7,4,14.7,4c7,0,13.8-2.5,19.2-7.1c0.3-0.3,0.6-0.5,0.9-0.8 c2.1-2,3.9-4.2,5.5-6.9l-15.2-8.8l-1.2-0.7l-8.6-4.9l-0.6-0.4L25,24.8L6.4,35.6l-1.1,0.6L0,39.3L0,39.3z" fill="#222222"></path></g><g class="ons-icon--logo__group" fill="#222222"><path d="M36.4,7.2c-0.4-0.1-0.8-0.3-1.2-0.4c-2.9-0.9-5.9-1.4-9.1-1.4v18.1l9.1,5.3l1.2,0.7l15.2,8.8l1,0.6l-0.6,1 c-1.5,2.6-3.3,4.9-5.4,6.9l5,2.9c2.7-4.7,3.9-9.3,3.9-14.7C55.6,22.2,47.6,11.4,36.4,7.2L36.4,7.2z" fill="#222222"></path></g><g class="ons-icon--logo__group" fill="#222222"><path d="M6.2,34.4L25,23.5V4.2h1.2c3.1,0,6.2,0.5,9.1,1.4V0c-5.4,0-10,1.2-14.7,4C9.5,10.3,4.2,22.6,6.2,34.4z" fill="#222222"></path></g><g class="ons-icon--logo__group ons-icon--logo__group--text" fill="#222222"><path d="M94.5,48.4l-1-0.2c-0.4-0.1-0.7-0.2-0.7-0.5s0.3-0.5,0.8-0.5c0.7,0,0.8,0.4,0.8,0.5l0.9-0.2c-0.3-0.9-1.2-1.1-1.8-1.1 c-1.5,0-1.7,1-1.7,1.5c0,1.1,1,1.3,1.4,1.3l0.8,0.2c0.2,0,0.5,0.2,0.5,0.5c0,0.5-0.7,0.6-1,0.6c-0.7,0-0.9-0.3-1-0.6l-0.8,0.2 c0.2,0.7,0.9,1.1,1.9,1.1c0.6,0,2-0.2,2-1.5C95.6,49,95.2,48.5,94.5,48.4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6,1.5,3L79,31.2h4.5V4.1h-3.9v19.2c-0.9-1.8-1.6-3-1.7-3.2l-9.5-16H63v27.2h3.9V10.9z M93.9,4.1H89v27.2h4.9V4.1z" fill="#222222"></path></g></svg>',
166
+ "logoUrl": "#"
167
+ }
168
+ }
169
+ },
170
+ "oglLink": true
171
+ })
172
+ }}
@@ -81,6 +81,6 @@
81
81
  ]
82
82
  }
83
83
  ],
84
- "OGLLink": true
84
+ "oglLink": true
85
85
  })
86
86
  }}
@@ -16,12 +16,12 @@
16
16
  row-gap: 0.5rem;
17
17
 
18
18
  @include mq(xs) {
19
- padding: 0.75rem 0;
19
+ padding: 0.875rem 0;
20
20
  }
21
21
  }
22
22
  &__main {
23
23
  background: var(--ons-color-header);
24
- padding: 0.56rem 0;
24
+ padding: 0.5rem 0;
25
25
 
26
26
  &--border {
27
27
  border-bottom: 3px solid var(--ons-color-header);
@@ -31,13 +31,13 @@
31
31
  }
32
32
  &__title {
33
33
  @extend .ons-u-fs-r--b;
34
- @extend .ons-u-fs-xl\@xxs;
34
+ @extend .ons-u-fs-xl\@2xs;
35
35
 
36
36
  color: var(--ons-color-white);
37
37
 
38
38
  @include mq(m) {
39
39
  margin-bottom: 1rem;
40
- margin-top: 0.8rem;
40
+ margin-top: 1rem;
41
41
  }
42
42
 
43
43
  &-link {
@@ -61,7 +61,7 @@
61
61
  margin: 0;
62
62
 
63
63
  @include mq(m) {
64
- margin: 0 0 1.1rem;
64
+ margin: 0 0 1rem;
65
65
  }
66
66
  }
67
67
  // Modifier - variants
@@ -69,7 +69,7 @@
69
69
  .ons-header {
70
70
  &__title {
71
71
  @extend .ons-u-fs-m;
72
- @extend .ons-u-fs-xxl\@m;
72
+ @extend .ons-u-fs-2xl\@m;
73
73
 
74
74
  margin-bottom: 0;
75
75
  }
@@ -151,7 +151,6 @@
151
151
  &__org-logo-link,
152
152
  &__title-logo-link {
153
153
  display: block;
154
- font-size: 0;
155
154
  &:hover {
156
155
  text-decoration: none;
157
156
  }
@@ -169,7 +168,7 @@
169
168
  }
170
169
 
171
170
  &__org-logo--large {
172
- @include mq(xxs, 454px) {
171
+ @include mq('2xs', 454px) {
173
172
  display: none;
174
173
  }
175
174
  }
@@ -236,12 +235,6 @@
236
235
  }
237
236
  }
238
237
  }
239
- &__lang-adjustment {
240
- @include mq(l) {
241
- margin-right: 21rem;
242
- margin-top: -5px !important;
243
- }
244
- }
245
238
 
246
239
  .ons-btn {
247
240
  top: 0 !important;
@@ -6,11 +6,11 @@
6
6
  {% set titleTag = "h1" if params.titleAsH1 else "div" %}
7
7
  {% set openingTag = "<" + titleTag %}
8
8
  {% set closingTag = "</" + titleTag + ">" %}
9
- {% set currentLanguageISOCode = "en" %}
9
+ {% set currentLanguageIsoCode = "en" %}
10
10
 
11
11
  {% if params.language and params.language.languages %}
12
12
  {% set currentLanguage = params.language.languages | selectattr("current") | first %}
13
- {% set currentLanguageISOCode = currentLanguage.ISOCode %}
13
+ {% set currentLanguageIsoCode = currentLanguage.isoCode %}
14
14
  {% endif %}
15
15
 
16
16
  <header
@@ -19,7 +19,7 @@
19
19
  >
20
20
  {{
21
21
  onsBrowserBanner({
22
- "lang": currentLanguageISOCode,
22
+ "lang": currentLanguageIsoCode,
23
23
  "wide": params.wide,
24
24
  "fullWidth": params.fullWidth
25
25
  })
@@ -39,7 +39,7 @@
39
39
  <div class="ons-header__top">
40
40
  <div class="ons-container{{ ' ons-container--full-width' if params.fullWidth }}{{ ' ons-container--wide' if params.wide }}">
41
41
  <div
42
- class="ons-header__grid-top ons-grid ons-grid--flex ons-grid--between ons-grid--vertical-center{{ ' '+ params.mastheadLogo.classes if params.mastheadLogo.classes }}{{ ' ons-grid--no-wrap ons-grid--gutterless' if not params.mastheadLogo.multipleLogos }}"
42
+ class="ons-header__grid-top ons-grid ons-grid-flex ons-grid-flex--between ons-grid-flex--vertical-center{{ ' '+ params.mastheadLogo.classes if params.mastheadLogo.classes }}{{ ' ons-grid-flex--no-wrap ons-grid--gutterless' if not params.mastheadLogo.multipleLogos }}"
43
43
  >
44
44
  <div class="ons-grid__col ons-col-auto">
45
45
  {%- if not params.mastheadLogo.multipleLogos -%}
@@ -51,7 +51,7 @@
51
51
  {% else %}
52
52
  {{-
53
53
  onsIcon({
54
- "iconType": 'ons-logo-' + currentLanguageISOCode,
54
+ "iconType": 'ons-logo-' + currentLanguageIsoCode,
55
55
  "altText": 'Office for National Statistics homepage'
56
56
  })
57
57
  -}}
@@ -65,7 +65,7 @@
65
65
  {% else %}
66
66
  {{-
67
67
  onsIcon({
68
- "iconType": 'ons-logo-stacked-' + currentLanguageISOCode,
68
+ "iconType": 'ons-logo-stacked-' + currentLanguageIsoCode,
69
69
  "altText": 'Office for National Statistics logo'
70
70
  })
71
71
  -}}
@@ -83,19 +83,19 @@
83
83
  {% set logos = [params.mastheadLogo.multipleLogos.logo1, params.mastheadLogo.multipleLogos.logo2, params.mastheadLogo.multipleLogos.logo3] %}
84
84
  {% for logo in logos %}
85
85
  {% set mastheadLogo %}
86
- {% if logo.logoImage != "ONS Logo" %}
87
- {{ logo.logoImage | safe }}
86
+ {% if logo.image != "ONS Logo" %}
87
+ {{ logo.image | safe }}
88
88
  {% else %}
89
89
  {{-
90
90
  onsIcon({
91
- "iconType": 'ons-logo-stacked-' + currentLanguageISOCode,
91
+ "iconType": 'ons-logo-stacked-' + currentLanguageIsoCode,
92
92
  "altText": 'Office for National Statistics logo'
93
93
  })
94
94
  -}}
95
95
  {% endif %}
96
96
  {% endset %}
97
- {% if logo.logoURL %}
98
- <a class="ons-header__org-logo-link" href="{{ logo.logoURL }}">{{ mastheadLogo | safe }}</a>
97
+ {% if logo.url %}
98
+ <a class="ons-header__org-logo-link" href="{{ logo.url }}">{{ mastheadLogo | safe }}</a>
99
99
  {% else %}
100
100
  {{ mastheadLogo | safe }}
101
101
  {% endif %}
@@ -106,7 +106,7 @@
106
106
  {% if params.language or params.serviceLinks %}
107
107
  <div class="ons-header__links ons-grid__col ons-u-ml-auto">
108
108
  {% if params.language %}
109
- <div class="ons-grid__col ons-col-auto{{ ' ons-u-mr-s ons-u-d-no@xxs@xs' if params.serviceLinks }}">
109
+ <div class="ons-grid__col ons-col-auto{{ ' ons-u-mr-s ons-u-d-no@2xs@xs' if params.serviceLinks }}">
110
110
  {% from "components/language-selector/_macro.njk" import onsLanguageSelector %}
111
111
  {{ onsLanguageSelector(params.language) }}
112
112
  </div>
@@ -122,7 +122,7 @@
122
122
  {% set controlVisibility = false %}
123
123
  {% endif %}
124
124
  <div
125
- class="ons-grid__col ons-col-auto{% if controlVisibility == true %}{{ ' ' }}ons-u-d-no@xxs@{{ breakpoint }}{% endif %}"
125
+ class="ons-grid__col ons-col-auto{% if controlVisibility == true %}{{ ' ' }}ons-u-d-no@2xs@{{ breakpoint }}{% endif %}"
126
126
  >
127
127
  <nav
128
128
  class="ons-header-service-nav ons-header-service-nav--main{{ ' ' + params.serviceLinks.classes if params.serviceLinks.classes else '' }}"
@@ -221,14 +221,14 @@
221
221
  <div class="ons-header__main">
222
222
  <div class="ons-container{{ ' ons-container--full-width' if params.fullWidth }}{{ ' ons-container--wide' if params.wide }}">
223
223
  <div
224
- class="ons-grid ons-grid--flex ons-grid--between ons-grid--vertical-center ons-grid--no-wrap{{ ' ons-grid--gutterless' if not params.button }}"
224
+ class="ons-grid ons-grid-flex ons-grid-flex--between ons-grid-flex--vertical-center ons-grid-flex--no-wrap{{ ' ons-grid--gutterless' if not params.button }}"
225
225
  >
226
226
  <div class="ons-grid__col ons-col-auto ons-u-flex-shrink">
227
227
  {% if params.titleLogo.large %}
228
228
 
229
229
  {% set title %}
230
230
  <div
231
- class="ons-header__title-logo ons-header__title-logo--large{{ ' ' + params.titleLogo.classes if params.titleLogo.classes else '' }}{{ ' ons-u-d-no@xxs@s' if params.titleLogo.small }}"
231
+ class="ons-header__title-logo ons-header__title-logo--large{{ ' ' + params.titleLogo.classes if params.titleLogo.classes else '' }}{{ ' ons-u-d-no@2xs@s' if params.titleLogo.small }}"
232
232
  >
233
233
  {{ params.titleLogo.large | safe }}
234
234
  </div>
@@ -274,7 +274,7 @@
274
274
  {{
275
275
  onsButton({
276
276
  "text": params.button.text,
277
- "classes": "ons-u-d-no@xxs@l" if params.navigation else "ons-u-d-no@xxs@m",
277
+ "classes": "ons-u-d-no@2xs@l" if params.navigation else "ons-u-d-no@2xs@m",
278
278
  "variants": buttonVariant,
279
279
  "name": params.button.name,
280
280
  "attributes": params.button.attributes,
@@ -293,11 +293,11 @@
293
293
  {% else %}
294
294
  {% set buttonVariant = ["small", "ghost"] %}
295
295
  {% endif %}
296
- <span class="ons-grid ons-u-d-no@xxs@xs ons-u-ml-no ons-u-d-no@l">
296
+ <span class="ons-grid ons-u-d-no@2xs@xs ons-u-ml-no ons-u-d-no@l">
297
297
  {{
298
298
  onsButton({
299
299
  "text": "Search",
300
- "classes": "ons-btn--search ons-u-ml-xs ons-u-d-no ons-js-toggle-search",
300
+ "classes": "ons-btn--search ons-u-ml-2xs ons-u-d-no ons-js-toggle-search",
301
301
  "variants": buttonVariant,
302
302
  "iconType": "search",
303
303
  "iconPosition": "only",
@@ -315,7 +315,7 @@
315
315
  {{
316
316
  onsButton({
317
317
  "text": params.navigation.toggleNavigationButton.text,
318
- "classes": "ons-u-ml-xs ons-u-d-no ons-js-navigation-button ons-u-d-no@l",
318
+ "classes": "ons-u-ml-2xs ons-u-d-no ons-js-navigation-button ons-u-d-no@l",
319
319
  "variants": buttonVariant,
320
320
  "attributes": {
321
321
  "aria-label": params.navigation.toggleNavigationButton.ariaLabel | default("Toggle main menu") ,
@@ -140,7 +140,7 @@ describe('FOR: Macro: Header', () => {
140
140
  });
141
141
  });
142
142
  describe('GIVEN: Params: multipleLogos', () => {
143
- describe('WHEN: logoImage parameter is set to "ONS Logo"', () => {
143
+ describe('WHEN: image parameter is set to "ONS Logo"', () => {
144
144
  const faker = templateFaker();
145
145
  const iconsSpy = faker.spy('icon');
146
146
 
@@ -149,7 +149,7 @@ describe('FOR: Macro: Header', () => {
149
149
  mastheadLogo: {
150
150
  multipleLogos: {
151
151
  logo1: {
152
- logoImage: 'ONS Logo',
152
+ image: 'ONS Logo',
153
153
  },
154
154
  },
155
155
  },
@@ -158,15 +158,15 @@ describe('FOR: Macro: Header', () => {
158
158
  expect(iconsSpy.occurrences[0].iconType).toBe('ons-logo-stacked-en');
159
159
  });
160
160
  });
161
- describe('WHEN: logoURL parameter is set ', () => {
161
+ describe('WHEN: url parameter is set ', () => {
162
162
  const $ = cheerio.load(
163
163
  renderComponent('header', {
164
164
  ...EXAMPLE_HEADER_BASIC,
165
165
  mastheadLogo: {
166
166
  multipleLogos: {
167
167
  logo1: {
168
- logoImage: '<img src="a-logo.svg">',
169
- logoURL: '#0',
168
+ image: '<img src="a-logo.svg">',
169
+ url: '#0',
170
170
  },
171
171
  },
172
172
  },
@@ -183,13 +183,13 @@ describe('FOR: Macro: Header', () => {
183
183
  mastheadLogo: {
184
184
  multipleLogos: {
185
185
  logo1: {
186
- logoImage: '<img src="a-logo.svg">',
186
+ image: '<img src="a-logo.svg">',
187
187
  },
188
188
  logo2: {
189
- logoImage: '<img src="a-second-logo.svg">',
189
+ image: '<img src="a-second-logo.svg">',
190
190
  },
191
191
  logo3: {
192
- logoImage: '<img src="a-third-logo.svg">',
192
+ image: '<img src="a-third-logo.svg">',
193
193
  },
194
194
  },
195
195
  },
@@ -209,7 +209,7 @@ describe('FOR: Macro: Header', () => {
209
209
  large: '<img src="big-logo.svg">',
210
210
  multipleLogos: {
211
211
  logo1: {
212
- logoImage: '<img src="a-logo.svg">',
212
+ image: '<img src="a-logo.svg">',
213
213
  },
214
214
  },
215
215
  },
@@ -329,7 +329,7 @@ describe('FOR: Macro: Header', () => {
329
329
  test('THEN: renders button with provided parameters', () => {
330
330
  expect(buttonSpy.occurrences).toContainEqual({
331
331
  text: 'Save and sign out',
332
- classes: 'ons-u-d-no@xxs@m',
332
+ classes: 'ons-u-d-no@2xs@m',
333
333
  variants: 'ghost',
334
334
  name: 'button-name',
335
335
  attributes: {
@@ -407,7 +407,7 @@ describe('FOR: Macro: Header', () => {
407
407
  faker.renderComponent('header', EXAMPLE_HEADER_SERVICE_LINKS_MULTIPLE);
408
408
 
409
409
  test('THEN: renders with correct display class on large screen', () => {
410
- expect($('.ons-header__links .ons-grid__col').hasClass('ons-u-d-no@xxs@m')).toBe(true);
410
+ expect($('.ons-header__links .ons-grid__col').hasClass('ons-u-d-no@2xs@m')).toBe(true);
411
411
  });
412
412
  test('THEN: renders button on small screen', () => {
413
413
  expect(buttonSpy.occurrences).toContainEqual({
@@ -426,8 +426,8 @@ describe('FOR: Macro: Header', () => {
426
426
  describe('WHEN: one item is provided to the itemsList parameter', () => {
427
427
  const $ = cheerio.load(renderComponent('header', EXAMPLE_HEADER_SERVICE_LINKS_SINGLE));
428
428
  test('THEN: renders without multiple link display class on large screen', () => {
429
- expect($('.ons-header__links .ons-grid__col').hasClass('ons-u-d-no@xxs@m')).toBe(false);
430
- expect($('.ons-header__links .ons-grid__col').hasClass('ons-u-d-no@xxs@xs')).toBe(false);
429
+ expect($('.ons-header__links .ons-grid__col').hasClass('ons-u-d-no@2xs@m')).toBe(false);
430
+ expect($('.ons-header__links .ons-grid__col').hasClass('ons-u-d-no@2xs@xs')).toBe(false);
431
431
  });
432
432
  test('THEN: does not render button on small screen', () => {
433
433
  expect($('.ons-js-toggle-services').length).toBe(0);
@@ -515,7 +515,7 @@ describe('FOR: Macro: Header', () => {
515
515
  }),
516
516
  );
517
517
  test('THEN: renders with correct display class', () => {
518
- expect($('.ons-header__links .ons-grid__col').hasClass('ons-u-d-no@xxs@xs')).toBe(true);
518
+ expect($('.ons-header__links .ons-grid__col').hasClass('ons-u-d-no@2xs@xs')).toBe(true);
519
519
  });
520
520
  });
521
521
  });
@@ -574,7 +574,7 @@ describe('FOR: Macro: Header', () => {
574
574
  test('THEN: renders button to toggle menu on small screen', () => {
575
575
  expect(buttonSpy.occurrences[0]).toEqual({
576
576
  text: 'Menu',
577
- classes: 'ons-u-ml-xs ons-u-d-no ons-js-navigation-button ons-u-d-no@l',
577
+ classes: 'ons-u-ml-2xs ons-u-d-no ons-js-navigation-button ons-u-d-no@l',
578
578
  variants: ['mobile', 'ghost'],
579
579
  attributes: {
580
580
  'aria-label': 'Toggle main menu',
@@ -647,7 +647,7 @@ describe('FOR: Macro: Header', () => {
647
647
  test('THEN: renders button to toggle search on small screen', () => {
648
648
  expect(buttonSpy.occurrences[0]).toEqual({
649
649
  text: 'Search',
650
- classes: 'ons-btn--search ons-u-ml-xs ons-u-d-no ons-js-toggle-search',
650
+ classes: 'ons-btn--search ons-u-ml-2xs ons-u-d-no ons-js-toggle-search',
651
651
  variants: ['small', 'ghost'],
652
652
  iconType: 'search',
653
653
  iconPosition: 'only',
@@ -722,7 +722,7 @@ describe('FOR: Macro: Header', () => {
722
722
  autocomplete: 'off',
723
723
  classes: 'ons-input-search ons-input-search--icon',
724
724
  label: {
725
- classes: 'ons-u-pl-l ons-label--white',
725
+ classes: 'ons-u-pl-xl ons-label--white',
726
726
  id: 'ons-site-search-label',
727
727
  text: 'label',
728
728
  },
@@ -18,13 +18,13 @@
18
18
  "languages": [
19
19
  {
20
20
  "url": '#0',
21
- "ISOCode": 'en',
21
+ "isoCode": 'en',
22
22
  "text": 'English',
23
23
  "current": true
24
24
  },
25
25
  {
26
26
  "url": '#0',
27
- "ISOCode": 'cy',
27
+ "isoCode": 'cy',
28
28
  "text": 'Cymraeg',
29
29
  "current": false
30
30
  }
@@ -13,13 +13,13 @@ fullWidth: true
13
13
  "languages": [
14
14
  {
15
15
  "url": '#0',
16
- "ISOCode": 'en',
16
+ "isoCode": 'en',
17
17
  "text": 'English',
18
18
  "current": false
19
19
  },
20
20
  {
21
21
  "url": '#0',
22
- "ISOCode": 'cy',
22
+ "isoCode": 'cy',
23
23
  "text": 'Cymraeg',
24
24
  "current": true
25
25
  }
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "subNavigation": {
44
44
  "id": 'sub-nav',
45
- "overviewURL": '#design-system',
45
+ "overviewUrl": '#design-system',
46
46
  "overviewText": 'Overview',
47
47
  "ariaLabel": 'Section menu',
48
48
  "currentPath": '#access-codes',
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "subNavigation": {
44
44
  "id": 'sub-nav',
45
- "overviewURL": '#design-system',
45
+ "overviewUrl": '#design-system',
46
46
  "overviewText": 'Overview',
47
47
  "ariaLabel": 'Section menu',
48
48
  "currentPath": '#access-codes',