@ons/design-system 65.0.0 → 65.1.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 (61) hide show
  1. package/components/address-input/autosuggest.address.error.js +1 -1
  2. package/components/address-input/autosuggest.address.js +2 -2
  3. package/components/address-input/autosuggest.address.spec.js +5 -5
  4. package/components/autosuggest/_autosuggest.scss +11 -6
  5. package/components/autosuggest/_macro.njk +32 -31
  6. package/components/autosuggest/_macro.spec.js +18 -18
  7. package/components/autosuggest/autosuggest.spec.js +31 -31
  8. package/components/autosuggest/autosuggest.ui.js +8 -9
  9. package/components/card/_card.scss +14 -0
  10. package/components/card/_macro.njk +7 -8
  11. package/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk +88 -0
  12. package/components/checkboxes/example-checkboxes-with-revealed-radios-expanded.njk +70 -0
  13. package/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk +72 -0
  14. package/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk +60 -0
  15. package/components/content-pagination/_content-pagination.scss +1 -1
  16. package/components/document-list/_macro.njk +5 -7
  17. package/components/document-list/_macro.spec.js +2 -2
  18. package/components/document-list/example-document-list-search-result-featured.njk +1 -1
  19. package/components/document-list/example-document-list-search-results.njk +3 -3
  20. package/components/fieldset/_fieldset.scss +1 -1
  21. package/components/header/_macro.njk +4 -4
  22. package/components/header/example-header-external-with-navigation.njk +5 -5
  23. package/components/header/example-header-external-with-service-links.njk +3 -3
  24. package/components/header/example-header-external-with-sub-navigation.njk +10 -10
  25. package/components/header/example-header-internal.njk +2 -2
  26. package/components/header/example-header-neutral-for-multicoloured-logo.njk +6 -6
  27. package/components/list/_list.scss +5 -2
  28. package/components/list/_macro.njk +22 -10
  29. package/components/list/_macro.spec.js +42 -0
  30. package/components/navigation/_macro.njk +6 -6
  31. package/components/navigation/_macro.spec.js +4 -4
  32. package/components/pagination/_macro.njk +17 -2
  33. package/components/pagination/_pagination.scss +14 -0
  34. package/components/question/example-question-interviewer-note.njk +1 -1
  35. package/components/radios/example-radios-with-clear-button-expanded.njk +98 -0
  36. package/components/radios/example-radios-with-revealed-checkboxes-expanded.njk +70 -0
  37. package/components/radios/example-radios-with-revealed-radios-expanded.njk +69 -0
  38. package/components/radios/example-radios-with-revealed-select-expanded.njk +70 -0
  39. package/components/radios/example-radios-with-revealed-text-input-expanded.njk +81 -0
  40. package/components/relationships/_macro.spec.js +9 -11
  41. package/components/relationships/example-relationships-error.njk +28 -28
  42. package/components/relationships/example-relationships-you.njk +29 -29
  43. package/components/relationships/example-relationships.njk +28 -28
  44. package/components/relationships/relationships.spec.js +13 -13
  45. package/components/reply/_macro.njk +5 -2
  46. package/components/reply/_macro.spec.js +7 -1
  47. package/components/section-navigation/_macro.njk +2 -1
  48. package/components/section-navigation/_macro.spec.js +2 -13
  49. package/components/tabs/_macro.njk +5 -5
  50. package/components/tabs/_macro.spec.js +1 -1
  51. package/components/tabs/example-tabs-details.njk +3 -0
  52. package/components/tabs/example-tabs.njk +0 -1
  53. package/components/textarea/example-textarea-error.njk +4 -4
  54. package/css/main.css +2 -2
  55. package/css/print.css +1 -1
  56. package/js/cookies-settings.js +1 -1
  57. package/package.json +19 -21
  58. package/scripts/main.es5.js +1 -1
  59. package/scripts/main.js +1 -1
  60. package/scss/overrides/hcm.scss +4 -4
  61. package/scss/print.scss +1 -1
@@ -4,21 +4,20 @@
4
4
 
5
5
  {% set titleSize = params.titleSize | default('2') %}
6
6
 
7
- <div class="ons-card" aria-describedBy="{{ params.textId }}">
7
+ <div class="ons-card">
8
8
 
9
9
  {%- if params.image -%}
10
10
  {%- if params.url -%}
11
- <a href="{{ params.url }}" class="ons-card__link ons-u-db">
11
+ <a href="{{ params.url }}" class="ons-card__link">
12
12
  {%- endif -%}
13
+ <h{{ titleSize }} class="ons-card__title ons-card__title--reorder {{ params.titleClasses | default('ons-u-fs-m')}}" id="{{ params.id }}">
14
+ {{ params.title }}
15
+ </h{{ titleSize }}>
13
16
  {% if params.image.smallSrc %}
14
- <img class="ons-card__image ons-u-mb-s" height="200" width="303"{% if params.image.largeSrc %} srcset="{{ params.image.smallSrc }} 1x, {{ params.image.largeSrc }} 2x"{% endif %} src="{{ params.image.smallSrc }}" alt="{{ params.image.alt }}" loading="lazy">
17
+ <img class="ons-card__image ons-u-mb-s ons-card__image--reorder" height="200" width="303"{% if params.image.largeSrc %} srcset="{{ params.image.smallSrc }} 1x, {{ params.image.largeSrc }} 2x"{% endif %} src="{{ params.image.smallSrc }}" alt="{{ params.image.alt }}" loading="lazy">
15
18
  {% elif params.image == true or params.image.placeholderURL %}
16
- <img class="ons-card__image ons-u-mb-s" height="100" width="303" srcset="{{ params.image.placeholderURL if params.image.placeholderURL }}/img/small/placeholder-card.png 1x, {{ params.image.placeholderURL if params.image.placeholderURL }}/img/large/placeholder-card.png 2x" src="{{ params.image.placeholderURL if params.image.placeholderURL }}/img/small/placeholder-card.png" alt="" loading="lazy">
19
+ <img class="ons-card__image ons-u-mb-s ons-card__image--reorder" height="100" width="303" srcset="{{ params.image.placeholderURL if params.image.placeholderURL }}/img/small/placeholder-card.png 1x, {{ params.image.placeholderURL if params.image.placeholderURL }}/img/large/placeholder-card.png 2x" src="{{ params.image.placeholderURL if params.image.placeholderURL }}/img/small/placeholder-card.png" alt="" loading="lazy">
17
20
  {% endif %}
18
-
19
- <h{{ titleSize }} class="ons-card__title {{ params.titleClasses | default('ons-u-fs-m')}}" id="{{ params.id }}">
20
- {{ params.title }}
21
- </h{{ titleSize }}>
22
21
  {%- if params.url -%}
23
22
  </a>
24
23
  {%- endif -%}
@@ -0,0 +1,88 @@
1
+ {% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
2
+
3
+ {{
4
+ onsCheckboxes({
5
+ "legend": "Content type",
6
+ "checkboxesLabel": "Show only:",
7
+ "borderless": true,
8
+ "name": "dietary",
9
+ "checkboxes": [
10
+ {
11
+ "id": "data",
12
+ "label": {
13
+ "text": "Data (309)"
14
+ },
15
+ "value": "data",
16
+ "checked": true,
17
+ "other": {
18
+ "otherType": "checkboxes",
19
+ "selectAllChildren": true,
20
+ "legend": "Data type",
21
+ "legendClasses": "ons-u-vh",
22
+ "name": "name",
23
+ "checkboxes": [
24
+ {
25
+ "id": "datasets",
26
+ "label": {
27
+ "text": "Datasets (100)"
28
+ },
29
+ "value": "datasets"
30
+ },
31
+ {
32
+ "id": "timeseries",
33
+ "label": {
34
+ "text": "Timeseries (20)"
35
+ },
36
+ "value": "timeseries"
37
+ },
38
+ {
39
+ "id": "requested",
40
+ "label": {
41
+ "text": "User requested data (17)"
42
+ },
43
+ "value": "requested"
44
+ }
45
+ ]
46
+ }
47
+ },
48
+ {
49
+ "id": "publications",
50
+ "label": {
51
+ "text": "Publications (137)"
52
+ },
53
+ "value": "publications",
54
+ "checked": true,
55
+ "other": {
56
+ "otherType": "checkboxes",
57
+ "selectAllChildren": true,
58
+ "legend": "Publication type",
59
+ "legendClasses": "ons-u-vh",
60
+ "name": "name",
61
+ "checkboxes": [
62
+ {
63
+ "id": "press-release",
64
+ "label": {
65
+ "text": "Press release (100)"
66
+ },
67
+ "value": "pressrelease"
68
+ },
69
+ {
70
+ "id": "bulletin",
71
+ "label": {
72
+ "text": "Bulletin (20)"
73
+ },
74
+ "value": "bulletin"
75
+ }
76
+ ]
77
+ }
78
+ },
79
+ {
80
+ "id": "areas",
81
+ "label": {
82
+ "text": "Areas (0)"
83
+ },
84
+ "value": "areas"
85
+ }
86
+ ]
87
+ })
88
+ }}
@@ -0,0 +1,70 @@
1
+ {% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
2
+
3
+ {{
4
+ onsCheckboxes({
5
+ "checkboxesLabel": "Select all that apply",
6
+ "legend": "How would you like us to contact you?",
7
+ "name": "contact",
8
+ "borderless": true,
9
+ "checkboxes": [
10
+ {
11
+ "id": "post",
12
+ "label": {
13
+ "text": "By post"
14
+ },
15
+ "value": "post"
16
+ },
17
+ {
18
+ "id": "email",
19
+ "label": {
20
+ "text": "By email"
21
+ },
22
+ "value": "email"
23
+ },
24
+ {
25
+ "id": "phone",
26
+ "label": {
27
+ "text": "By phone"
28
+ },
29
+ "value": "phone",
30
+ "checked": true,
31
+ "other": {
32
+ "otherType": "radios",
33
+ "id": "phone-time",
34
+ "name": "phone-time",
35
+ "legend": "Choose preferred time of day",
36
+ "radios": [
37
+ {
38
+ "value": "anytime",
39
+ "id": "anytime",
40
+ "label": {
41
+ "text": "Any time of day"
42
+ }
43
+ },
44
+ {
45
+ "value": "morning",
46
+ "id": "morning",
47
+ "label": {
48
+ "text": "Morning"
49
+ }
50
+ },
51
+ {
52
+ "value": "afternoon",
53
+ "id": "afternoon",
54
+ "label": {
55
+ "text": "Afternoon"
56
+ }
57
+ },
58
+ {
59
+ "value": "evening",
60
+ "id": "evening",
61
+ "label": {
62
+ "text": "Evening"
63
+ }
64
+ }
65
+ ]
66
+ }
67
+ }
68
+ ]
69
+ })
70
+ }}
@@ -0,0 +1,72 @@
1
+ {% from "components/question/_macro.njk" import onsQuestion %}
2
+ {% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
3
+
4
+ {% call onsQuestion({
5
+ "title": "How would you like us to contact you?",
6
+ "legendIsQuestionTitle": true,
7
+ "classes": "ons-u-mt-no"
8
+ }) %}
9
+ {{
10
+ onsCheckboxes({
11
+ "checkboxesLabel": "Select all that apply",
12
+ "dontWrap": true,
13
+ "name": "contact",
14
+ "checkboxes": [
15
+ {
16
+ "id": "post",
17
+ "label": {
18
+ "text": "By post"
19
+ },
20
+ "value": "post"
21
+ },
22
+ {
23
+ "id": "email",
24
+ "label": {
25
+ "text": "By email"
26
+ },
27
+ "value": "email"
28
+ },
29
+ {
30
+ "id": "phone",
31
+ "label": {
32
+ "text": "By phone"
33
+ },
34
+ "value": "phone",
35
+ "checked": true,
36
+ "other": {
37
+ "otherType": "select",
38
+ "id": "phone-time",
39
+ "name": "phone-time",
40
+ "label": {
41
+ "text": "Choose preferred time of day"
42
+ },
43
+ "options": [
44
+ {
45
+ "value": "",
46
+ "text": "Select an option",
47
+ "disabled": true,
48
+ "selected": true
49
+ },
50
+ {
51
+ "value": "anytime",
52
+ "text": "Anytime of day"
53
+ },
54
+ {
55
+ "value": "morning",
56
+ "text": "Morning"
57
+ },
58
+ {
59
+ "value": "afternoon",
60
+ "text": "Afternoon"
61
+ },
62
+ {
63
+ "value": "evening",
64
+ "text": "Evening"
65
+ }
66
+ ]
67
+ }
68
+ }
69
+ ]
70
+ })
71
+ }}
72
+ {% endcall %}
@@ -0,0 +1,60 @@
1
+ {% from "components/question/_macro.njk" import onsQuestion %}
2
+ {% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
3
+
4
+ {% call onsQuestion({
5
+ "title": "Do you have any dietary requirements?",
6
+ "legendIsQuestionTitle": true,
7
+ "classes": "ons-u-mt-no"
8
+ }) %}
9
+ {{
10
+ onsCheckboxes({
11
+ "checkboxesLabel": "Select all that apply",
12
+ "dontWrap": true,
13
+ "checkboxes": [
14
+ {
15
+ "id": "gluten-free",
16
+ "label": {
17
+ "text": "Gluten free"
18
+ },
19
+ "value": "gluten-free"
20
+ },
21
+ {
22
+ "id": "lactose-intolerant",
23
+ "label": {
24
+ "text": "Lactose intolerant"
25
+ },
26
+ "value": "lactose-intolerant"
27
+ },
28
+ {
29
+ "id": "vegan",
30
+ "label": {
31
+ "text": "Vegan"
32
+ },
33
+ "value": "vegan"
34
+ },
35
+ {
36
+ "id": "vegetarian",
37
+ "label": {
38
+ "text": "Vegetarian"
39
+ },
40
+ "value": "vegetarian"
41
+ },
42
+ {
43
+ "id": "other-checkbox",
44
+ "label": {
45
+ "text": "Other"
46
+ },
47
+ "value": "other",
48
+ "checked": true,
49
+ "other": {
50
+ "id": "other-textbox",
51
+ "name": "other-answer",
52
+ "label": {
53
+ "text": "Enter dietary requirements"
54
+ }
55
+ }
56
+ }
57
+ ]
58
+ })
59
+ }}
60
+ {% endcall %}
@@ -37,7 +37,7 @@
37
37
  }
38
38
 
39
39
  &__link-text {
40
- @extend .ons-u-fs-m;
40
+ @extend .ons-u-fs-r--b;
41
41
 
42
42
  margin: 0 0 0 0.5rem;
43
43
  vertical-align: middle;
@@ -2,9 +2,9 @@
2
2
  <ul{% if params.id %} id="{{ params.id }}"{% endif %} class="ons-document-list{{ ' ' + params.classes if params.classes else '' }}"{% if params.attributes %}{% for attribute, value in (params.attributes.items() if params.attributes is mapping and params.attributes.items else params.attributes) %} {{attribute}}="{{value}}"{% endfor %}{% endif %}>
3
3
  {% for document in params.documents %}
4
4
 
5
- <li class="ons-document-list__item{{ ' ons-document-list__item--featured' if document.featured }}{{ ' ons-document-list__item--full-width' if document.fullWidth == true }}{{ ' ' + document.classes if document.classes else '' }}"{% if document.attributes %}{% for attribute, value in (document.attributes.items() if document.attributes is mapping and document.attributes.items else document.attributes) %} {{attribute}}="{{value}}"{% endfor %}{% endif %}>
5
+ <li class="ons-document-list__item{{ ' ons-document-list__item--featured' if document.featured }}{{ ' ons-document-list__item--full-width' if document.featured and document.fullWidth == true }}{{ ' ' + document.classes if document.classes else '' }}"{% if document.attributes %}{% for attribute, value in (document.attributes.items() if document.attributes is mapping and document.attributes.items else document.attributes) %} {{attribute}}="{{value}}"{% endfor %}{% endif %}>
6
6
 
7
- {% if document.fullWidth == true %}
7
+ {% if document.featured and document.fullWidth == true %}
8
8
 
9
9
  <div class="ons-container{{ ' ons-container--wide' if document.wide == true }}">
10
10
 
@@ -50,10 +50,8 @@
50
50
 
51
51
  {%- if document.metadata.date %}
52
52
  <li class="ons-document-list__item-attribute">
53
- {% if document.metadata.date -%}
54
- {% set prefixClasses = "ons-u-fw-b" if document.metadata.date.showPrefix == true else "ons-u-vh" %}
55
- <span class="{{ prefixClasses }}">{{ document.metadata.date.prefix | default("Published") }}: </span>
56
- {%- endif -%}
53
+ {% set prefixClasses = "ons-u-fw-b" if document.metadata.date.showPrefix == true else "ons-u-vh" %}
54
+ <span class="{{ prefixClasses }}">{{ document.metadata.date.prefix | default("Published") }}: </span>
57
55
  {% if document.metadata.date.iso -%}
58
56
  <time datetime="{{ document.metadata.date.iso }}">{{ document.metadata.date.short }}</time>
59
57
  {%- endif %}
@@ -99,7 +97,7 @@
99
97
 
100
98
  </div>
101
99
 
102
- {% if document.fullWidth == true %}
100
+ {% if document.featured and document.fullWidth == true %}
103
101
 
104
102
  </div>
105
103
 
@@ -117,7 +117,7 @@ describe('macro: document list', () => {
117
117
  it('has the correct container if `fullWidth`', () => {
118
118
  const $ = cheerio.load(
119
119
  renderComponent('document-list', {
120
- documents: [{ ...EXAMPLE_DOCUMENT_LIST_BASIC, fullWidth: true }],
120
+ documents: [{ ...EXAMPLE_DOCUMENT_LIST_BASIC, featured: true, fullWidth: true }],
121
121
  }),
122
122
  );
123
123
 
@@ -127,7 +127,7 @@ describe('macro: document list', () => {
127
127
  it('has the correct container class if `fullWidth` and `wide`', () => {
128
128
  const $ = cheerio.load(
129
129
  renderComponent('document-list', {
130
- documents: [{ ...EXAMPLE_DOCUMENT_LIST_BASIC, fullWidth: true, wide: true }],
130
+ documents: [{ ...EXAMPLE_DOCUMENT_LIST_BASIC, featured: true, fullWidth: true, wide: true }],
131
131
  }),
132
132
  );
133
133
 
@@ -12,7 +12,7 @@
12
12
  "text": 'Topic'
13
13
  }
14
14
  },
15
- "description": '<p>Figures on <em class="ons-highlight">crime</em> levels and trends for England and Wales based primarily on two sets of statistics: the <em class="ons-highlight">Crime</em> Survey for England and Wales (CSEW) and police recorded crime data.</p>
15
+ "description": '<p>Figures on <strong class="ons-highlight">crime</strong> levels and trends for England and Wales based primarily on two sets of statistics: the <strong class="ons-highlight">Crime</strong> Survey for England and Wales (CSEW) and police recorded crime data.</p>
16
16
  <p>View all <a href="#0">datasets</a> or <a href="#0">publications</a> related to <a href="#0">Crime and justice</a></p>'
17
17
  }
18
18
  ]
@@ -12,7 +12,7 @@
12
12
  "text": 'Topic'
13
13
  }
14
14
  },
15
- "description": '<p>Figures on <em class="ons-highlight">crime</em> levels and trends for England and Wales based primarily on two sets of statistics: the <em class="ons-highlight">Crime</em> Survey for England and Wales (CSEW) and police recorded <em class="ons-highlight">crime</em> data.</p>
15
+ "description": '<p>Figures on <strong class="ons-highlight">crime</strong> levels and trends for England and Wales based primarily on two sets of statistics: the <strong class="ons-highlight">Crime</strong> Survey for England and Wales (CSEW) and police recorded <strong class="ons-highlight">crime</strong> data.</p>
16
16
  <p>View all <a href="#0">datasets</a> or <a href="#0">publications</a> related to <a href="#0">Crime and justice</a></p>'
17
17
  },
18
18
  {
@@ -29,7 +29,7 @@
29
29
  "short": '18 February 2021'
30
30
  }
31
31
  },
32
- "description": '<p>Domestic abuse and sexual assault outcomes for disabled people in England and Wales aged 16 to 59 years, with analysis by age, sex, impairment type, impairment severity, country and region using the <em class="ons-highlight">Crime</em> Survey for England and Wales (CSEW) data.</p>'
32
+ "description": '<p>Domestic abuse and sexual assault outcomes for disabled people in England and Wales aged 16 to 59 years, with analysis by age, sex, impairment type, impairment severity, country and region using the <strong class="ons-highlight">Crime</strong> Survey for England and Wales (CSEW) data.</p>'
33
33
  },
34
34
  {
35
35
  "url": '#0',
@@ -45,7 +45,7 @@
45
45
  "short": '2 December 2019'
46
46
  }
47
47
  },
48
- "description": '<p>An overview of published data on disability and <em class="ons-highlight">crime</em> in the UK and analysis of the experience of domestic abuse and sexual assault for disabled adults aged 16 to 59 years in England and Wales. Analysis by age, sex and impairment type.</p>'
48
+ "description": '<p>An overview of published data on disability and <strong class="ons-highlight">crime</strong> in the UK and analysis of the experience of domestic abuse and sexual assault for disabled adults aged 16 to 59 years in England and Wales. Analysis by age, sex and impairment type.</p>'
49
49
  },
50
50
  {
51
51
  "url": '#0',
@@ -10,7 +10,7 @@
10
10
  margin: 0;
11
11
  padding: 0 0 1.5rem;
12
12
 
13
- em,
13
+ strong,
14
14
  .ons-highlight {
15
15
  @extend .ons-highlight;
16
16
  }
@@ -102,9 +102,9 @@
102
102
  href="{{ item.url }}"
103
103
  class="ons-header-service-nav__link"
104
104
  {% if item.id %} id="{{ item.id }}"{% endif %}
105
- >{{ item.title }}</a>
105
+ >{% if item.title %}{{ item.title }}{% elif item.text %}{{ item.text }}{% endif %}</a>
106
106
  {% else %}
107
- {{ item.title }}
107
+ {% if item.title %}{{ item.title }}{% elif item.text %}{{ item.text }}{% endif %}
108
108
  {% endif %}
109
109
  </li>
110
110
  {% endfor %}
@@ -153,9 +153,9 @@
153
153
  href="{{ item.url }}"
154
154
  class="ons-header-service-nav__link"
155
155
  {% if item.id %} id="{{ item.id }}"{% endif %}
156
- >{{ item.title }}</a>
156
+ >{% if item.title %}{{ item.title }}{% elif item.text %}{{ item.text }}{% endif %}</a>
157
157
  {% else %}
158
- {{ item.title }}
158
+ {% if item.title %}{{ item.title }}{% elif item.text %}{{ item.text }}{% endif %}
159
159
  {% endif %}
160
160
  </li>
161
161
  {% endfor %}
@@ -13,23 +13,23 @@
13
13
  "currentPath": '#home',
14
14
  "itemsList": [
15
15
  {
16
- "title": 'Home',
16
+ "text": 'Home',
17
17
  "url": '#home'
18
18
  },
19
19
  {
20
- "title": 'Guidance',
20
+ "text": 'Guidance',
21
21
  "url": '#0'
22
22
  },
23
23
  {
24
- "title": 'Foundations',
24
+ "text": 'Foundations',
25
25
  "url": '#0'
26
26
  },
27
27
  {
28
- "title": 'Components',
28
+ "text": 'Components',
29
29
  "url": '#0'
30
30
  },
31
31
  {
32
- "title": 'Patterns',
32
+ "text": 'Patterns',
33
33
  "url": '#0'
34
34
  }
35
35
  ],
@@ -18,15 +18,15 @@
18
18
  },
19
19
  "itemsList": [
20
20
  {
21
- "title": "Help",
21
+ "text": "Help",
22
22
  "url": "#0"
23
23
  },
24
24
  {
25
- "title": "My Account",
25
+ "text": "My Account",
26
26
  "url": "#0"
27
27
  },
28
28
  {
29
- "title": "Sign out",
29
+ "text": "Sign out",
30
30
  "url": "#0"
31
31
  }
32
32
  ]
@@ -15,29 +15,29 @@
15
15
  "currentPageTitle": 'Design system',
16
16
  "itemsList": [
17
17
  {
18
- "title": 'Service standard',
18
+ "text": 'Service standard',
19
19
  "url": '#0'
20
20
  },
21
21
  {
22
- "title": 'Design system',
22
+ "text": 'Design system',
23
23
  "url": '#design-system'
24
24
  },
25
25
  {
26
- "title": 'Accessibility',
26
+ "text": 'Accessibility',
27
27
  "url": '#0'
28
28
  },
29
29
  {
30
- "title": 'Brand guidelines',
30
+ "text": 'Brand guidelines',
31
31
  "url": '#0'
32
32
  },
33
33
  {
34
- "title": 'Content style guide',
34
+ "text": 'Content style guide',
35
35
  "url": '#0'
36
36
  }
37
37
  ],
38
38
  "toggleNavigationButton": {
39
39
  "text": 'Menu',
40
- "ariaLabel": 'Toggle main menu'
40
+ "ariaLabel": 'Toggle menu'
41
41
  },
42
42
  "subNavigation": {
43
43
  "id": 'sub-nav',
@@ -46,19 +46,19 @@
46
46
  "ariaLabel": 'Section menu',
47
47
  "itemsList": [
48
48
  {
49
- "title": 'Guidance',
49
+ "text": 'Guidance',
50
50
  "url": '#0'
51
51
  },
52
52
  {
53
- "title": 'Foundations',
53
+ "text": 'Foundations',
54
54
  "url": '#0'
55
55
  },
56
56
  {
57
- "title": 'Components',
57
+ "text": 'Components',
58
58
  "url": '#0'
59
59
  },
60
60
  {
61
- "title": 'Patterns',
61
+ "text": 'Patterns',
62
62
  "url": '#patterns',
63
63
  "sections": [
64
64
  {
@@ -19,11 +19,11 @@
19
19
  },
20
20
  "itemsList": [
21
21
  {
22
- "title": "Jacky Turner",
22
+ "text": "Jacky Turner",
23
23
  "iconType": 'person'
24
24
  },
25
25
  {
26
- "title": "Sign out",
26
+ "text": "Sign out",
27
27
  "url": "#0"
28
28
  }
29
29
  ]
@@ -18,15 +18,15 @@
18
18
  },
19
19
  "itemsList": [
20
20
  {
21
- "title": "Help",
21
+ "text": "Help",
22
22
  "url": "#0"
23
23
  },
24
24
  {
25
- "title": "My Account",
25
+ "text": "My Account",
26
26
  "url": "#0"
27
27
  },
28
28
  {
29
- "title": "Sign out",
29
+ "text": "Sign out",
30
30
  "url": "#0"
31
31
  }
32
32
  ]
@@ -38,15 +38,15 @@
38
38
  "currentPageTitle": 'Design system',
39
39
  "itemsList": [
40
40
  {
41
- "title": 'Menu item 1',
41
+ "text": 'Menu item 1',
42
42
  "url": '#0'
43
43
  },
44
44
  {
45
- "title": 'Menu item 2',
45
+ "text": 'Menu item 2',
46
46
  "url": '#menu-item-2'
47
47
  },
48
48
  {
49
- "title": 'Menu item 3',
49
+ "text": 'Menu item 3',
50
50
  "url": '#0'
51
51
  }
52
52
  ],
@@ -1,10 +1,13 @@
1
1
  .ons-list {
2
- margin: 0 0 1rem;
2
+ margin: 0;
3
3
  padding: 0 0 0 1.5rem;
4
4
 
5
5
  &__item {
6
+ &:first-child {
7
+ margin-top: 0.5rem;
8
+ }
6
9
  &:last-child {
7
- margin-bottom: 0;
10
+ margin-bottom: -0.5;
8
11
  }
9
12
  }
10
13