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 +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +7 -5
- data/app/views/govuk_publishing_components/components/_accessible_autocomplete.html.erb +14 -12
- data/app/views/govuk_publishing_components/components/_radio.html.erb +1 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad57d157c8db11024f51b94c8748da31734480431e8ee77146729150759e381e
|
|
4
|
+
data.tar.gz: 9b9986abd051efb7755a4ce076c97a2a86a1a59b495e7117541bd931a288ae88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d52e91705cc31ee3c1fc9c5bc7245c06ed94e62dfde2927314b8d08e409e59643529a08a32d9d76cd580d283d092bfdcccb6fc5b53b8a8bf6c80605f467a630e
|
|
7
|
+
data.tar.gz: 3ea49edf3cc68d857147a584a18a7a1152d56b8515843c6617a4265489bcf79599490c3a896d17461b6f2ac48446484e19626e8108257e4234c93c713509a385
|
|
@@ -43,9 +43,11 @@
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
18
|
-
id
|
|
19
|
-
|
|
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 %>
|
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.
|
|
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-
|
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: govspeak
|