@ons/design-system 46.1.3 → 46.1.4

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.
@@ -153,9 +153,8 @@
153
153
  "id": params.fieldId,
154
154
  "classes": params.fieldClasses,
155
155
  "dontWrap": params.dontWrap,
156
- "legendIsQuestionTitle": params.legendIsQuestionTitle,
157
156
  "error": params.error,
158
- "inline": params.label.inline
157
+ "inline": params.label.inline if params.label is defined and params.label else ''
159
158
  }) %}
160
159
  {% if charCheckField is defined and charCheckField %}
161
160
  {{ charCheckField | safe }}
@@ -7,9 +7,8 @@
7
7
  "classes": params.fieldClases,
8
8
  "legendClasses": params.legendClasses,
9
9
  "dontWrap": params.dontWrap,
10
- "legendIsQuestionTitle": params.legendIsQuestionTitle,
11
10
  "error": params.error,
12
- "inline": params.label.inline
11
+ "inline": params.label.inline if params.label is defined and params.label else ''
13
12
  }) %}
14
13
  {{
15
14
  onsLabel({
@@ -68,7 +68,6 @@
68
68
  "id": params.fieldId,
69
69
  "classes": params.fieldClasses,
70
70
  "dontWrap": params.dontWrap,
71
- "legendIsQuestionTitle": params.legendIsQuestionTitle,
72
71
  "error": params.error
73
72
  }) %}
74
73
  {{ field | safe }}
@@ -19,7 +19,6 @@
19
19
  "id": params.fieldId,
20
20
  "classes": params.fieldClasses,
21
21
  "dontWrap": params.dontWrap,
22
- "legendIsQuestionTitle": params.legendIsQuestionTitle,
23
22
  "error": params.error
24
23
  }) %}
25
24
  {{ field | safe }}
@@ -22,7 +22,7 @@
22
22
  {# Production #}
23
23
  {% set cdn_url = (pageConfig.cdn.url if pageConfig.cdn is defined and pageConfig.cdn and pageConfig.cdn.url is defined and pageConfig.cdn.url) or "https://cdn.ons.gov.uk/sdc/design-system" %}
24
24
  {% set slash = "" if cdn_url | last == "/" else "/" %}
25
- {% set assetsURL = cdn_url + slash + ((pageConfig.cdn.version if pageConfig.cdn is defined and pageConfig.cdn and pageConfig.cdn.version is defined and pageConfig.cdn.version) or release_version) %}
25
+ {% set assetsURL = cdn_url + slash + ((pageConfig.cdn.version if pageConfig.cdn is defined and pageConfig.cdn and pageConfig.cdn.version is defined and pageConfig.cdn.version) or release_version) %}
26
26
  {% elif pageInfo is defined and pageInfo and pageInfo.version is defined and pageInfo.version %}
27
27
  {# Prototype kits #}
28
28
  {% set assetsURL = "/" + pageInfo.version %}
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": "46.1.3",
4
+ "version": "46.1.4",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "author": {