govuk-components 5.0.0b3 → 5.0.0b4

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: f18cbe4c3443cef4f1d1bb1bf35fd62d4db164602982710dffc1c6d8dc561d18
4
- data.tar.gz: c1f8418c6aa536ffd532ea24dd9718bd949bec77d781cb4a628737f9a0a2618c
3
+ metadata.gz: 9e61252c526732d7919b0fc8c0818af26742357a007b18a0e919448ac8069319
4
+ data.tar.gz: 4c1271fc9c6ccfb1c15b33e4716841d86f0bbb5d77b2747a4ec2a6a21163448c
5
5
  SHA512:
6
- metadata.gz: d97593a2c54aa8fd52de7a518fc60b9f76efbae41881cfed7337e0a8da5f460db1a30ea0114bfc24ee5004bea906b5e9ba56545ecec60d5d36bef1c507d3c595
7
- data.tar.gz: ffbaa5ff7ef5eaebe2683cb77a5f35aac5de5f11fd5638742fcb73cb91c76aff6da4d1b982fda1af43ab898811e5d7627f8dc0e751335ae4fefef76c809d9c0d
6
+ metadata.gz: 22eb5f538044e5047270e2ed6cf8b5a93770a46913cf4df3ad259ccd560c6085ddfe257fe93fafbfbe518e05b25c0dbb471a0dd8c12ee2a35a8be44c4496bbfa
7
+ data.tar.gz: 2aa37663c893724c13382561c3120e754cb49ea0bc7cc9c52846d2cda203beb772e06e3c7b1c03b2c69e18bae8c586f2f12efa0dd4901330d53ed12b9f7de3a2
@@ -26,7 +26,7 @@ module GovukLinkHelper
26
26
  button_text = build_text(name, visually_hidden_prefix: visually_hidden_prefix, visually_hidden_suffix: visually_hidden_suffix)
27
27
 
28
28
  if block_given?
29
- button_to(href, **button_args, &block)
29
+ button_to(name, **button_args, &block)
30
30
  else
31
31
  button_to(button_text, href, **button_args)
32
32
  end
@@ -37,7 +37,7 @@ module GovukLinkHelper
37
37
  button_text = build_text(name, visually_hidden_prefix: visually_hidden_prefix, visually_hidden_suffix: visually_hidden_suffix)
38
38
 
39
39
  if block_given?
40
- link_to(href, **button_args, &block)
40
+ link_to(name, **button_args, &block)
41
41
  else
42
42
  link_to(button_text, href, **button_args)
43
43
  end
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Components
3
- VERSION = '5.0.0b3'.freeze
3
+ VERSION = '5.0.0b4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk-components
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0b3
4
+ version: 5.0.0b4
5
5
  platform: ruby
6
6
  authors:
7
7
  - DfE developers