govuk_publishing_components 16.9.1 → 16.9.2
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 +4 -4
- data/app/assets/javascripts/govuk_publishing_components/components/modal-dialogue.js +7 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +8 -2
- data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/cookie_banner.yml +1 -1
- data/lib/govuk_publishing_components/presenters/breadcrumbs.rb +3 -3
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/accessible-autocomplete/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9817345ffaebeffcf8cf25f17abfd8015b7b3652a346364fab24356567cb89dc
|
|
4
|
+
data.tar.gz: 47014ac0c7359e4f29000a5a4bed98d4b8ce2a80c8019bb6169344688add659d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7843eb05f192b222dd466afa02739193b6592bb77c9b45ded8573d67168f442b02f4dbf03294df06f732d1316f749f29207d25732511b496602b70861fa89b39
|
|
7
|
+
data.tar.gz: faf88f569fb8c1988d8e9c3d06a46f4425a3cafedb823672704d90ee8f836f1c17a0bd07ce1c27a6ecd346063a29125c501f2b9e7531623b1d02b6c38e2bfb90
|
|
@@ -8,6 +8,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
|
8
8
|
this.$module = $module[0]
|
|
9
9
|
this.$dialogBox = this.$module.querySelector('.gem-c-modal-dialogue__box')
|
|
10
10
|
this.$closeButton = this.$module.querySelector('.gem-c-modal-dialogue__close-button')
|
|
11
|
+
this.$html = document.querySelector('html')
|
|
11
12
|
this.$body = document.querySelector('body')
|
|
12
13
|
|
|
13
14
|
this.$module.open = this.handleOpen.bind(this)
|
|
@@ -33,8 +34,9 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
|
33
34
|
event.preventDefault()
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
this.$
|
|
37
|
-
this.$body.classList.add('
|
|
37
|
+
this.$html.classList.add('gem-o-template--modal')
|
|
38
|
+
this.$body.classList.add('gem-o-template__body--modal')
|
|
39
|
+
this.$body.classList.add('gem-o-template__body--blur')
|
|
38
40
|
this.$focusedElementBeforeOpen = document.activeElement
|
|
39
41
|
this.$module.style.display = 'block'
|
|
40
42
|
this.$dialogBox.focus()
|
|
@@ -47,8 +49,9 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
|
47
49
|
event.preventDefault()
|
|
48
50
|
}
|
|
49
51
|
|
|
50
|
-
this.$
|
|
51
|
-
this.$body.classList.remove('
|
|
52
|
+
this.$html.classList.remove('gem-o-template--modal')
|
|
53
|
+
this.$body.classList.remove('gem-o-template__body--modal')
|
|
54
|
+
this.$body.classList.remove('gem-o-template__body--blur')
|
|
52
55
|
this.$module.style.display = 'none'
|
|
53
56
|
this.$focusedElementBeforeOpen.focus()
|
|
54
57
|
|
|
@@ -72,11 +72,17 @@ $govuk-modal-wide-breakpoint: $govuk-page-width + $govuk-modal-margin * 2 + $gov
|
|
|
72
72
|
touch-action: none;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.
|
|
75
|
+
.gem-o-template--modal {
|
|
76
|
+
@include govuk-media-query($media-type: screen) {
|
|
77
|
+
overflow-y: inherit;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.gem-o-template__body--modal {
|
|
76
82
|
overflow: hidden;
|
|
77
83
|
}
|
|
78
84
|
|
|
79
|
-
.
|
|
85
|
+
.gem-o-template__body--blur {
|
|
80
86
|
.govuk-skip-link,
|
|
81
87
|
.govuk-header,
|
|
82
88
|
.govuk-phase-banner,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<%
|
|
2
2
|
id ||= 'global-cookie-message'
|
|
3
3
|
message ||= capture do %>
|
|
4
|
-
GOV.UK uses cookies to make the site simpler. <a class="govuk-link" href="
|
|
4
|
+
GOV.UK uses cookies to make the site simpler. <a class="govuk-link" href="/help/cookies" data-module="track-click" data-track-category="cookieBanner" data-track-action="Cookie banner clicked">Find out more about cookies</a> or <a class="govuk-link" href="#" data-hide-cookie-banner="true" data-module="track-click" data-track-category="cookieBanner" data-track-action="Cookie banner hidden">hide this message</a>
|
|
5
5
|
<% end %>
|
|
6
6
|
|
|
7
7
|
<div id="<%= id %>" class="gem-c-cookie-banner" data-module="cookie-banner">
|
|
@@ -16,4 +16,4 @@ examples:
|
|
|
16
16
|
custom_message:
|
|
17
17
|
data:
|
|
18
18
|
id: custom-message
|
|
19
|
-
message: GOV.UK uses cookies to make the site simpler. <a class="govuk-link" href="
|
|
19
|
+
message: GOV.UK uses cookies to make the site simpler. <a class="govuk-link" href="/help/cookies">Find out more about cookies</a>
|
|
@@ -19,9 +19,9 @@ module GovukPublishingComponents
|
|
|
19
19
|
attr_reader :breadcrumbs, :request_path
|
|
20
20
|
|
|
21
21
|
def item_list_element
|
|
22
|
-
breadcrumbs.each_with_index.map
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
breadcrumbs.each_with_index.map { |crumb, index| Breadcrumb.new(crumb, index) }.
|
|
23
|
+
select(&:is_link?).
|
|
24
|
+
map { |breadcrumb| breadcrumb.item_list_element(@request_path) }
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"/"
|
|
50
50
|
],
|
|
51
51
|
"_resolved": "git://github.com/alphagov/accessible-autocomplete.git#0c518b4fa79b9a95b544410858486ed9e6403c84",
|
|
52
|
-
"_shasum": "
|
|
52
|
+
"_shasum": "a41a63e08d55015cd7500da890c7ebb8e2563e4c",
|
|
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,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_publishing_components
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 16.9.
|
|
4
|
+
version: 16.9.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-04-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: govspeak
|