@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({
|
package/layout/_template.njk
CHANGED
|
@@ -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
|
|
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 %}
|