govuk_publishing_components 27.10.1 → 27.10.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics/explicit-cross-domain-links.js +2 -2
- data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +445 -363
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-super-navigation-header.scss +2 -2
- data/app/views/govuk_publishing_components/components/_admin_analytics.html.erb +4 -1
- data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/_highlight_boxes.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +84 -54
- data/app/views/govuk_publishing_components/components/_taxonomy_list.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml +12 -3
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cf2ebcbfd20fc146d07f7edcacf06c2c0dec708408c27217ff04e9475bbedc1
|
4
|
+
data.tar.gz: b03ddc5f4e26590d295a75aaca6f97f18659e3ceeec6a7714d9fe093ea617eb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94559c60b8dd1124dd1096ec430a87f6c601efcb6a9f02af1ba85f705d1dd22971d2626f1b46627152a2c4e75b832c9a88ca664eac84a3534297688ab9ff2469
|
7
|
+
data.tar.gz: 534dc11dadc43079d31f952ce41a51615209367cbd48850f1f02b7f1af12402d06aca99c586fcdeb5464645cc226a8713f13b850eb9409677ac931b733cb60fc
|
data/app/assets/javascripts/govuk_publishing_components/analytics/explicit-cross-domain-links.js
CHANGED
@@ -14,12 +14,12 @@
|
|
14
14
|
// If engaged and rejected, append only ?cookie-consent=reject
|
15
15
|
// If engaged and accepted usage, append ?_ga=clientid if available and cookie-consent=accept
|
16
16
|
|
17
|
-
if (cookieBannerEngaged
|
17
|
+
if (cookieBannerEngaged !== 'true') {
|
18
18
|
this.decorate(element, 'cookie_consent=not-engaged')
|
19
19
|
return
|
20
20
|
}
|
21
21
|
var cookieConsent = GOVUK.getConsentCookie()
|
22
|
-
if (cookieConsent.usage === false) {
|
22
|
+
if (cookieConsent && cookieConsent.usage === false) {
|
23
23
|
this.decorate(element, 'cookie_consent=reject')
|
24
24
|
return
|
25
25
|
}
|
@@ -96,6 +96,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
96
96
|
this.$module.showConfirmationMessage()
|
97
97
|
this.$module.cookieBannerConfirmationMessage.focus()
|
98
98
|
window.GOVUK.cookie('cookies_preferences_set', 'true', { days: 365 })
|
99
|
+
window.GOVUK.setDefaultConsentCookie()
|
99
100
|
}
|
100
101
|
|
101
102
|
CookieBanner.prototype.showConfirmationMessage = function () {
|