govuk_publishing_components 9.5.1 → 9.5.2
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/components/step-by-step-nav.js +11 -6
- data/app/assets/javascripts/govuk_publishing_components/vendor/modernizr.js +3 -0
- data/app/assets/stylesheets/govuk_publishing_components/admin_styles_ie8.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +2 -0
- data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +7 -1
- data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +3 -5
- data/app/views/layouts/govuk_publishing_components/application.html.erb +6 -0
- data/config/initializers/assets.rb +2 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/README.md +1 -1
- data/node_modules/govuk-frontend/all.js +3 -1
- data/node_modules/govuk-frontend/components/back-link/README.md +23 -7
- data/node_modules/govuk-frontend/components/breadcrumbs/README.md +26 -26
- data/node_modules/govuk-frontend/components/button/README.md +22 -22
- data/node_modules/govuk-frontend/components/checkboxes/README.md +115 -27
- data/node_modules/govuk-frontend/components/checkboxes/_checkboxes.scss +7 -1
- data/node_modules/govuk-frontend/components/date-input/README.md +141 -61
- data/node_modules/govuk-frontend/components/date-input/_date-input.scss +0 -5
- data/node_modules/govuk-frontend/components/date-input/template.njk +40 -17
- data/node_modules/govuk-frontend/components/details/README.md +10 -10
- data/node_modules/govuk-frontend/components/error-message/README.md +4 -4
- data/node_modules/govuk-frontend/components/error-summary/README.md +5 -5
- data/node_modules/govuk-frontend/components/fieldset/README.md +7 -7
- data/node_modules/govuk-frontend/components/file-upload/README.md +16 -16
- data/node_modules/govuk-frontend/components/footer/README.md +5 -5
- data/node_modules/govuk-frontend/components/footer/template.njk +1 -1
- data/node_modules/govuk-frontend/components/header/README.md +26 -18
- data/node_modules/govuk-frontend/components/header/_header.scss +3 -2
- data/node_modules/govuk-frontend/components/header/template.njk +5 -3
- data/node_modules/govuk-frontend/components/hint/README.md +14 -10
- data/node_modules/govuk-frontend/components/input/README.md +166 -30
- data/node_modules/govuk-frontend/components/input/_input.scss +20 -3
- data/node_modules/govuk-frontend/components/inset-text/README.md +6 -6
- data/node_modules/govuk-frontend/components/label/README.md +9 -9
- data/node_modules/govuk-frontend/components/panel/README.md +43 -4
- data/node_modules/govuk-frontend/components/panel/template.njk +4 -2
- data/node_modules/govuk-frontend/components/phase-banner/README.md +4 -4
- data/node_modules/govuk-frontend/components/phase-banner/_phase-banner.scss +3 -3
- data/node_modules/govuk-frontend/components/radios/README.md +100 -29
- data/node_modules/govuk-frontend/components/radios/_radios.scss +12 -3
- data/node_modules/govuk-frontend/components/select/README.md +12 -12
- data/node_modules/govuk-frontend/components/skip-link/README.md +4 -4
- data/node_modules/govuk-frontend/components/table/README.md +12 -12
- data/node_modules/govuk-frontend/components/table/_table.scss +2 -2
- data/node_modules/govuk-frontend/components/tabs/README.md +4 -4
- data/node_modules/govuk-frontend/components/tabs/_tabs.scss +1 -0
- data/node_modules/govuk-frontend/components/tag/README.md +7 -7
- data/node_modules/govuk-frontend/components/tag/_tag.scss +6 -0
- data/node_modules/govuk-frontend/components/textarea/README.md +16 -16
- data/node_modules/govuk-frontend/components/warning-text/README.md +4 -4
- data/node_modules/govuk-frontend/components/warning-text/_warning-text.scss +14 -4
- data/node_modules/govuk-frontend/core/_template.scss +7 -3
- data/node_modules/govuk-frontend/helpers/_typography.scss +44 -10
- data/node_modules/govuk-frontend/objects/_main-wrapper.scss +4 -0
- data/node_modules/govuk-frontend/package.json +18 -12
- data/node_modules/govuk-frontend/settings/_typography-responsive.scss +35 -0
- data/node_modules/govuk-frontend/tools/_all.scss +1 -0
- data/node_modules/govuk-frontend/tools/_px-to-rem.scss +20 -0
- data/node_modules/govuk-frontend/utilities/_visually-hidden.scss +6 -0
- metadata +5 -28
- data/node_modules/govuk-frontend/components/back-link/back-link.njk +0 -3
- data/node_modules/govuk-frontend/components/breadcrumbs/breadcrumbs.njk +0 -14
- data/node_modules/govuk-frontend/components/button/button.njk +0 -3
- data/node_modules/govuk-frontend/components/checkboxes/checkboxes.njk +0 -27
- data/node_modules/govuk-frontend/components/date-input/date-input.njk +0 -23
- data/node_modules/govuk-frontend/components/details/details.njk +0 -7
- data/node_modules/govuk-frontend/components/error-message/error-message.njk +0 -7
- data/node_modules/govuk-frontend/components/error-summary/error-summary.njk +0 -17
- data/node_modules/govuk-frontend/components/fieldset/fieldset.njk +0 -13
- data/node_modules/govuk-frontend/components/file-upload/file-upload.njk +0 -9
- data/node_modules/govuk-frontend/components/footer/footer.njk +0 -3
- data/node_modules/govuk-frontend/components/header/header.njk +0 -3
- data/node_modules/govuk-frontend/components/hint/hint.njk +0 -7
- data/node_modules/govuk-frontend/components/input/input.njk +0 -9
- data/node_modules/govuk-frontend/components/inset-text/inset-text.njk +0 -7
- data/node_modules/govuk-frontend/components/label/label.njk +0 -6
- data/node_modules/govuk-frontend/components/panel/panel.njk +0 -7
- data/node_modules/govuk-frontend/components/phase-banner/phase-banner.njk +0 -7
- data/node_modules/govuk-frontend/components/radios/radios.njk +0 -27
- data/node_modules/govuk-frontend/components/select/select.njk +0 -24
- data/node_modules/govuk-frontend/components/skip-link/skip-link.njk +0 -3
- data/node_modules/govuk-frontend/components/table/table.njk +0 -45
- data/node_modules/govuk-frontend/components/tabs/tabs.njk +0 -3
- data/node_modules/govuk-frontend/components/tag/tag.njk +0 -7
- data/node_modules/govuk-frontend/components/textarea/textarea.njk +0 -11
- data/node_modules/govuk-frontend/components/warning-text/warning-text.njk +0 -9
@@ -6,9 +6,9 @@ Use bordered inset text to draw attention to important content on the page.
|
|
6
6
|
|
7
7
|
## Quick start examples
|
8
8
|
|
9
|
-
###
|
9
|
+
### Inset text
|
10
10
|
|
11
|
-
[Preview the
|
11
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/inset-text/preview)
|
12
12
|
|
13
13
|
#### Markup
|
14
14
|
|
@@ -18,15 +18,15 @@ Use bordered inset text to draw attention to important content on the page.
|
|
18
18
|
|
19
19
|
#### Macro
|
20
20
|
|
21
|
-
{% from
|
21
|
+
{% from "inset-text/macro.njk" import govukInsetText %}
|
22
22
|
|
23
23
|
{{ govukInsetText({
|
24
24
|
"text": "It can take up to 8 weeks to register a lasting power of attorney if there are no mistakes in the application."
|
25
25
|
}) }}
|
26
26
|
|
27
|
-
### Inset
|
27
|
+
### Inset text with html
|
28
28
|
|
29
|
-
[Preview the
|
29
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/inset-text/with-html/preview)
|
30
30
|
|
31
31
|
#### Markup
|
32
32
|
|
@@ -36,7 +36,7 @@ Use bordered inset text to draw attention to important content on the page.
|
|
36
36
|
|
37
37
|
#### Macro
|
38
38
|
|
39
|
-
{% from
|
39
|
+
{% from "inset-text/macro.njk" import govukInsetText %}
|
40
40
|
|
41
41
|
{{ govukInsetText({
|
42
42
|
"html": "It can take up to 8 weeks to register a <a class=\"govuk-link\" href=\"#\">lasting power of attorney</a> if there are no mistakes in the application."
|
@@ -6,9 +6,9 @@ Use labels for all form fields.
|
|
6
6
|
|
7
7
|
## Quick start examples
|
8
8
|
|
9
|
-
###
|
9
|
+
### Label
|
10
10
|
|
11
|
-
[Preview the
|
11
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/label/preview)
|
12
12
|
|
13
13
|
#### Markup
|
14
14
|
|
@@ -18,15 +18,15 @@ Use labels for all form fields.
|
|
18
18
|
|
19
19
|
#### Macro
|
20
20
|
|
21
|
-
{% from
|
21
|
+
{% from "label/macro.njk" import govukLabel %}
|
22
22
|
|
23
23
|
{{ govukLabel({
|
24
24
|
"text": "National Insurance number"
|
25
25
|
}) }}
|
26
26
|
|
27
|
-
### Label
|
27
|
+
### Label with bold text
|
28
28
|
|
29
|
-
[Preview the
|
29
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/label/with-bold-text/preview)
|
30
30
|
|
31
31
|
#### Markup
|
32
32
|
|
@@ -36,16 +36,16 @@ Use labels for all form fields.
|
|
36
36
|
|
37
37
|
#### Macro
|
38
38
|
|
39
|
-
{% from
|
39
|
+
{% from "label/macro.njk" import govukLabel %}
|
40
40
|
|
41
41
|
{{ govukLabel({
|
42
42
|
"classes": "govuk-label--s",
|
43
43
|
"text": "National Insurance number"
|
44
44
|
}) }}
|
45
45
|
|
46
|
-
### Label
|
46
|
+
### Label as page heading
|
47
47
|
|
48
|
-
[Preview the
|
48
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/label/as-page-heading/preview)
|
49
49
|
|
50
50
|
#### Markup
|
51
51
|
|
@@ -58,7 +58,7 @@ Use labels for all form fields.
|
|
58
58
|
|
59
59
|
#### Macro
|
60
60
|
|
61
|
-
{% from
|
61
|
+
{% from "label/macro.njk" import govukLabel %}
|
62
62
|
|
63
63
|
{{ govukLabel({
|
64
64
|
"text": "National Insurance number",
|
@@ -6,13 +6,13 @@ The confirmation panel has a turquoise background and white text. Used for trans
|
|
6
6
|
|
7
7
|
## Guidance
|
8
8
|
|
9
|
-
Find out when to use the
|
9
|
+
Find out when to use the panel component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/panel).
|
10
10
|
|
11
11
|
## Quick start examples
|
12
12
|
|
13
|
-
###
|
13
|
+
### Panel
|
14
14
|
|
15
|
-
[Preview the
|
15
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/panel/preview)
|
16
16
|
|
17
17
|
#### Markup
|
18
18
|
|
@@ -29,10 +29,37 @@ Find out when to use the Panel component in your service in the [GOV.UK Design S
|
|
29
29
|
|
30
30
|
#### Macro
|
31
31
|
|
32
|
-
{% from
|
32
|
+
{% from "panel/macro.njk" import govukPanel %}
|
33
|
+
|
34
|
+
{{ govukPanel({
|
35
|
+
"titleHtml": "Application complete",
|
36
|
+
"text": "Your reference number: HDJ2123F"
|
37
|
+
}) }}
|
38
|
+
|
39
|
+
### Panel custom heading level
|
40
|
+
|
41
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/panel/custom-heading-level/preview)
|
42
|
+
|
43
|
+
#### Markup
|
44
|
+
|
45
|
+
<div class="govuk-panel govuk-panel--confirmation">
|
46
|
+
<h1 class="govuk-panel__title">
|
47
|
+
Application complete
|
48
|
+
</h1>
|
49
|
+
|
50
|
+
<div class="govuk-panel__body">
|
51
|
+
Your reference number: HDJ2123F
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
#### Macro
|
57
|
+
|
58
|
+
{% from "panel/macro.njk" import govukPanel %}
|
33
59
|
|
34
60
|
{{ govukPanel({
|
35
61
|
"titleText": "Application complete",
|
62
|
+
"headingLevel": 1,
|
36
63
|
"text": "Your reference number: HDJ2123F"
|
37
64
|
}) }}
|
38
65
|
|
@@ -92,6 +119,18 @@ If you are using Nunjucks,then macros take the following arguments
|
|
92
119
|
|
93
120
|
<tr class="govuk-table__row">
|
94
121
|
|
122
|
+
<th class="govuk-table__header" scope="row">headingLevel</th>
|
123
|
+
|
124
|
+
<td class="govuk-table__cell ">number</td>
|
125
|
+
|
126
|
+
<td class="govuk-table__cell ">no</td>
|
127
|
+
|
128
|
+
<td class="govuk-table__cell ">Optional heading level, from 1 to 6\. Default is 2.</td>
|
129
|
+
|
130
|
+
</tr>
|
131
|
+
|
132
|
+
<tr class="govuk-table__row">
|
133
|
+
|
95
134
|
<th class="govuk-table__header" scope="row">text (or) html</th>
|
96
135
|
|
97
136
|
<td class="govuk-table__cell ">string</td>
|
@@ -1,9 +1,11 @@
|
|
1
|
+
{#- TODO: Change default title heading level to 1 - https://github.com/alphagov/govuk-frontend/issues/864 -#}
|
2
|
+
{% set headingLevel = params.headingLevel if params.headingLevel else 2 %}
|
1
3
|
<div class="govuk-panel govuk-panel--confirmation
|
2
4
|
{%- if params.classes %} {{ params.classes }}{% endif %}"
|
3
5
|
{%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
4
|
-
<
|
6
|
+
<h{{ headingLevel }} class="govuk-panel__title">
|
5
7
|
{{ params.titleHtml | safe if params.titleHtml else params.titleText }}
|
6
|
-
</
|
8
|
+
</h{{ headingLevel }}>
|
7
9
|
{% if params.html or params.text %}
|
8
10
|
<div class="govuk-panel__body">
|
9
11
|
{{ params.html | safe if params.html else params.text }}
|
@@ -6,13 +6,13 @@ A banner that indicates content is in alpha or beta phase with a description.
|
|
6
6
|
|
7
7
|
## Guidance
|
8
8
|
|
9
|
-
Find out when to use the
|
9
|
+
Find out when to use the phase banner component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/phase-banner).
|
10
10
|
|
11
11
|
## Quick start examples
|
12
12
|
|
13
|
-
###
|
13
|
+
### Phase banner
|
14
14
|
|
15
|
-
[Preview the
|
15
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/phase-banner/preview)
|
16
16
|
|
17
17
|
#### Markup
|
18
18
|
|
@@ -28,7 +28,7 @@ Find out when to use the Phase banner component in your service in the [GOV.UK D
|
|
28
28
|
|
29
29
|
#### Macro
|
30
30
|
|
31
|
-
{% from
|
31
|
+
{% from "phase-banner/macro.njk" import govukPhaseBanner %}
|
32
32
|
|
33
33
|
{{ govukPhaseBanner({
|
34
34
|
"tag": {
|
@@ -6,9 +6,6 @@
|
|
6
6
|
|
7
7
|
@include govuk-exports("govuk/component/phase-banner") {
|
8
8
|
.govuk-phase-banner {
|
9
|
-
@include govuk-font($size: 16);
|
10
|
-
@include govuk-text-colour;
|
11
|
-
|
12
9
|
padding-top: govuk-spacing(2);
|
13
10
|
padding-bottom: govuk-spacing(2);
|
14
11
|
|
@@ -16,6 +13,9 @@
|
|
16
13
|
}
|
17
14
|
|
18
15
|
.govuk-phase-banner__content {
|
16
|
+
@include govuk-font($size: 16);
|
17
|
+
@include govuk-text-colour;
|
18
|
+
|
19
19
|
display: table;
|
20
20
|
margin: 0;
|
21
21
|
}
|
@@ -6,13 +6,13 @@ Let users select a single option from a list.
|
|
6
6
|
|
7
7
|
## Guidance
|
8
8
|
|
9
|
-
Find out when to use the
|
9
|
+
Find out when to use the radios component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/radios).
|
10
10
|
|
11
11
|
## Quick start examples
|
12
12
|
|
13
|
-
###
|
13
|
+
### Radios
|
14
14
|
|
15
|
-
[Preview the
|
15
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/radios/preview)
|
16
16
|
|
17
17
|
#### Markup
|
18
18
|
|
@@ -51,7 +51,7 @@ Find out when to use the Radios component in your service in the [GOV.UK Design
|
|
51
51
|
|
52
52
|
#### Macro
|
53
53
|
|
54
|
-
{% from
|
54
|
+
{% from "radios/macro.njk" import govukRadios %}
|
55
55
|
|
56
56
|
{{ govukRadios({
|
57
57
|
"idPrefix": "example",
|
@@ -77,36 +77,36 @@ Find out when to use the Radios component in your service in the [GOV.UK Design
|
|
77
77
|
]
|
78
78
|
}) }}
|
79
79
|
|
80
|
-
### Radios
|
80
|
+
### Radios inline
|
81
81
|
|
82
|
-
[Preview the
|
82
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/radios/inline/preview)
|
83
83
|
|
84
84
|
#### Markup
|
85
85
|
|
86
86
|
<div class="govuk-form-group">
|
87
87
|
|
88
|
-
<fieldset class="govuk-fieldset" aria-describedby="example
|
88
|
+
<fieldset class="govuk-fieldset" aria-describedby="example'-hint">
|
89
89
|
|
90
90
|
<legend class="govuk-fieldset__legend">
|
91
91
|
Have you changed your name?
|
92
92
|
</legend>
|
93
93
|
|
94
|
-
<span id="example
|
94
|
+
<span id="example'-hint" class="govuk-hint">
|
95
95
|
This includes changing your last name or spelling your name differently.
|
96
96
|
</span>
|
97
97
|
|
98
98
|
<div class="govuk-radios govuk-radios--inline">
|
99
99
|
|
100
100
|
<div class="govuk-radios__item">
|
101
|
-
<input class="govuk-radios__input" id="example
|
102
|
-
<label class="govuk-label govuk-radios__label" for="example
|
101
|
+
<input class="govuk-radios__input" id="example'-1" name="example" type="radio" value="yes">
|
102
|
+
<label class="govuk-label govuk-radios__label" for="example'-1">
|
103
103
|
Yes
|
104
104
|
</label>
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div class="govuk-radios__item">
|
108
|
-
<input class="govuk-radios__input" id="example
|
109
|
-
<label class="govuk-label govuk-radios__label" for="example
|
108
|
+
<input class="govuk-radios__input" id="example'-2" name="example" type="radio" value="no" checked>
|
109
|
+
<label class="govuk-label govuk-radios__label" for="example'-2">
|
110
110
|
No
|
111
111
|
</label>
|
112
112
|
</div>
|
@@ -118,10 +118,10 @@ Find out when to use the Radios component in your service in the [GOV.UK Design
|
|
118
118
|
|
119
119
|
#### Macro
|
120
120
|
|
121
|
-
{% from
|
121
|
+
{% from "radios/macro.njk" import govukRadios %}
|
122
122
|
|
123
123
|
{{ govukRadios({
|
124
|
-
"idPrefix": "example",
|
124
|
+
"idPrefix": "example'",
|
125
125
|
"classes": "govuk-radios--inline",
|
126
126
|
"name": "example",
|
127
127
|
"fieldset": {
|
@@ -145,9 +145,9 @@ Find out when to use the Radios component in your service in the [GOV.UK Design
|
|
145
145
|
]
|
146
146
|
}) }}
|
147
147
|
|
148
|
-
### Radios
|
148
|
+
### Radios with disabled
|
149
149
|
|
150
|
-
[Preview the
|
150
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/radios/with-disabled/preview)
|
151
151
|
|
152
152
|
#### Markup
|
153
153
|
|
@@ -186,7 +186,7 @@ Find out when to use the Radios component in your service in the [GOV.UK Design
|
|
186
186
|
|
187
187
|
#### Macro
|
188
188
|
|
189
|
-
{% from
|
189
|
+
{% from "radios/macro.njk" import govukRadios %}
|
190
190
|
|
191
191
|
{{ govukRadios({
|
192
192
|
"idPrefix": "example-disabled",
|
@@ -213,9 +213,9 @@ Find out when to use the Radios component in your service in the [GOV.UK Design
|
|
213
213
|
]
|
214
214
|
}) }}
|
215
215
|
|
216
|
-
### Radios
|
216
|
+
### Radios with legend as page heading
|
217
217
|
|
218
|
-
[Preview the
|
218
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/radios/with-legend-as-page-heading/preview)
|
219
219
|
|
220
220
|
#### Markup
|
221
221
|
|
@@ -223,8 +223,78 @@ Find out when to use the Radios component in your service in the [GOV.UK Design
|
|
223
223
|
|
224
224
|
<fieldset class="govuk-fieldset" aria-describedby="housing-act-hint">
|
225
225
|
|
226
|
-
<legend class="govuk-fieldset__legend">
|
227
|
-
<h1 class="govuk-
|
226
|
+
<legend class="govuk-fieldset__legend govuk-fieldset__legend--l">
|
227
|
+
<h1 class="govuk-fieldset__heading">
|
228
|
+
Which part of the Housing Act was your licence issued under?
|
229
|
+
</h1>
|
230
|
+
</legend>
|
231
|
+
|
232
|
+
<span id="housing-act-hint" class="govuk-hint">
|
233
|
+
Select one of the options below.
|
234
|
+
</span>
|
235
|
+
|
236
|
+
<div class="govuk-radios">
|
237
|
+
|
238
|
+
<div class="govuk-radios__item">
|
239
|
+
<input class="govuk-radios__input" id="housing-act-1" name="housing-act" type="radio" value="part-2">
|
240
|
+
<label class="govuk-label govuk-radios__label" for="housing-act-1">
|
241
|
+
<span class="govuk-heading-s govuk-!-margin-bottom-1">Part 2 of the Housing Act 2004</span> For properties that are 3 or more stories high and occupied by 5 or more people
|
242
|
+
</label>
|
243
|
+
</div>
|
244
|
+
|
245
|
+
<div class="govuk-radios__item">
|
246
|
+
<input class="govuk-radios__input" id="housing-act-2" name="housing-act" type="radio" value="part-3">
|
247
|
+
<label class="govuk-label govuk-radios__label" for="housing-act-2">
|
248
|
+
<span class="govuk-heading-s govuk-!-margin-bottom-1">Part 3 of the Housing Act 2004</span> For properties that are within a geographical area defined by a local council
|
249
|
+
</label>
|
250
|
+
</div>
|
251
|
+
|
252
|
+
</div>
|
253
|
+
</fieldset>
|
254
|
+
|
255
|
+
</div>
|
256
|
+
|
257
|
+
#### Macro
|
258
|
+
|
259
|
+
{% from "radios/macro.njk" import govukRadios %}
|
260
|
+
|
261
|
+
{{ govukRadios({
|
262
|
+
"idPrefix": "housing-act",
|
263
|
+
"name": "housing-act",
|
264
|
+
"fieldset": {
|
265
|
+
"legend": {
|
266
|
+
"text": "Which part of the Housing Act was your licence issued under?",
|
267
|
+
"classes": "govuk-fieldset__legend--l",
|
268
|
+
"isPageHeading": true
|
269
|
+
}
|
270
|
+
},
|
271
|
+
"hint": {
|
272
|
+
"text": "Select one of the options below."
|
273
|
+
},
|
274
|
+
"items": [
|
275
|
+
{
|
276
|
+
"value": "part-2",
|
277
|
+
"html": "<span class=\"govuk-heading-s govuk-!-margin-bottom-1\">Part 2 of the Housing Act 2004</span> For properties that are 3 or more stories high and occupied by 5 or more people"
|
278
|
+
},
|
279
|
+
{
|
280
|
+
"value": "part-3",
|
281
|
+
"html": "<span class=\"govuk-heading-s govuk-!-margin-bottom-1\">Part 3 of the Housing Act 2004</span> For properties that are within a geographical area defined by a local council"
|
282
|
+
}
|
283
|
+
]
|
284
|
+
}) }}
|
285
|
+
|
286
|
+
### Radios with a medium legend
|
287
|
+
|
288
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/radios/with-a-medium-legend/preview)
|
289
|
+
|
290
|
+
#### Markup
|
291
|
+
|
292
|
+
<div class="govuk-form-group">
|
293
|
+
|
294
|
+
<fieldset class="govuk-fieldset" aria-describedby="housing-act-hint">
|
295
|
+
|
296
|
+
<legend class="govuk-fieldset__legend govuk-fieldset__legend--m">
|
297
|
+
Which part of the Housing Act was your licence issued under?
|
228
298
|
</legend>
|
229
299
|
|
230
300
|
<span id="housing-act-hint" class="govuk-hint">
|
@@ -254,14 +324,15 @@ Find out when to use the Radios component in your service in the [GOV.UK Design
|
|
254
324
|
|
255
325
|
#### Macro
|
256
326
|
|
257
|
-
{% from
|
327
|
+
{% from "radios/macro.njk" import govukRadios %}
|
258
328
|
|
259
329
|
{{ govukRadios({
|
260
330
|
"idPrefix": "housing-act",
|
261
331
|
"name": "housing-act",
|
262
332
|
"fieldset": {
|
263
333
|
"legend": {
|
264
|
-
"
|
334
|
+
"text": "Which part of the Housing Act was your licence issued under?",
|
335
|
+
"classes": "govuk-fieldset__legend--m"
|
265
336
|
}
|
266
337
|
},
|
267
338
|
"hint": {
|
@@ -279,9 +350,9 @@ Find out when to use the Radios component in your service in the [GOV.UK Design
|
|
279
350
|
]
|
280
351
|
}) }}
|
281
352
|
|
282
|
-
### Radios
|
353
|
+
### Radios without fieldset
|
283
354
|
|
284
|
-
[Preview the
|
355
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/radios/without-fieldset/preview)
|
285
356
|
|
286
357
|
#### Markup
|
287
358
|
|
@@ -316,7 +387,7 @@ Find out when to use the Radios component in your service in the [GOV.UK Design
|
|
316
387
|
|
317
388
|
#### Macro
|
318
389
|
|
319
|
-
{% from
|
390
|
+
{% from "radios/macro.njk" import govukRadios %}
|
320
391
|
|
321
392
|
{{ govukRadios({
|
322
393
|
"name": "colours",
|
@@ -336,9 +407,9 @@ Find out when to use the Radios component in your service in the [GOV.UK Design
|
|
336
407
|
]
|
337
408
|
}) }}
|
338
409
|
|
339
|
-
### Radios
|
410
|
+
### Radios with all fieldset attributes
|
340
411
|
|
341
|
-
[Preview the
|
412
|
+
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/radios/with-all-fieldset-attributes/preview)
|
342
413
|
|
343
414
|
#### Markup
|
344
415
|
|
@@ -381,7 +452,7 @@ Find out when to use the Radios component in your service in the [GOV.UK Design
|
|
381
452
|
|
382
453
|
#### Macro
|
383
454
|
|
384
|
-
{% from
|
455
|
+
{% from "radios/macro.njk" import govukRadios %}
|
385
456
|
|
386
457
|
{{ govukRadios({
|
387
458
|
"idPrefix": "example",
|