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 +4 -4
- data/app/helpers/govuk_link_helper.rb +2 -2
- data/lib/govuk/components/version.rb +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: 9e61252c526732d7919b0fc8c0818af26742357a007b18a0e919448ac8069319
|
4
|
+
data.tar.gz: 4c1271fc9c6ccfb1c15b33e4716841d86f0bbb5d77b2747a4ec2a6a21163448c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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(
|
40
|
+
link_to(name, **button_args, &block)
|
41
41
|
else
|
42
42
|
link_to(button_text, href, **button_args)
|
43
43
|
end
|