govuk_publishing_components 13.2.0 → 13.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6ae1813c5f24b844139e7a5d57697718fc515e14a20fc5e3f5337474d085c98
4
- data.tar.gz: d2212c52c0b6ee05d6edc95621faf347726fce80d84bc562ba24c163af92d91b
3
+ metadata.gz: ad57d157c8db11024f51b94c8748da31734480431e8ee77146729150759e381e
4
+ data.tar.gz: 9b9986abd051efb7755a4ce076c97a2a86a1a59b495e7117541bd931a288ae88
5
5
  SHA512:
6
- metadata.gz: 4cb079269b5f24931adb289c8eafb83f450ec4601d577dc6fc1a40aed673f6e713e60a62c322b861d52d5b1169581320a44082c13b6f692a480f881013549dd4
7
- data.tar.gz: a44bf1a137d8fe11d3dd1f0547b162ff998525ff1fdbf7eb9bd2f17365ec0dcf7364bae12917ec9f0b006c029c1a5b292aa3e772fb012f3b4dc2a59a06191d72
6
+ metadata.gz: d52e91705cc31ee3c1fc9c5bc7245c06ed94e62dfde2927314b8d08e409e59643529a08a32d9d76cd580d283d092bfdcccb6fc5b53b8a8bf6c80605f467a630e
7
+ data.tar.gz: 3ea49edf3cc68d857147a584a18a7a1152d56b8515843c6617a4265489bcf79599490c3a896d17461b6f2ac48446484e19626e8108257e4234c93c713509a385
@@ -43,9 +43,11 @@
43
43
  }
44
44
  }
45
45
 
46
- // this is complex but needed to override the govuk-frontend styles in
47
- // https://github.com/alphagov/govuk-frontend/blob/b8058640b9602ecb6e1f66f887553190cbae7b46/src/components/hint/_hint.scss#L16
48
- // our elements are wrapped in list items that already provide a margin-bottom
49
- .govuk-label:not(.govuk-label--m):not(.govuk-label--l):not(.govuk-label--xl) + .govuk-hint {
50
- margin-bottom: 0;
46
+ .gem-c-checkboxes {
47
+ // this is complex but needed to override the govuk-frontend styles in
48
+ // https://github.com/alphagov/govuk-frontend/blob/b8058640b9602ecb6e1f66f887553190cbae7b46/src/components/hint/_hint.scss#L16
49
+ // our elements are wrapped in list items that already provide a margin-bottom
50
+ .govuk-label:not(.govuk-label--m):not(.govuk-label--l):not(.govuk-label--xl) + .govuk-hint {
51
+ margin-bottom: 0;
52
+ }
51
53
  }
@@ -6,19 +6,21 @@
6
6
  selected_option ||= nil
7
7
  %>
8
8
  <% if label && options.any? %>
9
- <%=
10
- render "govuk_publishing_components/components/label", {
11
- html_for: id
12
- }.merge(label.symbolize_keys)
13
- %>
14
-
15
- <div class="gem-c-accessible-autocomplete" data-module="accessible-autocomplete">
9
+ <div class="govuk-form-group">
16
10
  <%=
17
- select_tag(
18
- id,
19
- options_for_select(options, selected_option),
20
- data: data_attributes
21
- )
11
+ render "govuk_publishing_components/components/label", {
12
+ html_for: id
13
+ }.merge(label.symbolize_keys)
22
14
  %>
15
+
16
+ <div class="gem-c-accessible-autocomplete" data-module="accessible-autocomplete">
17
+ <%=
18
+ select_tag(
19
+ id,
20
+ options_for_select(options, selected_option),
21
+ data: data_attributes
22
+ )
23
+ %>
24
+ </div>
23
25
  </div>
24
26
  <% end %>
@@ -98,7 +98,7 @@
98
98
  <% end %>
99
99
 
100
100
  <% if item[:conditional] %>
101
- <div class="govuk-radios__conditional" id="<%= conditional_id %>">
101
+ <div class="govuk-radios__conditional govuk-radios__conditional--hidden" id="<%= conditional_id %>">
102
102
  <%= item[:conditional] %>
103
103
  </div>
104
104
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '13.2.0'.freeze
2
+ VERSION = '13.3.0'.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: 13.2.0
4
+ version: 13.3.0
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: 2018-12-18 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govspeak