govuk_publishing_components 32.1.0 → 33.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +175 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-ecommerce-tracker.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-event-tracker.js +5 -13
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-link-tracker.js +80 -309
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +2 -2
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-specialist-link-tracker.js +140 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/init-ga4.js +3 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4.js +1 -0
- data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +12 -1
- data/app/assets/javascripts/govuk_publishing_components/components/single-page-notification-button.js +24 -8
- data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +83 -86
- data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +2 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +1 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +3 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +10 -30
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +0 -7
- data/app/views/govuk_publishing_components/components/_accordion.html.erb +14 -1
- data/app/views/govuk_publishing_components/components/_error_summary.html.erb +27 -26
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_phase_banner.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +11 -13
- data/app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/accordion.yml +15 -3
- data/app/views/govuk_publishing_components/components/docs/button.yml +10 -0
- data/app/views/govuk_publishing_components/components/docs/share_links.yml +59 -30
- data/app/views/govuk_publishing_components/components/docs/single_page_notification_button.yml +10 -1
- data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +3 -3
- data/lib/govuk_publishing_components/presenters/button_helper.rb +7 -1
- data/lib/govuk_publishing_components/presenters/single_page_notification_button_helper.rb +25 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/axe.js +4559 -4673
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/package.json +2 -2
- data/node_modules/axe-core/sri-history.json +4 -0
- data/node_modules/govuk-frontend/README.md +1 -2
- data/node_modules/govuk-frontend/govuk/all.js +1398 -273
- data/node_modules/govuk-frontend/govuk/common/closest-attribute-value.js +70 -0
- data/node_modules/govuk-frontend/govuk/common/index.js +172 -0
- data/node_modules/govuk-frontend/govuk/common/normalise-dataset.js +373 -0
- data/node_modules/govuk-frontend/govuk/common.js +138 -3
- data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +753 -25
- data/node_modules/govuk-frontend/govuk/components/accordion/fixtures.json +54 -22
- data/node_modules/govuk-frontend/govuk/components/accordion/macro-options.json +36 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/template.njk +7 -1
- data/node_modules/govuk-frontend/govuk/components/back-link/fixtures.json +12 -12
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/fixtures.json +22 -22
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss +23 -5
- data/node_modules/govuk-frontend/govuk/components/button/button.js +365 -107
- data/node_modules/govuk-frontend/govuk/components/button/fixtures.json +85 -66
- data/node_modules/govuk-frontend/govuk/components/button/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +9 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +1033 -121
- data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +112 -36
- data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +42 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/template.njk +27 -3
- data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +30 -2
- data/node_modules/govuk-frontend/govuk/components/checkboxes/fixtures.json +96 -93
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +46 -46
- data/node_modules/govuk-frontend/govuk/components/date-input/fixtures.json +50 -50
- data/node_modules/govuk-frontend/govuk/components/details/details.js +43 -13
- data/node_modules/govuk-frontend/govuk/components/details/fixtures.json +20 -20
- data/node_modules/govuk-frontend/govuk/components/error-message/fixtures.json +20 -20
- data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js +268 -6
- data/node_modules/govuk-frontend/govuk/components/error-summary/fixtures.json +44 -35
- data/node_modules/govuk-frontend/govuk/components/error-summary/template.njk +25 -21
- data/node_modules/govuk-frontend/govuk/components/fieldset/fixtures.json +51 -39
- data/node_modules/govuk-frontend/govuk/components/file-upload/fixtures.json +26 -26
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +1 -1
- data/node_modules/govuk-frontend/govuk/components/footer/fixtures.json +46 -46
- data/node_modules/govuk-frontend/govuk/components/footer/macro-options.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +93 -38
- data/node_modules/govuk-frontend/govuk/components/header/header.js +6 -0
- data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +8 -2
- data/node_modules/govuk-frontend/govuk/components/header/template.njk +4 -2
- data/node_modules/govuk-frontend/govuk/components/hint/fixtures.json +12 -12
- data/node_modules/govuk-frontend/govuk/components/input/fixtures.json +80 -80
- data/node_modules/govuk-frontend/govuk/components/inset-text/fixtures.json +12 -12
- data/node_modules/govuk-frontend/govuk/components/label/fixtures.json +34 -34
- data/node_modules/govuk-frontend/govuk/components/notification-banner/fixtures.json +56 -46
- data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +252 -2
- data/node_modules/govuk-frontend/govuk/components/notification-banner/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/pagination/_index.scss +10 -7
- data/node_modules/govuk-frontend/govuk/components/pagination/fixtures.json +33 -26
- data/node_modules/govuk-frontend/govuk/components/panel/fixtures.json +18 -18
- data/node_modules/govuk-frontend/govuk/components/phase-banner/fixtures.json +14 -14
- data/node_modules/govuk-frontend/govuk/components/radios/fixtures.json +94 -91
- data/node_modules/govuk-frontend/govuk/components/radios/radios.js +30 -2
- data/node_modules/govuk-frontend/govuk/components/select/fixtures.json +32 -32
- data/node_modules/govuk-frontend/govuk/components/skip-link/fixtures.json +22 -20
- data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js +10 -4
- data/node_modules/govuk-frontend/govuk/components/summary-list/fixtures.json +50 -50
- data/node_modules/govuk-frontend/govuk/components/table/_index.scss +1 -1
- data/node_modules/govuk-frontend/govuk/components/table/fixtures.json +40 -40
- data/node_modules/govuk-frontend/govuk/components/tabs/fixtures.json +29 -29
- data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js +28 -0
- data/node_modules/govuk-frontend/govuk/components/tag/fixtures.json +28 -28
- data/node_modules/govuk-frontend/govuk/components/textarea/fixtures.json +34 -34
- data/node_modules/govuk-frontend/govuk/components/warning-text/fixtures.json +14 -14
- data/node_modules/govuk-frontend/govuk/core/_section-break.scss +1 -1
- data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +2 -2
- data/node_modules/govuk-frontend/govuk/helpers/_links.scss +6 -6
- data/node_modules/govuk-frontend/govuk/i18n.js +390 -0
- data/node_modules/govuk-frontend/govuk/macros/i18n.njk +15 -0
- data/node_modules/govuk-frontend/govuk/settings/_all.scss +1 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +12 -0
- data/node_modules/govuk-frontend/govuk/settings/_compatibility.scss +26 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-font.scss +23 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-responsive.scss +12 -0
- data/node_modules/govuk-frontend/govuk/settings/_warnings.scss +53 -0
- data/node_modules/govuk-frontend/govuk/tools/_compatibility.scss +20 -6
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Date/now.js +21 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/dataset.js +300 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js +21 -0
- data/node_modules/govuk-frontend/govuk-esm/all.mjs +50 -27
- data/node_modules/govuk-frontend/govuk-esm/common/closest-attribute-value.mjs +15 -0
- data/node_modules/govuk-frontend/govuk-esm/common/index.mjs +159 -0
- data/node_modules/govuk-frontend/govuk-esm/common/normalise-dataset.mjs +58 -0
- data/node_modules/govuk-frontend/govuk-esm/common.mjs +6 -28
- data/node_modules/govuk-frontend/govuk-esm/components/accordion/accordion.mjs +113 -43
- data/node_modules/govuk-frontend/govuk-esm/components/button/button.mjs +67 -30
- data/node_modules/govuk-frontend/govuk-esm/components/character-count/character-count.mjs +325 -123
- data/node_modules/govuk-frontend/govuk-esm/components/checkboxes/checkboxes.mjs +9 -3
- data/node_modules/govuk-frontend/govuk-esm/components/details/details.mjs +22 -8
- data/node_modules/govuk-frontend/govuk-esm/components/error-summary/error-summary.mjs +48 -6
- data/node_modules/govuk-frontend/govuk-esm/components/header/header.mjs +6 -0
- data/node_modules/govuk-frontend/govuk-esm/components/notification-banner/notification-banner.mjs +32 -2
- data/node_modules/govuk-frontend/govuk-esm/components/radios/radios.mjs +9 -3
- data/node_modules/govuk-frontend/govuk-esm/components/skip-link/skip-link.mjs +10 -4
- data/node_modules/govuk-frontend/govuk-esm/components/tabs/tabs.mjs +8 -2
- data/node_modules/govuk-frontend/govuk-esm/i18n.mjs +380 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Date/now.mjs +13 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/dataset.mjs +68 -0
- data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/String/prototype/trim.mjs +13 -0
- data/node_modules/govuk-frontend/govuk-prototype-kit/init.js +7 -0
- data/node_modules/govuk-frontend/govuk-prototype-kit/init.scss +12 -0
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +138 -7
- data/node_modules/govuk-frontend/package.json +1 -1
- metadata +22 -3
@@ -1014,6 +1014,12 @@ if (detect) return
|
|
1014
1014
|
})
|
1015
1015
|
.call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
|
1016
1016
|
|
1017
|
+
/**
|
1018
|
+
* Header component
|
1019
|
+
*
|
1020
|
+
* @class
|
1021
|
+
* @param {HTMLElement} $module - HTML element to use for header
|
1022
|
+
*/
|
1017
1023
|
function Header ($module) {
|
1018
1024
|
this.$module = $module;
|
1019
1025
|
this.$menuButton = $module && $module.querySelector('.govuk-js-header-toggle');
|
@@ -77,13 +77,19 @@
|
|
77
77
|
"name": "navigationLabel",
|
78
78
|
"type": "string",
|
79
79
|
"required": false,
|
80
|
-
"description": "Text for the `aria-label` attribute of the navigation. Defaults to
|
80
|
+
"description": "Text for the `aria-label` attribute of the navigation. Defaults to the same value as `menuButtonText`."
|
81
81
|
},
|
82
82
|
{
|
83
83
|
"name": "menuButtonLabel",
|
84
84
|
"type": "string",
|
85
85
|
"required": false,
|
86
|
-
"description": "Text for the `aria-label` attribute of the button that
|
86
|
+
"description": "Text for the `aria-label` attribute of the button that opens the mobile navigation, if there is a mobile navigation menu. Defaults to 'Show or hide menu'."
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"name": "menuButtonText",
|
90
|
+
"type": "string",
|
91
|
+
"required": false,
|
92
|
+
"description": "Text of the button that opens the mobile navigation menu, if there is a mobile navigation menu. There is no enforced character limit, but there is a limited display space so keep text as short as possible. By default, this is set to 'Menu'."
|
87
93
|
},
|
88
94
|
{
|
89
95
|
"name": "containerClasses",
|
@@ -1,3 +1,5 @@
|
|
1
|
+
{% set menuButtonText = params.menuButtonText if params.menuButtonText else 'Menu' %}
|
2
|
+
|
1
3
|
<header class="govuk-header {{ params.classes if params.classes }}" role="banner" data-module="govuk-header"
|
2
4
|
{%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
3
5
|
<div class="govuk-header__container {{ params.containerClasses | default('govuk-width-container') }}">
|
@@ -60,8 +62,8 @@
|
|
60
62
|
{% endif %}
|
61
63
|
{% endif %}
|
62
64
|
{% if params.navigation %}
|
63
|
-
<nav aria-label="{{ params.navigationLabel | default(
|
64
|
-
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" aria-label="{{ params.menuButtonLabel | default('Show or hide menu') }}" hidden>
|
65
|
+
<nav aria-label="{{ params.navigationLabel | default(menuButtonText) }}" class="govuk-header__navigation {{ params.navigationClasses if params.navigationClasses }}">
|
66
|
+
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" aria-label="{{ params.menuButtonLabel | default('Show or hide menu') }}" hidden>{{ menuButtonText }}</button>
|
65
67
|
|
66
68
|
<ul id="navigation" class="govuk-header__navigation-list">
|
67
69
|
{% for item in params.navigation %}
|
@@ -6,16 +6,16 @@
|
|
6
6
|
"options": {
|
7
7
|
"text": "It's on your National Insurance card, benefit letter, payslip or P60.\nFor example, 'QQ 12 34 56 C'.\n"
|
8
8
|
},
|
9
|
-
"
|
10
|
-
"
|
9
|
+
"hidden": false,
|
10
|
+
"html": "<div class=\"govuk-hint\">\n It's on your National Insurance card, benefit letter, payslip or P60.\nFor example, 'QQ 12 34 56 C'.\n\n</div>"
|
11
11
|
},
|
12
12
|
{
|
13
13
|
"name": "with html",
|
14
14
|
"options": {
|
15
15
|
"html": "It's on your National Insurance card, benefit letter, payslip or <a class=\"govuk-link\" href=\"#\">P60</a>.\nFor example, 'QQ 12 34 56 C'.\n"
|
16
16
|
},
|
17
|
-
"
|
18
|
-
"
|
17
|
+
"hidden": false,
|
18
|
+
"html": "<div class=\"govuk-hint\">\n It's on your National Insurance card, benefit letter, payslip or <a class=\"govuk-link\" href=\"#\">P60</a>.\nFor example, 'QQ 12 34 56 C'.\n\n</div>"
|
19
19
|
},
|
20
20
|
{
|
21
21
|
"name": "classes",
|
@@ -24,8 +24,8 @@
|
|
24
24
|
"classes": "app-hint--custom-modifier",
|
25
25
|
"text": "It's on your National Insurance card, benefit letter, payslip or P60."
|
26
26
|
},
|
27
|
-
"
|
28
|
-
"
|
27
|
+
"hidden": true,
|
28
|
+
"html": "<div id=\"example-hint\" class=\"govuk-hint app-hint--custom-modifier\">\n It's on your National Insurance card, benefit letter, payslip or P60.\n</div>"
|
29
29
|
},
|
30
30
|
{
|
31
31
|
"name": "id",
|
@@ -33,16 +33,16 @@
|
|
33
33
|
"id": "my-hint",
|
34
34
|
"text": "It's on your National Insurance card, benefit letter, payslip or P60."
|
35
35
|
},
|
36
|
-
"
|
37
|
-
"
|
36
|
+
"hidden": true,
|
37
|
+
"html": "<div id=\"my-hint\" class=\"govuk-hint\">\n It's on your National Insurance card, benefit letter, payslip or P60.\n</div>"
|
38
38
|
},
|
39
39
|
{
|
40
40
|
"name": "html as text",
|
41
41
|
"options": {
|
42
42
|
"text": "Unexpected <strong>bold text</strong> in body"
|
43
43
|
},
|
44
|
-
"
|
45
|
-
"
|
44
|
+
"hidden": true,
|
45
|
+
"html": "<div class=\"govuk-hint\">\n Unexpected <strong>bold text</strong> in body\n</div>"
|
46
46
|
},
|
47
47
|
{
|
48
48
|
"name": "attributes",
|
@@ -52,8 +52,8 @@
|
|
52
52
|
"data-attribute": "my data value"
|
53
53
|
}
|
54
54
|
},
|
55
|
-
"
|
56
|
-
"
|
55
|
+
"hidden": true,
|
56
|
+
"html": "<div class=\"govuk-hint\" data-attribute=\"my data value\">\n It's on your National Insurance card, benefit letter, payslip or P60.\n</div>"
|
57
57
|
}
|
58
58
|
]
|
59
59
|
}
|
@@ -10,8 +10,8 @@
|
|
10
10
|
"id": "input-example",
|
11
11
|
"name": "test-name"
|
12
12
|
},
|
13
|
-
"
|
14
|
-
"
|
13
|
+
"hidden": false,
|
14
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-example\">\n National Insurance number\n </label>\n\n<input class=\"govuk-input\" id=\"input-example\" name=\"test-name\" type=\"text\">\n\n</div>"
|
15
15
|
},
|
16
16
|
{
|
17
17
|
"name": "with hint text",
|
@@ -25,8 +25,8 @@
|
|
25
25
|
"id": "input-with-hint-text",
|
26
26
|
"name": "test-name-2"
|
27
27
|
},
|
28
|
-
"
|
29
|
-
"
|
28
|
+
"hidden": false,
|
29
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-hint-text\">\n National insurance number\n </label>\n\n \n \n <div id=\"input-with-hint-text-hint\" class=\"govuk-hint\">\n It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’.\n </div>\n\n<input class=\"govuk-input\" id=\"input-with-hint-text\" name=\"test-name-2\" type=\"text\" aria-describedby=\"input-with-hint-text-hint\">\n\n</div>"
|
30
30
|
},
|
31
31
|
{
|
32
32
|
"name": "with error message",
|
@@ -43,8 +43,8 @@
|
|
43
43
|
"text": "Error message goes here"
|
44
44
|
}
|
45
45
|
},
|
46
|
-
"
|
47
|
-
"
|
46
|
+
"hidden": false,
|
47
|
+
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"input-with-error-message\">\n National Insurance number\n </label>\n\n \n \n <div id=\"input-with-error-message-hint\" class=\"govuk-hint\">\n It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’.\n </div>\n\n\n \n \n <p id=\"input-with-error-message-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message goes here\n </p>\n<input class=\"govuk-input govuk-input--error\" id=\"input-with-error-message\" name=\"test-name-3\" type=\"text\" aria-describedby=\"input-with-error-message-hint input-with-error-message-error\">\n\n</div>"
|
48
48
|
},
|
49
49
|
{
|
50
50
|
"name": "with width-2 class",
|
@@ -59,8 +59,8 @@
|
|
59
59
|
"name": "test-width-2",
|
60
60
|
"classes": "govuk-input--width-2"
|
61
61
|
},
|
62
|
-
"
|
63
|
-
"
|
62
|
+
"hidden": false,
|
63
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-width-2\">\n National insurance number\n </label>\n\n \n \n <div id=\"input-width-2-hint\" class=\"govuk-hint\">\n It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’.\n </div>\n\n<input class=\"govuk-input govuk-input--width-2\" id=\"input-width-2\" name=\"test-width-2\" type=\"text\" aria-describedby=\"input-width-2-hint\">\n\n</div>"
|
64
64
|
},
|
65
65
|
{
|
66
66
|
"name": "with width-3 class",
|
@@ -75,8 +75,8 @@
|
|
75
75
|
"name": "test-width-3",
|
76
76
|
"classes": "govuk-input--width-3"
|
77
77
|
},
|
78
|
-
"
|
79
|
-
"
|
78
|
+
"hidden": false,
|
79
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-width-3\">\n National insurance number\n </label>\n\n \n \n <div id=\"input-width-3-hint\" class=\"govuk-hint\">\n It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’.\n </div>\n\n<input class=\"govuk-input govuk-input--width-3\" id=\"input-width-3\" name=\"test-width-3\" type=\"text\" aria-describedby=\"input-width-3-hint\">\n\n</div>"
|
80
80
|
},
|
81
81
|
{
|
82
82
|
"name": "with width-4 class",
|
@@ -91,8 +91,8 @@
|
|
91
91
|
"name": "test-width-4",
|
92
92
|
"classes": "govuk-input--width-4"
|
93
93
|
},
|
94
|
-
"
|
95
|
-
"
|
94
|
+
"hidden": false,
|
95
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-width-4\">\n National insurance number\n </label>\n\n \n \n <div id=\"input-width-4-hint\" class=\"govuk-hint\">\n It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’.\n </div>\n\n<input class=\"govuk-input govuk-input--width-4\" id=\"input-width-4\" name=\"test-width-4\" type=\"text\" aria-describedby=\"input-width-4-hint\">\n\n</div>"
|
96
96
|
},
|
97
97
|
{
|
98
98
|
"name": "with width-5 class",
|
@@ -107,8 +107,8 @@
|
|
107
107
|
"name": "test-width-5",
|
108
108
|
"classes": "govuk-input--width-5"
|
109
109
|
},
|
110
|
-
"
|
111
|
-
"
|
110
|
+
"hidden": false,
|
111
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-width-5\">\n National insurance number\n </label>\n\n \n \n <div id=\"input-width-5-hint\" class=\"govuk-hint\">\n It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’.\n </div>\n\n<input class=\"govuk-input govuk-input--width-5\" id=\"input-width-5\" name=\"test-width-5\" type=\"text\" aria-describedby=\"input-width-5-hint\">\n\n</div>"
|
112
112
|
},
|
113
113
|
{
|
114
114
|
"name": "with width-10 class",
|
@@ -123,8 +123,8 @@
|
|
123
123
|
"name": "test-width-10",
|
124
124
|
"classes": "govuk-input--width-10"
|
125
125
|
},
|
126
|
-
"
|
127
|
-
"
|
126
|
+
"hidden": false,
|
127
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-width-10\">\n National insurance number\n </label>\n\n \n \n <div id=\"input-width-10-hint\" class=\"govuk-hint\">\n It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’.\n </div>\n\n<input class=\"govuk-input govuk-input--width-10\" id=\"input-width-10\" name=\"test-width-10\" type=\"text\" aria-describedby=\"input-width-10-hint\">\n\n</div>"
|
128
128
|
},
|
129
129
|
{
|
130
130
|
"name": "with width-20 class",
|
@@ -139,8 +139,8 @@
|
|
139
139
|
"name": "test-width-20",
|
140
140
|
"classes": "govuk-input--width-20"
|
141
141
|
},
|
142
|
-
"
|
143
|
-
"
|
142
|
+
"hidden": false,
|
143
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-width-20\">\n National insurance number\n </label>\n\n \n \n <div id=\"input-width-20-hint\" class=\"govuk-hint\">\n It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’.\n </div>\n\n<input class=\"govuk-input govuk-input--width-20\" id=\"input-width-20\" name=\"test-width-20\" type=\"text\" aria-describedby=\"input-width-20-hint\">\n\n</div>"
|
144
144
|
},
|
145
145
|
{
|
146
146
|
"name": "with width-30 class",
|
@@ -155,8 +155,8 @@
|
|
155
155
|
"name": "test-width-30",
|
156
156
|
"classes": "govuk-input--width-30"
|
157
157
|
},
|
158
|
-
"
|
159
|
-
"
|
158
|
+
"hidden": false,
|
159
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-width-30\">\n National insurance number\n </label>\n\n \n \n <div id=\"input-width-30-hint\" class=\"govuk-hint\">\n It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’.\n </div>\n\n<input class=\"govuk-input govuk-input--width-30\" id=\"input-width-30\" name=\"test-width-30\" type=\"text\" aria-describedby=\"input-width-30-hint\">\n\n</div>"
|
160
160
|
},
|
161
161
|
{
|
162
162
|
"name": "with label as page heading",
|
@@ -169,8 +169,8 @@
|
|
169
169
|
"id": "input-with-page-heading",
|
170
170
|
"name": "test-name"
|
171
171
|
},
|
172
|
-
"
|
173
|
-
"
|
172
|
+
"hidden": false,
|
173
|
+
"html": "<div class=\"govuk-form-group\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--l\" for=\"input-with-page-heading\">\n National Insurance number\n </label>\n </h1>\n\n<input class=\"govuk-input\" id=\"input-with-page-heading\" name=\"test-name\" type=\"text\">\n\n</div>"
|
174
174
|
},
|
175
175
|
{
|
176
176
|
"name": "with optional form-group classes",
|
@@ -184,8 +184,8 @@
|
|
184
184
|
"classes": "extra-class"
|
185
185
|
}
|
186
186
|
},
|
187
|
-
"
|
188
|
-
"
|
187
|
+
"hidden": false,
|
188
|
+
"html": "<div class=\"govuk-form-group extra-class\">\n <label class=\"govuk-label\" for=\"input-example\">\n National Insurance number\n </label>\n\n<input class=\"govuk-input\" id=\"input-example\" name=\"test-name\" type=\"text\">\n\n</div>"
|
189
189
|
},
|
190
190
|
{
|
191
191
|
"name": "with autocomplete attribute",
|
@@ -197,8 +197,8 @@
|
|
197
197
|
"name": "postcode",
|
198
198
|
"autocomplete": "postal-code"
|
199
199
|
},
|
200
|
-
"
|
201
|
-
"
|
200
|
+
"hidden": false,
|
201
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-autocomplete-attribute\">\n Postcode\n </label>\n\n<input class=\"govuk-input\" id=\"input-with-autocomplete-attribute\" name=\"postcode\" type=\"text\" autocomplete=\"postal-code\">\n\n</div>"
|
202
202
|
},
|
203
203
|
{
|
204
204
|
"name": "with pattern attribute",
|
@@ -211,8 +211,8 @@
|
|
211
211
|
"type": "number",
|
212
212
|
"pattern": "[0-9]*"
|
213
213
|
},
|
214
|
-
"
|
215
|
-
"
|
214
|
+
"hidden": false,
|
215
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-pattern-attribute\">\n Numbers only\n </label>\n\n<input class=\"govuk-input\" id=\"input-with-pattern-attribute\" name=\"numbers-only\" type=\"number\" pattern=\"[0-9]*\">\n\n</div>"
|
216
216
|
},
|
217
217
|
{
|
218
218
|
"name": "with spellcheck enabled",
|
@@ -225,8 +225,8 @@
|
|
225
225
|
"type": "text",
|
226
226
|
"spellcheck": true
|
227
227
|
},
|
228
|
-
"
|
229
|
-
"
|
228
|
+
"hidden": false,
|
229
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-spellcheck-enabled\">\n Spellcheck is enabled\n </label>\n\n<input class=\"govuk-input\" id=\"input-with-spellcheck-enabled\" name=\"spellcheck\" type=\"text\" spellcheck=\"true\">\n\n</div>"
|
230
230
|
},
|
231
231
|
{
|
232
232
|
"name": "with spellcheck disabled",
|
@@ -239,8 +239,8 @@
|
|
239
239
|
"type": "text",
|
240
240
|
"spellcheck": false
|
241
241
|
},
|
242
|
-
"
|
243
|
-
"
|
242
|
+
"hidden": false,
|
243
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-spellcheck-disabled\">\n Spellcheck is disabled\n </label>\n\n<input class=\"govuk-input\" id=\"input-with-spellcheck-disabled\" name=\"spellcheck\" type=\"text\" spellcheck=\"false\">\n\n</div>"
|
244
244
|
},
|
245
245
|
{
|
246
246
|
"name": "with prefix",
|
@@ -254,8 +254,8 @@
|
|
254
254
|
"text": "£"
|
255
255
|
}
|
256
256
|
},
|
257
|
-
"
|
258
|
-
"
|
257
|
+
"hidden": false,
|
258
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-prefix\">\n Amount, in pounds\n </label>\n\n<div class=\"govuk-input__wrapper\"><div class=\"govuk-input__prefix\" aria-hidden=\"true\">£</div>\n <input class=\"govuk-input\" id=\"input-with-prefix\" name=\"amount\" type=\"text\"></div>\n\n</div>"
|
259
259
|
},
|
260
260
|
{
|
261
261
|
"name": "with suffix",
|
@@ -269,8 +269,8 @@
|
|
269
269
|
"text": "kg"
|
270
270
|
}
|
271
271
|
},
|
272
|
-
"
|
273
|
-
"
|
272
|
+
"hidden": false,
|
273
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-suffix\">\n Weight, in kilograms\n </label>\n\n<div class=\"govuk-input__wrapper\"><input class=\"govuk-input\" id=\"input-with-suffix\" name=\"weight\" type=\"text\"><div class=\"govuk-input__suffix\" aria-hidden=\"true\">kg</div>\n </div>\n\n</div>"
|
274
274
|
},
|
275
275
|
{
|
276
276
|
"name": "with prefix and suffix",
|
@@ -287,8 +287,8 @@
|
|
287
287
|
"text": "per item"
|
288
288
|
}
|
289
289
|
},
|
290
|
-
"
|
291
|
-
"
|
290
|
+
"hidden": false,
|
291
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-prefix-suffix\">\n Cost per item, in pounds\n </label>\n\n<div class=\"govuk-input__wrapper\"><div class=\"govuk-input__prefix\" aria-hidden=\"true\">£</div>\n <input class=\"govuk-input\" id=\"input-with-prefix-suffix\" name=\"cost\" type=\"text\"><div class=\"govuk-input__suffix\" aria-hidden=\"true\">per item</div>\n </div>\n\n</div>"
|
292
292
|
},
|
293
293
|
{
|
294
294
|
"name": "with prefix and long suffix",
|
@@ -305,8 +305,8 @@
|
|
305
305
|
"text": "per household member"
|
306
306
|
}
|
307
307
|
},
|
308
|
-
"
|
309
|
-
"
|
308
|
+
"hidden": false,
|
309
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-prefix-suffix\">\n Cost per item, in pounds, per household member\n </label>\n\n<div class=\"govuk-input__wrapper\"><div class=\"govuk-input__prefix\" aria-hidden=\"true\">£</div>\n <input class=\"govuk-input\" id=\"input-with-prefix-suffix\" name=\"cost\" type=\"text\"><div class=\"govuk-input__suffix\" aria-hidden=\"true\">per household member</div>\n </div>\n\n</div>"
|
310
310
|
},
|
311
311
|
{
|
312
312
|
"name": "with prefix and suffix and error",
|
@@ -326,8 +326,8 @@
|
|
326
326
|
"text": "Error message goes here"
|
327
327
|
}
|
328
328
|
},
|
329
|
-
"
|
330
|
-
"
|
329
|
+
"hidden": false,
|
330
|
+
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"input-with-prefix-suffix\">\n Cost per item, in pounds\n </label>\n\n\n \n \n <p id=\"input-with-prefix-suffix-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message goes here\n </p>\n<div class=\"govuk-input__wrapper\"><div class=\"govuk-input__prefix\" aria-hidden=\"true\">£</div>\n <input class=\"govuk-input govuk-input--error\" id=\"input-with-prefix-suffix\" name=\"cost\" type=\"text\" aria-describedby=\"input-with-prefix-suffix-error\"><div class=\"govuk-input__suffix\" aria-hidden=\"true\">per item</div>\n </div>\n\n</div>"
|
331
331
|
},
|
332
332
|
{
|
333
333
|
"name": "with prefix and suffix and width modifier",
|
@@ -345,8 +345,8 @@
|
|
345
345
|
"text": "per item"
|
346
346
|
}
|
347
347
|
},
|
348
|
-
"
|
349
|
-
"
|
348
|
+
"hidden": false,
|
349
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-prefix-suffix\">\n Cost per item, in pounds\n </label>\n\n<div class=\"govuk-input__wrapper\"><div class=\"govuk-input__prefix\" aria-hidden=\"true\">£</div>\n <input class=\"govuk-input govuk-input--width-5\" id=\"input-with-prefix-suffix\" name=\"cost\" type=\"text\"><div class=\"govuk-input__suffix\" aria-hidden=\"true\">per item</div>\n </div>\n\n</div>"
|
350
350
|
},
|
351
351
|
{
|
352
352
|
"name": "classes",
|
@@ -358,8 +358,8 @@
|
|
358
358
|
},
|
359
359
|
"classes": "app-input--custom-modifier"
|
360
360
|
},
|
361
|
-
"
|
362
|
-
"
|
361
|
+
"hidden": true,
|
362
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-classes\">\n With classes\n </label>\n\n<input class=\"govuk-input app-input--custom-modifier\" id=\"with-classes\" name=\"with-classes\" type=\"text\">\n\n</div>"
|
363
363
|
},
|
364
364
|
{
|
365
365
|
"name": "custom type",
|
@@ -371,8 +371,8 @@
|
|
371
371
|
},
|
372
372
|
"type": "number"
|
373
373
|
},
|
374
|
-
"
|
375
|
-
"
|
374
|
+
"hidden": true,
|
375
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-custom-type\">\n With custom type\n </label>\n\n<input class=\"govuk-input\" id=\"with-custom-type\" name=\"with-custom-type\" type=\"number\">\n\n</div>"
|
376
376
|
},
|
377
377
|
{
|
378
378
|
"name": "value",
|
@@ -384,8 +384,8 @@
|
|
384
384
|
},
|
385
385
|
"value": "QQ 12 34 56 C"
|
386
386
|
},
|
387
|
-
"
|
388
|
-
"
|
387
|
+
"hidden": true,
|
388
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-value\">\n With value\n </label>\n\n<input class=\"govuk-input\" id=\"with-value\" name=\"with-value\" type=\"text\" value=\"QQ 12 34 56 C\">\n\n</div>"
|
389
389
|
},
|
390
390
|
{
|
391
391
|
"name": "with describedBy",
|
@@ -397,8 +397,8 @@
|
|
397
397
|
},
|
398
398
|
"describedBy": "some-id"
|
399
399
|
},
|
400
|
-
"
|
401
|
-
"
|
400
|
+
"hidden": true,
|
401
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-describedby\">\n With describedBy\n </label>\n\n<input class=\"govuk-input\" id=\"with-describedby\" name=\"with-describedby\" type=\"text\" aria-describedby=\"some-id\">\n\n</div>"
|
402
402
|
},
|
403
403
|
{
|
404
404
|
"name": "attributes",
|
@@ -412,8 +412,8 @@
|
|
412
412
|
"data-attribute": "my data value"
|
413
413
|
}
|
414
414
|
},
|
415
|
-
"
|
416
|
-
"
|
415
|
+
"hidden": true,
|
416
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-attributes\">\n With attributes\n </label>\n\n<input class=\"govuk-input\" id=\"with-attributes\" name=\"with-attributes\" type=\"text\" data-attribute=\"my data value\">\n\n</div>"
|
417
417
|
},
|
418
418
|
{
|
419
419
|
"name": "hint with describedBy",
|
@@ -428,8 +428,8 @@
|
|
428
428
|
"text": "It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’."
|
429
429
|
}
|
430
430
|
},
|
431
|
-
"
|
432
|
-
"
|
431
|
+
"hidden": true,
|
432
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-hint-describedby\">\n With hint describedBy\n </label>\n\n \n \n <div id=\"with-hint-describedby-hint\" class=\"govuk-hint\">\n It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’.\n </div>\n\n<input class=\"govuk-input\" id=\"with-hint-describedby\" name=\"with-hint-describedby\" type=\"text\" aria-describedby=\"some-id with-hint-describedby-hint\">\n\n</div>"
|
433
433
|
},
|
434
434
|
{
|
435
435
|
"name": "error with describedBy",
|
@@ -444,8 +444,8 @@
|
|
444
444
|
"text": "Error message"
|
445
445
|
}
|
446
446
|
},
|
447
|
-
"
|
448
|
-
"
|
447
|
+
"hidden": true,
|
448
|
+
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"with-error-describedby\">\n With error describedBy\n </label>\n\n\n \n \n <p id=\"with-error-describedby-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message\n </p>\n<input class=\"govuk-input govuk-input--error\" id=\"with-error-describedby\" name=\"with-error-describedby\" type=\"text\" aria-describedby=\"some-id with-error-describedby-error\">\n\n</div>"
|
449
449
|
},
|
450
450
|
{
|
451
451
|
"name": "with error and hint",
|
@@ -462,8 +462,8 @@
|
|
462
462
|
"text": "Hint"
|
463
463
|
}
|
464
464
|
},
|
465
|
-
"
|
466
|
-
"
|
465
|
+
"hidden": true,
|
466
|
+
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"with-error-hint\">\n With error and hint\n </label>\n\n \n \n <div id=\"with-error-hint-hint\" class=\"govuk-hint\">\n Hint\n </div>\n\n\n \n \n <p id=\"with-error-hint-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message\n </p>\n<input class=\"govuk-input govuk-input--error\" id=\"with-error-hint\" name=\"with-error-hint\" type=\"text\" aria-describedby=\"with-error-hint-hint with-error-hint-error\">\n\n</div>"
|
467
467
|
},
|
468
468
|
{
|
469
469
|
"name": "with error, hint and describedBy",
|
@@ -481,8 +481,8 @@
|
|
481
481
|
},
|
482
482
|
"describedBy": "some-id"
|
483
483
|
},
|
484
|
-
"
|
485
|
-
"
|
484
|
+
"hidden": true,
|
485
|
+
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"with-error-hint-describedby\">\n With error, hint and describedBy\n </label>\n\n \n \n <div id=\"with-error-hint-describedby-hint\" class=\"govuk-hint\">\n Hint\n </div>\n\n\n \n \n <p id=\"with-error-hint-describedby-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message\n </p>\n<input class=\"govuk-input govuk-input--error\" id=\"with-error-hint-describedby\" name=\"with-error-hint-describedby\" type=\"text\" aria-describedby=\"some-id with-error-hint-describedby-hint with-error-hint-describedby-error\">\n\n</div>"
|
486
486
|
},
|
487
487
|
{
|
488
488
|
"name": "inputmode",
|
@@ -494,8 +494,8 @@
|
|
494
494
|
},
|
495
495
|
"inputmode": "decimal"
|
496
496
|
},
|
497
|
-
"
|
498
|
-
"
|
497
|
+
"hidden": true,
|
498
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-inputmode\">\n With inputmode\n </label>\n\n<input class=\"govuk-input\" id=\"with-inputmode\" name=\"with-inputmode\" type=\"text\" inputmode=\"decimal\">\n\n</div>"
|
499
499
|
},
|
500
500
|
{
|
501
501
|
"name": "with prefix with html as text",
|
@@ -509,8 +509,8 @@
|
|
509
509
|
"text": "<span>£</span>"
|
510
510
|
}
|
511
511
|
},
|
512
|
-
"
|
513
|
-
"
|
512
|
+
"hidden": true,
|
513
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-prefix\">\n Amount, in pounds\n </label>\n\n<div class=\"govuk-input__wrapper\"><div class=\"govuk-input__prefix\" aria-hidden=\"true\"><span>£</span></div>\n <input class=\"govuk-input\" id=\"input-with-prefix\" name=\"amount\" type=\"text\"></div>\n\n</div>"
|
514
514
|
},
|
515
515
|
{
|
516
516
|
"name": "with prefix with html",
|
@@ -524,8 +524,8 @@
|
|
524
524
|
"html": "<span>£</span>"
|
525
525
|
}
|
526
526
|
},
|
527
|
-
"
|
528
|
-
"
|
527
|
+
"hidden": true,
|
528
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-prefix\">\n Amount, in pounds\n </label>\n\n<div class=\"govuk-input__wrapper\"><div class=\"govuk-input__prefix\" aria-hidden=\"true\"><span>£</span></div>\n <input class=\"govuk-input\" id=\"input-with-prefix\" name=\"amount\" type=\"text\"></div>\n\n</div>"
|
529
529
|
},
|
530
530
|
{
|
531
531
|
"name": "with prefix with classes",
|
@@ -540,8 +540,8 @@
|
|
540
540
|
"classes": "app-input__prefix--custom-modifier"
|
541
541
|
}
|
542
542
|
},
|
543
|
-
"
|
544
|
-
"
|
543
|
+
"hidden": true,
|
544
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-prefix-element\">\n Amount, in pounds\n </label>\n\n<div class=\"govuk-input__wrapper\"><div class=\"govuk-input__prefix app-input__prefix--custom-modifier\" aria-hidden=\"true\">£</div>\n <input class=\"govuk-input\" id=\"input-with-prefix-element\" name=\"amount\" type=\"text\"></div>\n\n</div>"
|
545
545
|
},
|
546
546
|
{
|
547
547
|
"name": "with prefix with attributes",
|
@@ -558,8 +558,8 @@
|
|
558
558
|
}
|
559
559
|
}
|
560
560
|
},
|
561
|
-
"
|
562
|
-
"
|
561
|
+
"hidden": true,
|
562
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-prefix-element\">\n Amount, in pounds\n </label>\n\n<div class=\"govuk-input__wrapper\"><div class=\"govuk-input__prefix\" aria-hidden=\"true\" data-attribute=\"value\">£</div>\n <input class=\"govuk-input\" id=\"input-with-prefix-element\" name=\"amount\" type=\"text\"></div>\n\n</div>"
|
563
563
|
},
|
564
564
|
{
|
565
565
|
"name": "with suffix with html as text",
|
@@ -573,8 +573,8 @@
|
|
573
573
|
"text": "<span>kg</span>"
|
574
574
|
}
|
575
575
|
},
|
576
|
-
"
|
577
|
-
"
|
576
|
+
"hidden": true,
|
577
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-suffix\">\n Weight, in kilograms\n </label>\n\n<div class=\"govuk-input__wrapper\"><input class=\"govuk-input\" id=\"input-with-suffix\" name=\"weight\" type=\"text\"><div class=\"govuk-input__suffix\" aria-hidden=\"true\"><span>kg</span></div>\n </div>\n\n</div>"
|
578
578
|
},
|
579
579
|
{
|
580
580
|
"name": "with suffix with html",
|
@@ -588,8 +588,8 @@
|
|
588
588
|
"html": "<span>kg</span>"
|
589
589
|
}
|
590
590
|
},
|
591
|
-
"
|
592
|
-
"
|
591
|
+
"hidden": true,
|
592
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-suffix\">\n Weight, in kilograms\n </label>\n\n<div class=\"govuk-input__wrapper\"><input class=\"govuk-input\" id=\"input-with-suffix\" name=\"weight\" type=\"text\"><div class=\"govuk-input__suffix\" aria-hidden=\"true\"><span>kg</span></div>\n </div>\n\n</div>"
|
593
593
|
},
|
594
594
|
{
|
595
595
|
"name": "with suffix with classes",
|
@@ -604,8 +604,8 @@
|
|
604
604
|
"classes": "app-input__suffix--custom-modifier"
|
605
605
|
}
|
606
606
|
},
|
607
|
-
"
|
608
|
-
"
|
607
|
+
"hidden": true,
|
608
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-suffix\">\n Weight, in kilograms\n </label>\n\n<div class=\"govuk-input__wrapper\"><input class=\"govuk-input\" id=\"input-with-suffix\" name=\"weight\" type=\"text\"><div class=\"govuk-input__suffix app-input__suffix--custom-modifier\" aria-hidden=\"true\"><span>kg</span></div>\n </div>\n\n</div>"
|
609
609
|
},
|
610
610
|
{
|
611
611
|
"name": "with suffix with attributes",
|
@@ -622,8 +622,8 @@
|
|
622
622
|
}
|
623
623
|
}
|
624
624
|
},
|
625
|
-
"
|
626
|
-
"
|
625
|
+
"hidden": true,
|
626
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"input-with-suffix\">\n Weight, in kilograms\n </label>\n\n<div class=\"govuk-input__wrapper\"><input class=\"govuk-input\" id=\"input-with-suffix\" name=\"weight\" type=\"text\"><div class=\"govuk-input__suffix\" aria-hidden=\"true\" data-attribute=\"value\"><span>kg</span></div>\n </div>\n\n</div>"
|
627
627
|
}
|
628
628
|
]
|
629
629
|
}
|