govuk_publishing_components 16.17.0 → 16.18.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.
- checksums.yaml +4 -4
- data/app/views/govuk_publishing_components/components/_radio.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/docs/radio.yml +11 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/accessible-autocomplete/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d090a080c10033952f1ac19354eb5c1b8a3a6290f4c2fca3a7733b31496e871b
|
|
4
|
+
data.tar.gz: 8bd7cf1abf0ab7c69a260cae338ac2c34afbc4bb0bb8bd043da057e4ec90ff46
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf11d37fb9ea41516d4330ce8d220aa7b8191ea53599f977ceebde9ffc381eadfd207d5caedcadcbda8a018bf0b667b5b87ba8ebd7170406d3c67a3afda33749
|
|
7
|
+
data.tar.gz: 6803e2390d56bfd216cf26645447d4eebbb7ba2005d462f1ee6964d364dc23bbc8040b1a0eb13b223f3e072587cc46193ce0d5ea2645bf744649bebee126fb16
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
label ||= nil
|
|
6
6
|
heading ||= nil
|
|
7
7
|
small ||= false
|
|
8
|
+
inline ||= false
|
|
8
9
|
is_page_heading ||= false
|
|
9
10
|
hint ||= nil
|
|
10
11
|
error_message ||= nil
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
|
|
20
21
|
radio_classes = %w(govuk-radios)
|
|
21
22
|
radio_classes << "govuk-radios--small" if small
|
|
23
|
+
radio_classes << "govuk-radios--inline" if inline
|
|
22
24
|
|
|
23
25
|
aria = "#{hint_id} #{"#{error_id}" if has_error}".strip if hint or has_error
|
|
24
26
|
|
|
@@ -250,3 +250,14 @@ examples:
|
|
|
250
250
|
- value: "govuk-verify"
|
|
251
251
|
text: "Use GOV.UK Verify"
|
|
252
252
|
url: "https://www.tax.service.gov.uk/check-your-state-pension/signin/verify?journey_hint=uk_idp_sign_in"
|
|
253
|
+
inline:
|
|
254
|
+
description: "When providing few options, radio buttons should be inline rather than stacked. We recommend this for two small options like yes and no, on and off"
|
|
255
|
+
data:
|
|
256
|
+
name: "inline-radios"
|
|
257
|
+
inline: true
|
|
258
|
+
items:
|
|
259
|
+
- value: "on"
|
|
260
|
+
text: "On"
|
|
261
|
+
- value: "off"
|
|
262
|
+
text: "Off"
|
|
263
|
+
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"/"
|
|
50
50
|
],
|
|
51
51
|
"_resolved": "git://github.com/alphagov/accessible-autocomplete.git#0c518b4fa79b9a95b544410858486ed9e6403c84",
|
|
52
|
-
"_shasum": "
|
|
52
|
+
"_shasum": "646ef91bb4b51cb7d08732054c406475491bca2e",
|
|
53
53
|
"_shrinkwrap": null,
|
|
54
54
|
"_spec": "accessible-autocomplete@git://github.com/alphagov/accessible-autocomplete.git#add-multiselect-support",
|
|
55
55
|
"_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ",
|