govuk_publishing_components 27.10.2 → 27.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/explicit-cross-domain-links.js +1 -1
  3. data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +1 -0
  4. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
  5. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +543 -380
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +30 -0
  7. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-super-navigation-header.scss +2 -2
  8. data/app/models/govuk_publishing_components/shared_accessibility_criteria.rb +17 -0
  9. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +107 -89
  10. data/app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb +23 -0
  11. data/app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml +12 -3
  12. data/app/views/govuk_publishing_components/components/docs/single_page_notification_button.yml +32 -0
  13. data/app/views/govuk_publishing_components/components/search/_search_icon.html.erb +5 -5
  14. data/config/locales/en.yml +7 -3
  15. data/lib/govuk_publishing_components/version.rb +1 -1
  16. data/node_modules/govuk-frontend/govuk/components/accordion/macro-options.json +2 -2
  17. data/node_modules/govuk-frontend/govuk/components/back-link/macro-options.json +3 -3
  18. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +3 -4
  19. data/node_modules/govuk-frontend/govuk/components/button/fixtures.json +9 -0
  20. data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +6 -6
  21. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +14 -0
  22. data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +8 -8
  23. data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +1 -1
  24. data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +5 -5
  25. data/node_modules/govuk-frontend/govuk/components/details/_index.scss +2 -1
  26. data/node_modules/govuk-frontend/govuk/components/details/macro-options.json +2 -2
  27. data/node_modules/govuk-frontend/govuk/components/error-message/macro-options.json +3 -3
  28. data/node_modules/govuk-frontend/govuk/components/fieldset/macro-options.json +1 -1
  29. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +1 -0
  30. data/node_modules/govuk-frontend/govuk/components/file-upload/macro-options.json +4 -4
  31. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +3 -0
  32. data/node_modules/govuk-frontend/govuk/components/footer/macro-options.json +2 -2
  33. data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +6 -6
  34. data/node_modules/govuk-frontend/govuk/components/hint/macro-options.json +1 -1
  35. data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +7 -7
  36. data/node_modules/govuk-frontend/govuk/components/inset-text/macro-options.json +1 -1
  37. data/node_modules/govuk-frontend/govuk/components/label/macro-options.json +1 -1
  38. data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +13 -1
  39. data/node_modules/govuk-frontend/govuk/components/panel/macro-options.json +1 -1
  40. data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +14 -0
  41. data/node_modules/govuk-frontend/govuk/components/radios/macro-options.json +8 -8
  42. data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +3 -3
  43. data/node_modules/govuk-frontend/govuk/components/summary-list/fixtures.json +2 -2
  44. data/node_modules/govuk-frontend/govuk/components/summary-list/macro-options.json +7 -7
  45. data/node_modules/govuk-frontend/govuk/components/tabs/macro-options.json +4 -4
  46. data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +5 -5
  47. data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +2 -2
  48. data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +22 -4
  49. data/node_modules/govuk-frontend/govuk/overrides/_all.scss +1 -0
  50. data/node_modules/govuk-frontend/govuk/overrides/_text-align.scss +20 -0
  51. data/node_modules/govuk-frontend/package.json +1 -1
  52. metadata +20 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a92c889f37a998fd33eaa7d63a5023675379057a7b1d6c715faa9eaecfb4b96
4
- data.tar.gz: a65094daf71f7c7092994bdcab43be1e0839c563dadd3c7932e8914ab77dd6f1
3
+ metadata.gz: 4cdfb123c38b321591389c84e2e9b397c5667f9782bc657efaaa59468d535f6a
4
+ data.tar.gz: 8d71ce616148c775034f93537252b16b40b134918ed34ff46bfb971963f93ca4
5
5
  SHA512:
6
- metadata.gz: 8d9b2bf25703c953126dd01b6729d12e08c7d4dc626e7987cdeb7352b2426caf4825c299b3d21d1ddc7be736cb721947bc7baa92615014dabb2fa00732aa1156
7
- data.tar.gz: 8770942781c1634da82bd444f57c98493d545ce6f52e776360c669905c9787a8557a78c3b5eb990b2fd7496b3068dfe98f8014e7a3f0a3b5580c9d9b8a2537a1
6
+ metadata.gz: 16d792dd3e4cdf1350cf32bd1b5090e7dfe097ae3bbad51637b820745fb84d0ddb9ef9b0aa697c100f721ff9845c519cd335b1c459a10ba392c883eaaaca7cb0
7
+ data.tar.gz: 02a880a029f8991916315ed45ca24e87bdc59db3c426966b005f8ab043f21fbcb9a7c00fcc9686a4e12a6fe6502168f4d022fdc0c32f5cbebcc1a2e5c54d7e71
@@ -19,7 +19,7 @@
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 () {
@@ -68,6 +68,7 @@ $govuk-new-link-styles: true;
68
68
  @import "components/select";
69
69
  @import "components/share-links";
70
70
  @import "components/show-password";
71
+ @import "components/single-page-notification-button";
71
72
  @import "components/skip-link";
72
73
  @import "components/step-by-step-nav-header";
73
74
  @import "components/step-by-step-nav-related";