govuk_publishing_components 16.9.2 → 16.10.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeb2017f4bd9e7a1a096e23f4a7ee4e7e372bd8250059cbbd5c5b2d301f04668
|
4
|
+
data.tar.gz: 9792f974ec5cbced915a53a46accbaa66f5a1e9ddba21edfe389838797435c38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed0b6a92e628dab6a7244042641e7f1006ced7ce3deff727eddb09bce518c0bc3d2ea08343f062644ea39d218a59d6fc6c6575b3361641e8ba684463327bbf95
|
7
|
+
data.tar.gz: cba6c1380cca1654f9e0566511af9112161d4a7de3ec3ca96d0eab57d65b919c0ba8651a9f96dec687ba10ab3ac9aa0e3bd066a0684c1944feb9362c083c4a32
|
@@ -11,6 +11,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
11
11
|
this.$html = document.querySelector('html')
|
12
12
|
this.$body = document.querySelector('body')
|
13
13
|
|
14
|
+
this.$module.resize = this.handleResize.bind(this)
|
14
15
|
this.$module.open = this.handleOpen.bind(this)
|
15
16
|
this.$module.close = this.handleClose.bind(this)
|
16
17
|
this.$module.focusDialog = this.handleFocusDialog.bind(this)
|
@@ -29,6 +30,16 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
29
30
|
}
|
30
31
|
}
|
31
32
|
|
33
|
+
ModalDialogue.prototype.handleResize = function (size) {
|
34
|
+
if (size == "narrow") {
|
35
|
+
this.$dialogBox.classList.remove('gem-c-modal-dialogue__box--wide')
|
36
|
+
}
|
37
|
+
|
38
|
+
if (size == "wide") {
|
39
|
+
this.$dialogBox.classList.add('gem-c-modal-dialogue__box--wide')
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
32
43
|
ModalDialogue.prototype.handleOpen = function (event) {
|
33
44
|
if (event) {
|
34
45
|
event.preventDefault()
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"/"
|
50
50
|
],
|
51
51
|
"_resolved": "git://github.com/alphagov/accessible-autocomplete.git#0c518b4fa79b9a95b544410858486ed9e6403c84",
|
52
|
-
"_shasum": "
|
52
|
+
"_shasum": "3ca2050fdc6815abdd4028c65ae6f12ac825c119",
|
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.
|
4
|
+
version: 16.10.0
|
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-04-
|
11
|
+
date: 2019-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govspeak
|