govuk_publishing_components 21.13.4 → 21.13.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 113c90c657165b95aed0112c3c892190385c255cb028b664bf29735b4a605a75
|
4
|
+
data.tar.gz: c104896167741173f9f127096340e9c1753a0112e25e5da40798c48d96873112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9300d97c50a83521e395203eb8afbefbaab6eb49c306498f025c5e0359a549bd1116660200802c1f40d567f9e1004ba640f41c43dff9711601784c3385635a17
|
7
|
+
data.tar.gz: 15e2d799244da0bc626f67033f07fb4901fe0b38799f59aeaadbe0ea023824fd41883a1b1656d145b119593cd6be624fb825c0a12ff37a95a4996049fb0a97f1
|
@@ -1,5 +1,7 @@
|
|
1
1
|
name: Form checkboxes
|
2
2
|
description: Let users select one or more options with checkboxes.
|
3
|
+
body: |
|
4
|
+
If there is more than one checkbox they are rendered in a list. If there is only one, the markup is simplified to a single div and a heading attribute is not required.
|
3
5
|
govuk_frontend_components:
|
4
6
|
- checkboxes
|
5
7
|
accessibility_criteria: |
|
@@ -11,10 +11,10 @@ module GovukPublishingComponents
|
|
11
11
|
@name = options[:name]
|
12
12
|
@css_classes = %w(gem-c-checkboxes govuk-form-group)
|
13
13
|
@css_classes << "govuk-form-group--error" if options[:error]
|
14
|
+
@css_classes << "govuk-checkboxes--small" if options[:small]
|
14
15
|
@error = true if options[:error]
|
15
16
|
|
16
17
|
@list_classes = %w(govuk-checkboxes gem-c-checkboxes__list)
|
17
|
-
@list_classes << "govuk-checkboxes--small" if options[:small]
|
18
18
|
|
19
19
|
# check if any item is set as being conditional
|
20
20
|
@has_conditional = options[:items].any? { |item| item.is_a?(Hash) && item[:conditional] }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 21.13.
|
4
|
+
version: 21.13.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gds-api-adapters
|