govuk-components 4.1.1 → 4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/components/govuk_component/footer_component.html.erb +1 -1
- data/app/components/govuk_component/header_component.html.erb +1 -1
- data/app/components/govuk_component/phase_banner_component.rb +1 -1
- data/app/helpers/govuk_link_helper.rb +10 -1
- data/lib/govuk/components/engine.rb +2 -2
- data/lib/govuk/components/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e7b1205d2fa524dd03af86f3f989ca8519a90b2b2504ea220b74748a78f9c86
|
4
|
+
data.tar.gz: 26d4734f318f8dcb85cc74a88e8ae1f6e63a30afe4b40d582d449fcb7a40f9fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3dc2f9e9bf058c67e170976d71bf152cf84d6138806bfbd1418f73b881fb2c9715d1d7fd8c60b6d8327fbe3a1b4f2ee7cf232fcb0c911ce940b00cf73488a46
|
7
|
+
data.tar.gz: a9bbe0c2a21330b61adfeabf56e93dec486519707ce04f5723fa866e95b58a546b0778f4f0df30bdd60397b3a16af91db417aa60dd83c0e4d5ec1fcf00db0bd3
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<% end %>
|
27
27
|
|
28
28
|
<% if meta_licence.nil? %>
|
29
|
-
<svg aria-hidden="true" focusable="false" class="<%= brand %>-footer__licence-logo" xmlns="http://www.w3.org/2000/svg"
|
29
|
+
<svg aria-hidden="true" focusable="false" class="<%= brand %>-footer__licence-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 483.2 195.7" height="17" width="41">
|
30
30
|
<path fill="currentColor" d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145" />
|
31
31
|
</svg>
|
32
32
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<% else %>
|
9
9
|
<% if crown %>
|
10
10
|
<!--[if gt IE 8]><!-->
|
11
|
-
<svg aria-hidden="true" focusable="false" class="<%= brand %>-header__logotype-crown" xmlns="http://www.w3.org/2000/svg"
|
11
|
+
<svg aria-hidden="true" focusable="false" class="<%= brand %>-header__logotype-crown" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 132 97" height="30" width="36">
|
12
12
|
<path fill="currentColor" fill-rule="evenodd" d="M25 30.2c3.5 1.5 7.7-.2 9.1-3.7 1.5-3.6-.2-7.8-3.9-9.2-3.6-1.4-7.6.3-9.1 3.9-1.4 3.5.3 7.5 3.9 9zM9 39.5c3.6 1.5 7.8-.2 9.2-3.7 1.5-3.6-.2-7.8-3.9-9.1-3.6-1.5-7.6.2-9.1 3.8-1.4 3.5.3 7.5 3.8 9zM4.4 57.2c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.5-1.5-7.6.3-9.1 3.8-1.4 3.5.3 7.6 3.9 9.1zm38.3-21.4c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.6-1.5-7.6.3-9.1 3.8-1.3 3.6.4 7.7 3.9 9.1zm64.4-5.6c-3.6 1.5-7.8-.2-9.1-3.7-1.5-3.6.2-7.8 3.8-9.2 3.6-1.4 7.7.3 9.2 3.9 1.3 3.5-.4 7.5-3.9 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.4l1.4 16.4c3.9-5.5 8.5-7.7 10.9-7.3-.3 5.8-.9 12.8-11.1 13.8-7.2.6-12.9-2.9-13.5-7.2-.7-5 3.8-8.3 7.1-3.1 2.7-8.7-4.6-11.6-9.4-6.2 3.7-8.5 3.6-14.7-4.6-20.8-5.8 7.6-5 13.9 2.2 21.1-4.7-2.6-11.9.1-7.7 8.8 2.3-5.5 7.1-4.2 8.1.5.7 3.3-1.3 7.1-5.7 7.9-3.5.7-9-1.8-13.5-11.2 2.5.1 4.7 1.3 7.5 3.3l-4.7-15.4c-1.2 4.4-2.7 7.2-4.3 8.7-1.1-3-.9-5.3 0-10.2l-9.5 3.4c5 6.9 9.9 16.7 14 33.5 14.8-2.1 30.8-3.2 47.7-3.2z"></path>
|
13
13
|
</svg>
|
14
14
|
<!--<![endif]-->
|
@@ -14,7 +14,7 @@ class GovukComponent::PhaseBannerComponent < GovukComponent::Base
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def phase_tag_component
|
17
|
-
GovukComponent::TagComponent.new(**phase_tag
|
17
|
+
GovukComponent::TagComponent.new(**phase_tag, classes: "#{brand}-phase-banner__content__tag")
|
18
18
|
end
|
19
19
|
|
20
20
|
private
|
@@ -43,7 +43,16 @@ module GovukLinkHelper
|
|
43
43
|
|
44
44
|
def govuk_button_to(name = nil, options = nil, extra_options = {}, &block)
|
45
45
|
extra_options = options if block_given?
|
46
|
-
html_options =
|
46
|
+
html_options = {
|
47
|
+
data: { module: "govuk-button" }
|
48
|
+
}
|
49
|
+
|
50
|
+
if extra_options && extra_options[:prevent_double_click]
|
51
|
+
html_options[:data]["prevent-double-click"] = "true"
|
52
|
+
extra_options = extra_options.except(:prevent_double_click)
|
53
|
+
end
|
54
|
+
|
55
|
+
html_options.merge! build_html_options(extra_options, style: :button)
|
47
56
|
|
48
57
|
if block_given?
|
49
58
|
button_to(options, html_options, &block)
|
@@ -87,8 +87,8 @@ module Govuk
|
|
87
87
|
default_exit_this_page_timed_out_text: nil,
|
88
88
|
default_exit_this_page_press_two_more_times_text: nil,
|
89
89
|
default_exit_this_page_press_one_more_time_text: nil,
|
90
|
-
default_header_navigation_label: '
|
91
|
-
default_header_menu_button_label: 'Show or hide
|
90
|
+
default_header_navigation_label: 'Menu',
|
91
|
+
default_header_menu_button_label: 'Show or hide menu',
|
92
92
|
default_header_logotype: 'GOV.UK',
|
93
93
|
default_header_homepage_url: '/',
|
94
94
|
default_header_service_name: nil,
|
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: 4.1.
|
4
|
+
version: 4.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DfE developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: html-attributes-utils
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
version: '3.3'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '3.
|
56
|
+
version: '3.7'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -63,7 +63,7 @@ dependencies:
|
|
63
63
|
version: '3.3'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '3.
|
66
|
+
version: '3.7'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: deep_merge
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -224,14 +224,14 @@ dependencies:
|
|
224
224
|
requirements:
|
225
225
|
- - "~>"
|
226
226
|
- !ruby/object:Gem::Version
|
227
|
-
version: 4.
|
227
|
+
version: 4.2.0
|
228
228
|
type: :development
|
229
229
|
prerelease: false
|
230
230
|
version_requirements: !ruby/object:Gem::Requirement
|
231
231
|
requirements:
|
232
232
|
- - "~>"
|
233
233
|
- !ruby/object:Gem::Version
|
234
|
-
version: 4.
|
234
|
+
version: 4.2.0
|
235
235
|
- !ruby/object:Gem::Dependency
|
236
236
|
name: rubypants
|
237
237
|
requirement: !ruby/object:Gem::Requirement
|