govuk_publishing_components 16.9.1 → 16.9.2

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: 97bc4d987bdf394c0d2d9d00fb8efa64d865d1b3af428c4a7544f53abe37a668
4
- data.tar.gz: 769eea50096ee86f01d324efc7e8b6475c76f9e12953ee6c0d2c648ac54221b2
3
+ metadata.gz: 9817345ffaebeffcf8cf25f17abfd8015b7b3652a346364fab24356567cb89dc
4
+ data.tar.gz: 47014ac0c7359e4f29000a5a4bed98d4b8ce2a80c8019bb6169344688add659d
5
5
  SHA512:
6
- metadata.gz: 27abad18a52e21e69ca29726bcabe2992ecbc8d55f9b441a4a47e71204257537083006e0e65cb2faa2dc26b661a508f2dd197cbda8af28255b55bcee4df455a7
7
- data.tar.gz: 1c12bd58a56ebea9d108a754751a866bdef282b739ed4a517ca5249e1f653f0f59a4261dd7776ec5b0fa475164bf7400a74e4753d277bb9b781bfef35a5e9356
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.$body.classList.add('app-o-template__body--modal')
37
- this.$body.classList.add('app-o-template__body--blur')
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.$body.classList.remove('app-o-template__body--modal')
51
- this.$body.classList.remove('app-o-template__body--blur')
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
- .app-o-template__body--modal {
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
- .app-o-template__body--blur {
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="https://www.gov.uk/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>
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="https://www.gov.uk/help/cookies">Find out more about cookies</a>
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 do |crumb, index|
23
- Breadcrumb.new(crumb, index).item_list_element(@request_path)
24
- end
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
 
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '16.9.1'.freeze
2
+ VERSION = '16.9.2'.freeze
3
3
  end
@@ -49,7 +49,7 @@
49
49
  "/"
50
50
  ],
51
51
  "_resolved": "git://github.com/alphagov/accessible-autocomplete.git#0c518b4fa79b9a95b544410858486ed9e6403c84",
52
- "_shasum": "708ac77fbb5e1040f98848a6b674ba662a4df93e",
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.1
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-03-29 00:00:00.000000000 Z
11
+ date: 2019-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govspeak