govuk_publishing_components 21.13.4 → 21.13.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbdea4906ccd04d6b4ee91f0df47a1134a859a8f580982693c285eb756b64de8
4
- data.tar.gz: 8e07c0695143a322e19ebe569a3eeef0fdcc6c5f7c4d427b92c836393d1b9cac
3
+ metadata.gz: 113c90c657165b95aed0112c3c892190385c255cb028b664bf29735b4a605a75
4
+ data.tar.gz: c104896167741173f9f127096340e9c1753a0112e25e5da40798c48d96873112
5
5
  SHA512:
6
- metadata.gz: 75465c1fcf4e376cc4c451bb077cc0a29a2c713b88b64b25ac1f7b61ca3497406d15e8a262c187a77616bea562fce2c05137ea845229edb8c363c34c65339923
7
- data.tar.gz: e91a7d2c3e42f12d04fd71399babde1e221a8d66a096e109b797fc310b83aa0ad1c5495b025cf46a040a00769b1a54e7ff6b68b4eee185a5b7cff3913b432995
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] }
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '21.13.4'.freeze
2
+ VERSION = '21.13.5'.freeze
3
3
  end
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
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-06 00:00:00.000000000 Z
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