govuk_publishing_components 16.20.0 → 16.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +0 -5
- data/app/views/govuk_publishing_components/components/docs/button.yml +0 -2
- data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +0 -2
- data/lib/govuk_publishing_components/presenters/button_helper.rb +1 -2
- 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: b578c023ba499b8cd0c8021144fabaf4514f6ffa9ffcb49682b984dadc471a1c
|
4
|
+
data.tar.gz: c1d8829238aa38adb6f4b434158867b978f10040b4a856f67f270114adbfead2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20518ee81485fe5df7f6fd510f8d28f742a5ea3f706cece20a0a709771b6e3f332680969f6acbd5c9950a3f359896df25f02c3db4bb3527c43a2f3cab7847c1c
|
7
|
+
data.tar.gz: 3aca611de7fc01c47452c8c61d3439819f589fd3e0b21c3ed191e3d15ed4e938eae61571d901f51835f56981a77551e1a768ade7aa502b9eae31a2c9ef92dd19
|
@@ -25,11 +25,6 @@
|
|
25
25
|
</a>
|
26
26
|
</li>
|
27
27
|
<li class="clear-child">
|
28
|
-
<a class="<%= 'active' if active == 'publications' %>" href="/government/publications">
|
29
|
-
<%= t("govuk_component.government_navigation.publications", default: "Publications") %>
|
30
|
-
</a>
|
31
|
-
</li>
|
32
|
-
<li>
|
33
28
|
<a class="<%= 'active' if active == 'consultations' %>" href="<%= CGI::escapeHTML('/search/policy-papers-and-consultations?content_store_document_type[]=open_consultations&content_store_document_type[]=closed_consultations') %>">
|
34
29
|
<%= t("govuk_component.government_navigation.consultations", default: "Consultations") %>
|
35
30
|
</a>
|
@@ -8,8 +8,6 @@ body: |
|
|
8
8
|
These instances of buttons are added by Content Designers, ideally this duplication would not exist but we currently don't have shared markup
|
9
9
|
via our components within the generated [govspeak](https://github.com/alphagov/govspeak).
|
10
10
|
(This is a challenge to the reader)
|
11
|
-
|
12
|
-
Buttons with type submit (implicitly defined of unset) are enhanced to [prevent them from being double clicked](https://github.com/alphagov/govuk-frontend/commit/884e7dd73ad943d71fb701da15626e6a7ad0b933).
|
13
11
|
accessibility_criteria: |
|
14
12
|
The button must:
|
15
13
|
|
@@ -12,7 +12,6 @@ module GovukPublishingComponents
|
|
12
12
|
@title = local_assigns[:title]
|
13
13
|
@info_text = local_assigns[:info_text]
|
14
14
|
@rel = local_assigns[:rel]
|
15
|
-
@default_data_attributes = { "prevent-double-click" => true }
|
16
15
|
@data_attributes = local_assigns[:data_attributes]
|
17
16
|
@margin_bottom = local_assigns[:margin_bottom]
|
18
17
|
@inline_layout = local_assigns[:inline_layout]
|
@@ -33,7 +32,7 @@ module GovukPublishingComponents
|
|
33
32
|
options[:role] = "button" if link?
|
34
33
|
options[:type] = button_type
|
35
34
|
options[:rel] = rel if rel
|
36
|
-
options[:data] =
|
35
|
+
options[:data] = data_attributes if data_attributes
|
37
36
|
options[:title] = title if title
|
38
37
|
options[:target] = target if target
|
39
38
|
options
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"/"
|
50
50
|
],
|
51
51
|
"_resolved": "git://github.com/alphagov/accessible-autocomplete.git#0c518b4fa79b9a95b544410858486ed9e6403c84",
|
52
|
-
"_shasum": "
|
52
|
+
"_shasum": "758be0437fab0bfff95fe7f440dee86ecb743279",
|
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",
|