govuk-components 2.0.0b6 → 2.0.0b7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71ba722e8aa82977774d53d3b6d8352dbceddc1966974f356aca9e4337c9b086
4
- data.tar.gz: 193426f137c69991e3d7bf57b005141778ea48d24026158af303450ed326b768
3
+ metadata.gz: 841141c88cfcaed118afa205d0b0cee4652d73367807e19568325bc751d87e7b
4
+ data.tar.gz: 6fa945dffee2ad40ca4b94b1c3847e1324442580611f1b9e372b684b0ea4ecd7
5
5
  SHA512:
6
- metadata.gz: eed11ed8f35f73dcf0328cd6d9640037ba2971e105b6258f039eba78b183fb425a8aa2d1b4e632dfa6cecbadb443395659384d14a9ca657bc7fa190f7ebc2222
7
- data.tar.gz: bc13182bb9c0ef100fe4ee4bc1ceb09ab98eedfc87a47bf538cc06d7fe5f3a01ab646fdb2f1aee96f04dd0c4760b66fc0d3a1e45b868965a11c145706a5ab5aa
6
+ metadata.gz: d2a5f01d9e108932a99fdf57d8bfd0837151a8ff96254f2115dc8a4a02d50e16b60539749705fc9b3e54ee8a75269901ffc9ff9965a67fcb5f68b05ab5374d6b
7
+ data.tar.gz: 767021e9a660ddcf0b6ce3df61f7363341ec0181d4f16fb0584a6c8ac19978eb717997a7c1773dad1ccda68e6a141225c7f67f2fde0ed99e841a6ca2cbac7c71
@@ -62,6 +62,17 @@ module GovukLinkHelper
62
62
  end
63
63
  end
64
64
 
65
+ def govuk_button_link_to(name = nil, options = nil, extra_options = {}, &block)
66
+ extra_options = options if block_given?
67
+ html_options = build_html_options(extra_options, style: :button)
68
+
69
+ if block_given?
70
+ link_to(name, html_options, &block)
71
+ else
72
+ link_to(name, options, html_options)
73
+ end
74
+ end
75
+
65
76
  def govuk_breadcrumb_link_to(name = nil, options = nil, extra_options = {}, &block)
66
77
  extra_options = options if block_given?
67
78
  html_options = build_html_options(extra_options, style: :breadcrumb)
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Components
3
- VERSION = '2.0.0b6'.freeze
3
+ VERSION = '2.0.0b7'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk-components
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0b6
4
+ version: 2.0.0b7
5
5
  platform: ruby
6
6
  authors:
7
7
  - DfE developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-19 00:00:00.000000000 Z
11
+ date: 2021-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel