govuk_publishing_components 16.20.0 → 16.20.1

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: 64477a88e4b8d24dea4165ce61de5878e9be390a7104993c9824964735c8da98
4
- data.tar.gz: 2cc12df7d66c42c960e259c5283eaf5de4b7ccc4bbb381af0dcc315c891055ee
3
+ metadata.gz: b578c023ba499b8cd0c8021144fabaf4514f6ffa9ffcb49682b984dadc471a1c
4
+ data.tar.gz: c1d8829238aa38adb6f4b434158867b978f10040b4a856f67f270114adbfead2
5
5
  SHA512:
6
- metadata.gz: e457490b8b7bad4da41b3f429ca0cba72e1bcb4644bf8f5e3bd39a8c11bd81c12b96efad139eec2cb42d7957b83c08390a9293b383b778b17fedddb3e6f15963
7
- data.tar.gz: 7b40a870aaaa18edbf91aa27264550bd694ef7fdb5e66362c3db5259eeb8b85a98d7369fee6acdb8cb1fb6505f3d659c6e9ae2b9e0c5c21057ce5d6de63af474
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
 
@@ -105,8 +105,6 @@ examples:
105
105
  text: Worldwide
106
106
  - href: '/government/policies'
107
107
  text: Policies
108
- - href: '/government/publications'
109
- text: Publications
110
108
  - href: '/news-and-communications'
111
109
  text: News and communications
112
110
  meta:
@@ -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] = button_type == "submit" ? data_attributes.to_h.merge(@default_data_attributes) : data_attributes
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
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '16.20.0'.freeze
2
+ VERSION = '16.20.1'.freeze
3
3
  end
@@ -49,7 +49,7 @@
49
49
  "/"
50
50
  ],
51
51
  "_resolved": "git://github.com/alphagov/accessible-autocomplete.git#0c518b4fa79b9a95b544410858486ed9e6403c84",
52
- "_shasum": "d7f275cdee67fa8018cb48a5a8d800b3a55c9485",
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",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.20.0
4
+ version: 16.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev