hmrc-frontend 6.117.0 → 7.0.0

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.
Files changed (63) hide show
  1. package/check-compatibility-with-govuk-frontend-version.js +4 -4
  2. package/govuk-prototype-kit.config.json +3 -26
  3. package/hmrc/VERSION.txt +1 -1
  4. package/hmrc/{accessible-autocomplete-6.117.0.css → accessible-autocomplete-7.0.0.css} +2 -2
  5. package/hmrc/all.js +0 -114
  6. package/hmrc/components/_all.scss +1 -4
  7. package/hmrc/components/banner/template.njk +12 -28
  8. package/hmrc/components/footer/template.njk +21 -19
  9. package/hmrc/components/header/_header.scss +27 -197
  10. package/hmrc/components/header/template.njk +12 -75
  11. package/hmrc/components/internal-header/template.njk +12 -28
  12. package/hmrc/components/service-navigation-language-select/_service-navigation-language-select.scss +6 -8
  13. package/hmrc/components/service-navigation-language-select/layout.njk +1 -1
  14. package/hmrc/govuk/images/favicon.ico +0 -0
  15. package/hmrc/govuk/images/favicon.svg +1 -1
  16. package/hmrc/govuk/images/govuk-icon-180.png +0 -0
  17. package/hmrc/govuk/images/govuk-icon-192.png +0 -0
  18. package/hmrc/govuk/images/govuk-icon-512.png +0 -0
  19. package/hmrc/govuk/images/govuk-opengraph-image.png +0 -0
  20. package/hmrc/hmrc-frontend-7.0.0.min.css +3 -0
  21. package/hmrc/hmrc-frontend-7.0.0.min.js +3 -0
  22. package/hmrc/maps/accessible-autocomplete-7.0.0.css.map +1 -0
  23. package/hmrc/maps/hmrc-frontend-7.0.0.min.css.map +1 -0
  24. package/hmrc/maps/hmrc-frontend-7.0.0.min.js.map +1 -0
  25. package/package.json +2 -2
  26. package/hmrc/components/account-header/README.md +0 -39
  27. package/hmrc/components/account-menu/README.md +0 -12
  28. package/hmrc/components/account-menu/_account-menu.scss +0 -380
  29. package/hmrc/components/account-menu/account-menu.js +0 -84
  30. package/hmrc/components/account-menu/images/icon-chevron-down.png +0 -0
  31. package/hmrc/components/account-menu/images/icon-chevron-down.svg +0 -1
  32. package/hmrc/components/account-menu/images/icon-chevron-left.png +0 -0
  33. package/hmrc/components/account-menu/images/icon-chevron-left.svg +0 -1
  34. package/hmrc/components/account-menu/images/icon-chevron-right.png +0 -0
  35. package/hmrc/components/account-menu/images/icon-chevron-right.svg +0 -1
  36. package/hmrc/components/account-menu/images/icon-home.png +0 -0
  37. package/hmrc/components/account-menu/macro.njk +0 -3
  38. package/hmrc/components/account-menu/template.njk +0 -59
  39. package/hmrc/components/currency-input/README.md +0 -33
  40. package/hmrc/components/currency-input/_currency-input.scss +0 -109
  41. package/hmrc/components/currency-input/macro.njk +0 -3
  42. package/hmrc/components/currency-input/template.njk +0 -67
  43. package/hmrc/components/language-select/README.md +0 -7
  44. package/hmrc/components/language-select/_language-select.scss +0 -29
  45. package/hmrc/components/language-select/macro.njk +0 -3
  46. package/hmrc/components/language-select/template.njk +0 -39
  47. package/hmrc/govuk/rebrand/images/favicon.ico +0 -0
  48. package/hmrc/govuk/rebrand/images/favicon.svg +0 -1
  49. package/hmrc/govuk/rebrand/images/govuk-crest.svg +0 -1
  50. package/hmrc/govuk/rebrand/images/govuk-icon-180.png +0 -0
  51. package/hmrc/govuk/rebrand/images/govuk-icon-192.png +0 -0
  52. package/hmrc/govuk/rebrand/images/govuk-icon-512.png +0 -0
  53. package/hmrc/govuk/rebrand/images/govuk-icon-mask.svg +0 -1
  54. package/hmrc/govuk/rebrand/images/govuk-opengraph-image.png +0 -0
  55. package/hmrc/govuk/rebrand/manifest.json +0 -39
  56. package/hmrc/hmrc-frontend-6.117.0.min.css +0 -3
  57. package/hmrc/hmrc-frontend-6.117.0.min.js +0 -3
  58. package/hmrc/layouts/account-header.html +0 -39
  59. package/hmrc/maps/accessible-autocomplete-6.117.0.css.map +0 -1
  60. package/hmrc/maps/hmrc-frontend-6.117.0.min.css.map +0 -1
  61. package/hmrc/maps/hmrc-frontend-6.117.0.min.js.map +0 -1
  62. package/hmrc/templates/account-header.html +0 -15
  63. /package/hmrc/{accessible-autocomplete-6.117.0.js → accessible-autocomplete-7.0.0.js} +0 -0
@@ -31,7 +31,7 @@ function withinPrototypeKitAndUsingIncompatibleGovukFrontendVersion() {
31
31
  }
32
32
 
33
33
  const currentVersionInProject = projectPackageJson.dependencies['govuk-frontend'].replace(/[^0-9.]/g, '');
34
- const minimumGovukFrontendVersion = '5.4.0';
34
+ const minimumGovukFrontendVersion = '6.0.0';
35
35
 
36
36
  return (!semverGreaterThanOrEqualTo(currentVersionInProject, minimumGovukFrontendVersion));
37
37
  }
@@ -44,15 +44,15 @@ try {
44
44
  // eslint-disable-next-line no-console
45
45
  process.stderr.write(`
46
46
  Hello friend, looks like your prototype is using a version of
47
- govuk-frontend lower than v5.4.0, which is the minimum version
48
- compatible to automatically compile and load the styles for the
47
+ govuk-frontend lower than v6.0.0, which is the minimum version
48
+ compatible to automatically compile and load the styles for the
49
49
  version of hmrc-frontend you're installing with the govuk-prototype-kit.
50
50
 
51
51
  You can silence this warning by setting the environment variable
52
52
  HMRC_FRONTEND_DISABLE_COMPATIBILITY_CHECK=true.
53
53
  - PlatUI
54
54
  -------------------------------------------
55
- \\ ^__^
55
+ \\ ^__^
56
56
  \\ (oo)_______
57
57
  (__) )\\/\\
58
58
  ||----w |
@@ -10,11 +10,10 @@
10
10
  "pluginDependencies": [
11
11
  {
12
12
  "packageName": "govuk-frontend",
13
- "minVersion": "5.14.0"
13
+ "minVersion": "6.0.0"
14
14
  }
15
15
  ],
16
16
  "assets": [
17
- "/hmrc/components/account-menu/images",
18
17
  "/hmrc/components/banner/images",
19
18
  "/hmrc/components/internal-header/images"
20
19
  ],
@@ -24,29 +23,15 @@
24
23
  "scripts": [
25
24
  "/hmrc/all.js",
26
25
  "/hmrc/init-all.js",
27
- "/hmrc/accessible-autocomplete-6.117.0.js"
26
+ "/hmrc/accessible-autocomplete-7.0.0.js"
28
27
  ],
29
28
  "stylesheets": [
30
- "/hmrc/accessible-autocomplete-6.117.0.css"
31
- ],
32
- "importNunjucksMacrosInto": [
33
- "/hmrc/templates/account-header.html"
34
- ],
35
- "templates": [
36
- {
37
- "name": "Blank page with Account Header",
38
- "path": "/hmrc/templates/account-header.html",
39
- "type": "nunjucks"
40
- }
29
+ "/hmrc/accessible-autocomplete-7.0.0.css"
41
30
  ],
42
31
  "nunjucksPaths": [
43
32
  "/"
44
33
  ],
45
34
  "nunjucksMacros": [
46
- {
47
- "macroName": "hmrcAccountMenu",
48
- "importFrom": "hmrc/components/account-menu/macro.njk"
49
- },
50
35
  {
51
36
  "macroName": "hmrcAddToAList",
52
37
  "importFrom": "hmrc/components/add-to-a-list/macro.njk"
@@ -59,10 +44,6 @@
59
44
  "macroName": "hmrcCharacterCount",
60
45
  "importFrom": "hmrc/components/character-count/macro.njk"
61
46
  },
62
- {
63
- "macroName": "hmrcCurrencyInput",
64
- "importFrom": "hmrc/components/currency-input/macro.njk"
65
- },
66
47
  {
67
48
  "macroName": "hmrcFooter",
68
49
  "importFrom": "hmrc/components/footer/macro.njk"
@@ -75,10 +56,6 @@
75
56
  "macroName": "hmrcInternalHeader",
76
57
  "importFrom": "hmrc/components/internal-header/macro.njk"
77
58
  },
78
- {
79
- "macroName": "hmrcLanguageSelect",
80
- "importFrom": "hmrc/components/language-select/macro.njk"
81
- },
82
59
  {
83
60
  "macroName": "hmrcListWithActions",
84
61
  "importFrom": "hmrc/components/list-with-actions/macro.njk"
package/hmrc/VERSION.txt CHANGED
@@ -1 +1 @@
1
- 6.117.0
1
+ 7.0.0
@@ -1,2 +1,2 @@
1
- .autocomplete__wrapper{position:relative}.autocomplete__hint,.autocomplete__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:2px solid #0b0c0c;border-radius:0;-webkit-box-sizing:border-box;box-sizing:border-box;height:2.5rem;line-height:1.25;margin-bottom:0;width:100%}.autocomplete__input{background-color:transparent;position:relative}.autocomplete__hint{color:#505a5f;position:absolute}.autocomplete__input--default{padding:5px}.autocomplete__input--focused{-webkit-box-shadow:inset 0 0 0 2px;box-shadow:inset 0 0 0 2px;outline:3px solid #fd0;outline-offset:0}.autocomplete__input--show-all-values{cursor:pointer;padding:5px 35px 5px 5px}.autocomplete__dropdown-arrow-down{display:inline-block;height:24px;position:absolute;right:8px;top:10px;width:24px;z-index:-1}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{-webkit-box-shadow:0 2px 6px rgba(0,0,0,.257);box-shadow:0 2px 6px rgba(0,0,0,.257);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:1px solid #b1b4b6;border-left-width:0;border-right-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#f3f2f1}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:none}@media (-ms-high-contrast:active),(forced-colors:active){.autocomplete__menu{border-color:FieldText}.autocomplete__option{background-color:Field;color:FieldText}.autocomplete__option--focused,.autocomplete__option:hover{background-color:Highlight;background-color:SelectedItem;border-color:SelectedItem;color:HighlightText;color:SelectedItemText;forced-color-adjust:none;outline-color:SelectedItemText}}.autocomplete__option--no-results{background-color:#f3f2f1;color:#505a5f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:1rem;font-weight:400}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:1.1875rem;line-height:1.3157894737}}.autocomplete__hint,.autocomplete__input,.autocomplete__option,.autocomplete__wrapper{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:1rem;font-weight:400;line-height:1.25}@media print{.autocomplete__hint,.autocomplete__input,.autocomplete__option,.autocomplete__wrapper{font-family:sans-serif}}@media (min-width:40.0625em){.autocomplete__hint,.autocomplete__input,.autocomplete__option,.autocomplete__wrapper{font-size:1.1875rem;line-height:1.3157894737}}@media print{.autocomplete__hint,.autocomplete__input,.autocomplete__option,.autocomplete__wrapper{font-size:14pt;line-height:1.15}}.govuk-form-group--error div:has(+.govuk-select--error[data-module=hmrc-accessible-autocomplete])>.autocomplete__wrapper .autocomplete__input{border-color:#d4351c}.autocomplete__dropdown-arrow-down{pointer-events:none;z-index:0}
2
- /*# sourceMappingURL=maps/accessible-autocomplete-6.117.0.css.map */
1
+ .autocomplete__wrapper{position:relative}.autocomplete__hint,.autocomplete__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:2px solid #0b0c0c;border-radius:0;-webkit-box-sizing:border-box;box-sizing:border-box;height:2.5rem;line-height:1.25;margin-bottom:0;width:100%}.autocomplete__input{background-color:transparent;position:relative}.autocomplete__hint{color:#505a5f;position:absolute}.autocomplete__input--default{padding:5px}.autocomplete__input--focused{-webkit-box-shadow:inset 0 0 0 2px;box-shadow:inset 0 0 0 2px;outline:3px solid #fd0;outline-offset:0}.autocomplete__input--show-all-values{cursor:pointer;padding:5px 35px 5px 5px}.autocomplete__dropdown-arrow-down{display:inline-block;height:24px;position:absolute;right:8px;top:10px;width:24px;z-index:-1}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{-webkit-box-shadow:0 2px 6px rgba(0,0,0,.257);box-shadow:0 2px 6px rgba(0,0,0,.257);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:1px solid #b1b4b6;border-left-width:0;border-right-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#f3f2f1}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:none}@media (-ms-high-contrast:active),(forced-colors:active){.autocomplete__menu{border-color:FieldText}.autocomplete__option{background-color:Field;color:FieldText}.autocomplete__option--focused,.autocomplete__option:hover{background-color:Highlight;background-color:SelectedItem;border-color:SelectedItem;color:HighlightText;color:SelectedItemText;forced-color-adjust:none;outline-color:SelectedItemText}}.autocomplete__option--no-results{background-color:#f3f2f1;color:#505a5f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:1rem;font-weight:400}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:1.1875rem;line-height:1.3157894737}}.autocomplete__hint,.autocomplete__input,.autocomplete__option,.autocomplete__wrapper{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:1.1875rem;font-weight:400;line-height:1.3157894737}@media print{.autocomplete__hint,.autocomplete__input,.autocomplete__option,.autocomplete__wrapper{font-family:sans-serif;font-size:14pt;line-height:1.15}}.govuk-form-group--error div:has(+.govuk-select--error[data-module=hmrc-accessible-autocomplete])>.autocomplete__wrapper .autocomplete__input{border-color:#d4351c}.autocomplete__dropdown-arrow-down{pointer-events:none;z-index:0}
2
+ /*# sourceMappingURL=maps/accessible-autocomplete-7.0.0.css.map */
package/hmrc/all.js CHANGED
@@ -4,113 +4,6 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.HMRCFrontend = factory());
5
5
  })(this, (function () { 'use strict';
6
6
 
7
- // Returns a function, that, as long as it continues to be invoked, will not
8
- // be triggered. The function will be called after it stops being called for
9
- // N milliseconds. If `immediate` is passed, trigger the function on the
10
- // leading edge, instead of the trailing.
11
-
12
- // eslint-disable-next-line import/prefer-default-export
13
- function debounce(func, wait, immediate) {
14
- var _this = this;
15
- var timeout;
16
- return function () {
17
- for (var _len = arguments.length, theParams = new Array(_len), _key = 0; _key < _len; _key++) {
18
- theParams[_key] = arguments[_key];
19
- }
20
- var context = _this;
21
- var later = function later() {
22
- timeout = null;
23
- func.apply(context, theParams);
24
- };
25
- clearTimeout(timeout);
26
- timeout = setTimeout(later, wait);
27
- };
28
- }
29
-
30
- // TODO
31
- // Retrieve breakpoints from Sass vars?
32
- var breakpoints = {
33
- xs: 0,
34
- mobile: 320,
35
- tablet: 641,
36
- desktop: 769
37
- };
38
- function getCurrentBreakpoint(windowWidth) {
39
- var reducer = function reducer(acc, curr) {
40
- var windowInsideBreakpoint = (windowWidth || window.innerWidth) >= breakpoints[curr];
41
- return windowInsideBreakpoint ? curr : acc;
42
- };
43
- return Object.keys(breakpoints).reduce(reducer);
44
- }
45
-
46
- var isSmall = function isSmall(element) {
47
- return element.innerWidth <= 768;
48
- };
49
- function AccountMenu($module) {
50
- this.$module = document.querySelector($module);
51
- this.$moduleBottomMargin = this.$module.style.marginBottom;
52
- this.$mainNav = this.$module.querySelector('.hmrc-account-menu__main');
53
- this.$showNavLinkMobile = this.$module.querySelector('.hmrc-account-menu__link--menu');
54
- this.$currentBreakpoint = getCurrentBreakpoint();
55
- }
56
- AccountMenu.prototype.init = function init() {
57
- this.setup();
58
- this.$showNavLinkMobile.addEventListener('click', this.eventHandlers.showNavLinkMobileClick.bind(this));
59
- window.addEventListener('resize', debounce(this.reinstantiate.bind(this)));
60
- };
61
- AccountMenu.prototype.reinstantiate = function reinstantiate(resizeEvent) {
62
- var newBreakpoint = getCurrentBreakpoint(resizeEvent.target.innerWidth);
63
- var hasCrossedBreakpoint = this.$currentBreakpoint !== newBreakpoint;
64
- if (hasCrossedBreakpoint) {
65
- this.$currentBreakpoint = newBreakpoint;
66
- this.setup();
67
- }
68
- };
69
- AccountMenu.prototype.eventHandlers = {
70
- showNavLinkMobileClick: function showNavLinkMobileClick(event) {
71
- event.preventDefault();
72
- if (isSmall(window)) {
73
- if (this.$mainNav.classList.contains('main-nav-is-open')) {
74
- this.hideMainNavMobile(event.currentTarget);
75
- } else {
76
- this.showMainNavMobile();
77
- }
78
- }
79
- }
80
- };
81
- AccountMenu.prototype.setup = function setup() {
82
- if (isSmall(window)) {
83
- this.$module.classList.add('is-smaller');
84
- this.$showNavLinkMobile.setAttribute('aria-hidden', 'false');
85
- this.$showNavLinkMobile.removeAttribute('tabindex');
86
- this.$showNavLinkMobile.classList.remove('js-hidden');
87
- this.hideMainNavMobile(this.$showNavLinkMobile);
88
- } else {
89
- this.$module.classList.remove('is-smaller');
90
- this.$mainNav.classList.remove('main-nav-is-open', 'js-hidden');
91
- this.$showNavLinkMobile.setAttribute('aria-hidden', 'true');
92
- this.$showNavLinkMobile.setAttribute('tabindex', '-1');
93
- this.$showNavLinkMobile.classList.add('js-hidden');
94
- }
95
- };
96
- AccountMenu.prototype.showMainNavMobile = function showMainNavMobile() {
97
- // TODO: shall we add main-nav-is-open to `nav`????
98
- this.$mainNav.classList.remove('js-hidden');
99
- this.$mainNav.classList.add('main-nav-is-open');
100
- this.$mainNav.setAttribute('aria-expanded', 'true');
101
- this.$showNavLinkMobile.setAttribute('aria-expanded', 'true');
102
- this.$showNavLinkMobile.classList.add('hmrc-account-home--account--is-open');
103
- };
104
- AccountMenu.prototype.hideMainNavMobile = function hideMainNavMobile(element) {
105
- this.$mainNav.classList.remove('main-nav-is-open');
106
- this.$mainNav.setAttribute('aria-expanded', 'false');
107
- if (element.classList.contains('hmrc-account-menu__link--menu')) {
108
- this.$mainNav.classList.add('js-hidden');
109
- this.$showNavLinkMobile.setAttribute('aria-expanded', 'false');
110
- this.$showNavLinkMobile.classList.remove('hmrc-account-home--account--is-open');
111
- }
112
- };
113
-
114
7
  function BackLinkHelper($module, window, document) {
115
8
  this.$module = $module;
116
9
  this.window = window;
@@ -722,12 +615,6 @@
722
615
  console.error('hmrc-frontend component initialisation failed', error);
723
616
  }
724
617
  }
725
- var $AccountMenuSelector = '[data-module="hmrc-account-menu"]';
726
- if (document.querySelector($AccountMenuSelector)) {
727
- logAndIgnoreErrors(function () {
728
- new AccountMenu($AccountMenuSelector).init();
729
- });
730
- }
731
618
  var $HmrcPrintLinks = document.querySelectorAll('a[data-module="hmrc-print-link"]');
732
619
  $HmrcPrintLinks.forEach(function ($HmrcPrintLink) {
733
620
  logAndIgnoreErrors(function () {
@@ -757,7 +644,6 @@
757
644
  }
758
645
  var all = {
759
646
  initAll: initAll,
760
- AccountMenu: AccountMenu,
761
647
  TimeoutDialog: TimeoutDialog,
762
648
  UserResearchBanner: UserResearchBanner,
763
649
  BackLinkHelper: BackLinkHelper
@@ -1,13 +1,10 @@
1
- @import "account-menu/account-menu";
1
+ @import "add-to-a-list/add-to-a-list";
2
2
  @import "banner/banner";
3
3
  @import "back-link-helper/back-link-helper";
4
- @import "currency-input/currency-input";
5
4
  @import "notification-badge/notification-badge";
6
5
  @import "page-heading/page-heading";
7
- @import "language-select/language-select";
8
6
  @import "header/header";
9
7
  @import "internal-header/internal-header";
10
- @import "add-to-a-list/add-to-a-list";
11
8
  @import "list-with-actions/list-with-actions";
12
9
  @import "timeout-dialog/timeout-dialog";
13
10
  @import "service-navigation-language-select/service-navigation-language-select";
@@ -1,33 +1,17 @@
1
1
  <div class="hmrc-banner">
2
2
  <div class="hmrc-organisation-logo">
3
- {% if params.useTudorCrown | default(true) %}
4
- <svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="26px" height="26px" viewBox="0 0 45.35 45.35" focusable="false" aria-hidden="true">
5
- <path class="cls-1" d="m28.5,16.6c.82-.34,1.22-1.29.88-2.12-.34-.83-1.3-1.24-2.12-.9-.84.34-1.23,1.31-.89,2.14.34.83,1.3,1.23,2.14.88Z"/>
6
- <path class="cls-1" d="m22.06,19.36c-.84.34-1.23,1.31-.89,2.14.34.83,1.3,1.23,2.14.88.82-.34,1.22-1.29.88-2.12-.34-.83-1.3-1.24-2.12-.9Z"/>
7
- <path class="cls-1" d="m32.86,19.2c.82-.34,1.22-1.29.88-2.12-.34-.83-1.3-1.24-2.12-.9-.84.34-1.23,1.31-.89,2.14.34.83,1.3,1.23,2.14.88Z"/>
8
- <path class="cls-1" d="m33.62,22.63c.34.83,1.3,1.23,2.14.88.82-.34,1.22-1.29.88-2.12-.34-.83-1.3-1.24-2.12-.9-.84.34-1.23,1.31-.89,2.14Z"/>
9
- <path class="cls-1" d="m21.81,11.4c.06.08.13.15.21.21l-1.19,3.58s0,0,0,.01h0s0,0,0,0c-.06.18-.09.37-.09.56,0,.97.71,1.77,1.64,1.9.01,0,.03,0,.04,0,.08.01.16.02.24.02h0c.08,0,.16,0,.24-.02.01,0,.03,0,.04,0,.93-.14,1.64-.94,1.64-1.9,0-.2-.03-.39-.08-.56h0s0,0,0,0c0,0,0,0,0-.01l-1.19-3.58c.08-.06.15-.13.21-.21h0s2.06,1.08,2.06,1.08v-3.04l-2.06.65h0c-.06-.08-.12-.15-.2-.21h0s.83-2.62.83-2.62h-1.49s-1.49,0-1.49,0l.83,2.61h0c-.08.06-.14.13-.2.21h0s-2.06-.65-2.06-.65v3.04l2.06-1.08h0Z"/>
10
- <path class="cls-1" d="m16.83,16.6c.84.35,1.79-.05,2.14-.88.34-.83-.05-1.79-.89-2.14-.82-.34-1.78.07-2.12.9-.34.83.05,1.78.88,2.12Z"/>
11
- <path class="cls-1" d="m12.46,19.2c.84.35,1.79-.05,2.14-.88.34-.83-.05-1.79-.89-2.14-.82-.34-1.78.07-2.12.9-.34.83.05,1.78.88,2.12Z"/>
12
- <path class="cls-1" d="m9.57,23.51c.84.35,1.79-.05,2.14-.88.34-.83-.05-1.79-.89-2.14-.82-.34-1.78.07-2.12.9-.34.83.05,1.78.88,2.12Z"/>
13
- <path class="cls-1" d="m34.61,25.35c.22,1.12.26,1.65,0,2.37-.37-.36-.71-1.01-.98-2.02l-1.07,3.57c.65-.45,1.16-.74,1.73-.75-1.02,2.2-2.3,2.77-3.12,2.61-1.01-.19-1.47-1.09-1.32-1.85.23-1.08,1.34-1.36,1.86-.11.99-2.02-.69-2.65-1.77-2.05,1.66-1.66,1.85-3.13.51-4.92-1.87,1.43-1.89,2.84-1.05,4.84-1.09-1.25-2.79-.58-2.18,1.44.79-1.22,1.83-.45,1.67.71-.14,1.01-1.47,1.82-3.13,1.68-2.38-.22-2.52-1.86-2.58-3.21.58-.11,1.64.43,2.53,1.69l.33-3.79c-.98,1.02-1.86,1.21-2.85,1.24.33-1.02,1.84-2.7,1.84-2.7h-4.73s1.51,1.68,1.84,2.7c-.99-.03-1.87-.22-2.85-1.24l.33,3.79c.9-1.26,1.95-1.8,2.53-1.69-.06,1.36-.2,3-2.58,3.21-1.66.14-2.99-.67-3.13-1.68-.16-1.16.88-1.92,1.67-.71.61-2.02-1.09-2.69-2.18-1.44.84-1.99.82-3.41-1.05-4.84-1.34,1.78-1.15,3.26.51,4.92-1.08-.6-2.76.03-1.77,2.05.52-1.26,1.63-.98,1.86.11.16.76-.31,1.66-1.32,1.85-.83.15-2.1-.41-3.12-2.61.58.01,1.08.3,1.73.75l-1.07-3.57c-.27,1-.62,1.66-.98,2.02-.25-.72-.21-1.25,0-2.37l-2.21.79c1.18,1.6,2.31,3.86,3.25,7.79,3.29-.47,6.99-.74,10.9-.74s7.61.26,10.9.74c.94-3.93,2.07-6.19,3.25-7.79l-2.21-.79Z"/>
14
- <path class="cls-1" d="m22.68.57C10.47.57.57,10.47.57,22.68s9.9,22.11,22.11,22.11,22.11-9.9,22.11-22.11S34.89.57,22.68.57Zm0,41.69c-10.81,0-19.58-8.77-19.58-19.58S11.86,3.1,22.68,3.1s19.58,8.77,19.58,19.58-8.77,19.58-19.58,19.58Z"/>
15
- </svg>
16
- {% else %}
17
- <svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="26px" height="26px" viewBox="0 0 134.94 134.94" focusable="false" aria-hidden="true">
18
- <path d="M104.32,73.72,101,73.29c.94-2,1.51-3.22,1.51-3.22,0-.38,1.11-2.22,1.53-3.73a19.94,19.94,0,0,0,.61-3.89,15.05,15.05,0,0,0-3.68-10.06,12.21,12.21,0,0,0-9.18-4.18,17.46,17.46,0,0,0-3.68.44c-2.09.52-3.08.81-4.93,1.29a51.13,51.13,0,0,0-8.85,3.61,1.37,1.37,0,0,0-.73.91,2,2,0,0,0-.07.53L73.31,71.6H70.53V53.46a4.05,4.05,0,0,1,.18-1.14,3.37,3.37,0,0,1,1.43-1.71c.6-.39,1.21-.75,1.82-1.08a2.49,2.49,0,1,1,3.87-2.07c0,.12,0,.25,0,.37l.16-.06c.55-.19,1.16-.37,1.75-.55a2.49,2.49,0,1,1,3.71-2.16,2.66,2.66,0,0,1-.3,1.16l2.06-.56.36-.08a2.49,2.49,0,1,1,3.87-2.07A2.42,2.42,0,0,1,89,44.82h.06a16.43,16.43,0,0,1,2.72-.18,2.45,2.45,0,0,1-.48-1.45,2.49,2.49,0,1,1,5,0,2.46,2.46,0,0,1-.89,1.89A16.46,16.46,0,0,1,98.1,46a2.41,2.41,0,0,1-.12-.72,2.5,2.5,0,1,1,3,2.44,16.7,16.7,0,0,1,2.12,1.91v-.08a2.49,2.49,0,1,1,2.49,2.49,2.15,2.15,0,0,1-.68-.11,18.34,18.34,0,0,1,1.25,2.26,2.49,2.49,0,0,1,4.55,1.4,2.5,2.5,0,0,1-2.49,2.5,2.64,2.64,0,0,1-.8-.15,20.9,20.9,0,0,1,.35,2.1,2.52,2.52,0,0,1,1-.19,2.49,2.49,0,1,1,0,5,2.59,2.59,0,0,1-1.07-.25c0,.26-.08.54-.11.82s-.14.55-.21.78a2.49,2.49,0,0,1-.32,5,2.39,2.39,0,0,1-1.39-.43c-.34.8-.78,1.83-1.27,3" />
19
- <path d="M67.45,71.79a2.39,2.39,0,1,1,0-4.78h0a2.39,2.39,0,0,1,0,4.78Z" />
20
- <path d="M67.47,66a2.28,2.28,0,1,0,0-4.56h0a2.28,2.28,0,0,0,0,4.56Z" />
21
- <path d="M67.45,60.39a2.18,2.18,0,0,1,0-4.35h0a2.18,2.18,0,0,1,0,4.35Z" />
22
- <path d="M67.47,50.17a2,2,0,0,0,0-4.09h0a2,2,0,1,0,0,4.09Z" />
23
- <path d="M67.45,55.13a2.08,2.08,0,0,1,0-4.15h0a2.08,2.08,0,0,1,0,4.15Z" />
24
- <path d="M74.67,22.23a.47.47,0,0,0-.46-.34.49.49,0,0,0-.49.34c-.47,1.83-1.41,3.55-5,3.86A6.43,6.43,0,0,1,70,22.5,5.37,5.37,0,0,1,73,21a.45.45,0,0,0,.3-.13.42.42,0,0,0,.1-.33.44.44,0,0,0-.14-.33.44.44,0,0,0-.29-.1H62a.44.44,0,0,0-.29.1.41.41,0,0,0-.14.33.46.46,0,0,0,.1.33A.47.47,0,0,0,62,21a5.37,5.37,0,0,1,3,1.51,6.43,6.43,0,0,1,1.28,3.59c-3.59-.31-4.53-2-5-3.86a.5.5,0,0,0-.49-.34.47.47,0,0,0-.46.34v10a.45.45,0,0,0,.51.42.46.46,0,0,0,.49-.29l0-.05a6.1,6.1,0,0,1,5-3.77,6.37,6.37,0,0,1-1.31,3.73A5.13,5.13,0,0,1,62,33.78h0a.64.64,0,0,0-.26.13.49.49,0,0,0-.1.35.37.37,0,0,0,.14.31.6.6,0,0,0,.32.12H72.89a.6.6,0,0,0,.32-.12.39.39,0,0,0,.14-.31.44.44,0,0,0-.1-.35.64.64,0,0,0-.26-.13h0A5.1,5.1,0,0,1,70,32.29a6.37,6.37,0,0,1-1.31-3.73,6.1,6.1,0,0,1,5,3.77v.05a.49.49,0,0,0,.5.29.45.45,0,0,0,.51-.42v-10Z" />
25
- <path d="M67.47,45.72a5.29,5.29,0,1,0,0-10.57h0a5.29,5.29,0,1,0,0,10.57Z" />
26
- <path d="M29.33,70.72a2.39,2.39,0,0,1-1.39.43,2.49,2.49,0,0,1-.32-5c-.07-.23-.13-.49-.21-.78s-.08-.56-.12-.82a2.51,2.51,0,0,1-1.07.25,2.49,2.49,0,0,1,0-5,2.35,2.35,0,0,1,1,.19c.08-.72.2-1.41.34-2.1a2.31,2.31,0,0,1-.79.15,2.5,2.5,0,1,1,2.06-3.9A18.34,18.34,0,0,1,30,51.94a2.15,2.15,0,0,1-.68.11,2.49,2.49,0,1,1,2.49-2.49v.08A16.12,16.12,0,0,1,34,47.73a2.49,2.49,0,1,1,3-2.43,2.23,2.23,0,0,1-.13.72,14.4,14.4,0,0,1,2.7-.94,2.49,2.49,0,1,1,4.09-1.9,2.45,2.45,0,0,1-.48,1.45,16.43,16.43,0,0,1,2.72.18h0a2.53,2.53,0,0,1-.37-1.31,2.49,2.49,0,1,1,3.87,2.07l.36.09,2.06.55a2.53,2.53,0,0,1-.3-1.16,2.49,2.49,0,1,1,5,0,2.46,2.46,0,0,1-1.27,2.15c.59.19,1.2.37,1.76.56l.15.06c0-.12,0-.25,0-.37A2.5,2.5,0,1,1,61,49.53c.61.33,1.22.69,1.82,1.08a3.37,3.37,0,0,1,1.43,1.71,3.66,3.66,0,0,1,.18,1.14V71.6H61.6L61.42,55a1.56,1.56,0,0,0-.07-.53,1.4,1.4,0,0,0-.73-.91,51.17,51.17,0,0,0-8.86-3.61c-1.84-.48-2.84-.77-4.93-1.29a17.33,17.33,0,0,0-3.67-.44A12.21,12.21,0,0,0,34,52.39,15.05,15.05,0,0,0,30.3,62.45a19.75,19.75,0,0,0,.61,3.88c.42,1.52,1.48,3.36,1.53,3.74,0,0,.57,1.18,1.51,3.22l-3.35.43c-.49-1.17-.93-2.2-1.27-3" />
27
- <path d="M91.11,94.65A1.45,1.45,0,0,1,89.58,96l-7.89-.42a1.47,1.47,0,0,1-1.39-1.53L80.37,93a1.44,1.44,0,0,1,1.53-1.38l7.89.42a1.45,1.45,0,0,1,1.39,1.52Zm-20.47-1-2.81,2.81a.57.57,0,0,1-.36.16h0a.57.57,0,0,1-.36-.16l-2.82-2.81a.56.56,0,0,1,0-.81L67.09,90a.57.57,0,0,1,.36-.16h0a.57.57,0,0,1,.36.16l2.81,2.81a.55.55,0,0,1,0,.81m-17.41,2L45.34,96a1.45,1.45,0,0,1-1.53-1.37l-.07-1.13A1.46,1.46,0,0,1,45.13,92L53,91.58A1.45,1.45,0,0,1,54.55,93l.07,1.11a1.47,1.47,0,0,1-1.39,1.53m53.32-19.89a1.65,1.65,0,0,0-1.14-.66L100,74.32a.43.43,0,0,0-.43.39.45.45,0,0,0,.28.54h0a7,7,0,0,1,4,6.41c-3.92-.81-4.9-2.82-5.15-5.6,0-.12-.11-.33-.44-.36a.46.46,0,0,0-.49.25v0L96.24,88v0a.48.48,0,0,0,.91.16A7,7,0,0,1,103.5,84a8,8,0,0,1-5.59,5.74h0c-2-.22-4.09-.41-6.18-.59a5.1,5.1,0,0,1-4-4.14,3.86,3.86,0,0,1,.21-1c.51-1.36,1.49-2.25,2.58-1.85s1.26,1.72.76,3.07a3.58,3.58,0,0,1-.89,1.37A3.58,3.58,0,0,0,93.51,85c1.39-2,1.23-5-.94-6.27-1.42-.83-3.38.13-4.87,2,.45-2.93,2.23-5.52,2.43-7.78.29-3.19-.94-6.74-2.69-7.71-1.82.67-3.48,4-3.64,7.13-.1,2.27,1.43,5.26,1.51,8.25-1.23-2.13-3.1-3.4-4.63-2.76-2.32.94-2.91,3.94-1.8,6.09a3.67,3.67,0,0,0,2.85,2,3.45,3.45,0,0,1-.7-1.48c-.31-1.42,0-2.67,1.17-2.94s2,.76,2.3,2.18a3.64,3.64,0,0,1,0,1.31h0C83.65,87.2,82,87.94,80,88.44q-3.09-.14-6.23-.2h0l-.22,0c-2.94-.48-4.43-2.35-4.73-5.87a6.85,6.85,0,0,1,5.53,4.22.56.56,0,0,0,.55.35.48.48,0,0,0,.54-.44V75.35a.51.51,0,0,0-.5-.36.56.56,0,0,0-.51.33h0v0c-.52,2-1.58,4-5.61,4.3.33-3.93,2.12-5.13,4.74-5.7a.43.43,0,0,0,.3-.14.48.48,0,0,0,.13-.32v0a.52.52,0,0,0-.16-.35.5.5,0,0,0-.3-.11H61.41a.5.5,0,0,0-.3.11.57.57,0,0,0-.17.35v0a.48.48,0,0,0,.13.32.46.46,0,0,0,.31.14c2.61.57,4.41,1.77,4.74,5.7-4-.33-5.1-2.26-5.61-4.3v0h0A.56.56,0,0,0,60,75a.5.5,0,0,0-.5.36v11.1a.48.48,0,0,0,.54.44.53.53,0,0,0,.54-.35,6.87,6.87,0,0,1,5.54-4.22c-.3,3.52-1.79,5.39-4.73,5.87l-.23,0h0c-2.08,0-4.16.11-6.22.2-2-.5-3.66-1.24-4.56-3.37h0a3.43,3.43,0,0,1,.05-1.31c.31-1.42,1.16-2.42,2.3-2.18s1.47,1.52,1.17,2.94A3.69,3.69,0,0,1,53.2,86,3.67,3.67,0,0,0,56,84c1.1-2.15.52-5.15-1.8-6.09-1.54-.64-3.41.63-4.63,2.76.08-3,1.61-6,1.51-8.25-.16-3.18-1.82-6.46-3.64-7.13-1.75,1-3,4.52-2.69,7.71.2,2.26,2,4.85,2.43,7.78-1.49-1.86-3.46-2.82-4.87-2C40.18,80,40,83.07,41.41,85a3.58,3.58,0,0,0,3.08,1.63,3.58,3.58,0,0,1-.89-1.37c-.51-1.35-.39-2.64.76-3.07s2.07.49,2.58,1.85a3.86,3.86,0,0,1,.21,1,5.11,5.11,0,0,1-4,4.14c-2.07.18-4.13.37-6.17.59h0A8,8,0,0,1,31.42,84a7,7,0,0,1,6.35,4.12.45.45,0,0,0,.53.27.45.45,0,0,0,.38-.43v0L37.19,76v0a.47.47,0,0,0-.5-.25c-.32,0-.44.24-.44.36C36,78.83,35,80.84,31.1,81.65a7,7,0,0,1,4-6.41h0a.45.45,0,0,0,.28-.54.43.43,0,0,0-.43-.39l-5.46.73a1.65,1.65,0,0,0-1.14.66,1.84,1.84,0,0,0-.26,1.44c.14.81,1.79,12.39,1.94,13.45,0,.1.15,1.18.19,1.5a1.36,1.36,0,0,0,.48.67s2.42,1.64,2.84,2a.74.74,0,0,1,.18.86l-2.15,3.14a2,2,0,0,0-.26.42,1.19,1.19,0,0,0,.39,1.34H103.2a1.19,1.19,0,0,0,.39-1.34,2,2,0,0,0-.26-.42l-2.15-3.14a.75.75,0,0,1,.17-.86c.43-.33,2.85-2,2.85-2a1.36,1.36,0,0,0,.48-.67c0-.32.17-1.4.18-1.5.16-1.06,1.81-12.64,2-13.45a1.84,1.84,0,0,0-.26-1.44" />
28
- <path d="M67.47,7.72a59.76,59.76,0,1,0,59.75,59.75A59.75,59.75,0,0,0,67.47,7.72m67.47,59.75A67.47,67.47,0,1,1,67.47,0a67.47,67.47,0,0,1,67.47,67.47" />
29
- </svg>
30
- {% endif %}
3
+ <svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="26px" height="26px" viewBox="0 0 45.35 45.35" focusable="false" aria-hidden="true">
4
+ <path class="cls-1" d="m28.5,16.6c.82-.34,1.22-1.29.88-2.12-.34-.83-1.3-1.24-2.12-.9-.84.34-1.23,1.31-.89,2.14.34.83,1.3,1.23,2.14.88Z"/>
5
+ <path class="cls-1" d="m22.06,19.36c-.84.34-1.23,1.31-.89,2.14.34.83,1.3,1.23,2.14.88.82-.34,1.22-1.29.88-2.12-.34-.83-1.3-1.24-2.12-.9Z"/>
6
+ <path class="cls-1" d="m32.86,19.2c.82-.34,1.22-1.29.88-2.12-.34-.83-1.3-1.24-2.12-.9-.84.34-1.23,1.31-.89,2.14.34.83,1.3,1.23,2.14.88Z"/>
7
+ <path class="cls-1" d="m33.62,22.63c.34.83,1.3,1.23,2.14.88.82-.34,1.22-1.29.88-2.12-.34-.83-1.3-1.24-2.12-.9-.84.34-1.23,1.31-.89,2.14Z"/>
8
+ <path class="cls-1" d="m21.81,11.4c.06.08.13.15.21.21l-1.19,3.58s0,0,0,.01h0s0,0,0,0c-.06.18-.09.37-.09.56,0,.97.71,1.77,1.64,1.9.01,0,.03,0,.04,0,.08.01.16.02.24.02h0c.08,0,.16,0,.24-.02.01,0,.03,0,.04,0,.93-.14,1.64-.94,1.64-1.9,0-.2-.03-.39-.08-.56h0s0,0,0,0c0,0,0,0,0-.01l-1.19-3.58c.08-.06.15-.13.21-.21h0s2.06,1.08,2.06,1.08v-3.04l-2.06.65h0c-.06-.08-.12-.15-.2-.21h0s.83-2.62.83-2.62h-1.49s-1.49,0-1.49,0l.83,2.61h0c-.08.06-.14.13-.2.21h0s-2.06-.65-2.06-.65v3.04l2.06-1.08h0Z"/>
9
+ <path class="cls-1" d="m16.83,16.6c.84.35,1.79-.05,2.14-.88.34-.83-.05-1.79-.89-2.14-.82-.34-1.78.07-2.12.9-.34.83.05,1.78.88,2.12Z"/>
10
+ <path class="cls-1" d="m12.46,19.2c.84.35,1.79-.05,2.14-.88.34-.83-.05-1.79-.89-2.14-.82-.34-1.78.07-2.12.9-.34.83.05,1.78.88,2.12Z"/>
11
+ <path class="cls-1" d="m9.57,23.51c.84.35,1.79-.05,2.14-.88.34-.83-.05-1.79-.89-2.14-.82-.34-1.78.07-2.12.9-.34.83.05,1.78.88,2.12Z"/>
12
+ <path class="cls-1" d="m34.61,25.35c.22,1.12.26,1.65,0,2.37-.37-.36-.71-1.01-.98-2.02l-1.07,3.57c.65-.45,1.16-.74,1.73-.75-1.02,2.2-2.3,2.77-3.12,2.61-1.01-.19-1.47-1.09-1.32-1.85.23-1.08,1.34-1.36,1.86-.11.99-2.02-.69-2.65-1.77-2.05,1.66-1.66,1.85-3.13.51-4.92-1.87,1.43-1.89,2.84-1.05,4.84-1.09-1.25-2.79-.58-2.18,1.44.79-1.22,1.83-.45,1.67.71-.14,1.01-1.47,1.82-3.13,1.68-2.38-.22-2.52-1.86-2.58-3.21.58-.11,1.64.43,2.53,1.69l.33-3.79c-.98,1.02-1.86,1.21-2.85,1.24.33-1.02,1.84-2.7,1.84-2.7h-4.73s1.51,1.68,1.84,2.7c-.99-.03-1.87-.22-2.85-1.24l.33,3.79c.9-1.26,1.95-1.8,2.53-1.69-.06,1.36-.2,3-2.58,3.21-1.66.14-2.99-.67-3.13-1.68-.16-1.16.88-1.92,1.67-.71.61-2.02-1.09-2.69-2.18-1.44.84-1.99.82-3.41-1.05-4.84-1.34,1.78-1.15,3.26.51,4.92-1.08-.6-2.76.03-1.77,2.05.52-1.26,1.63-.98,1.86.11.16.76-.31,1.66-1.32,1.85-.83.15-2.1-.41-3.12-2.61.58.01,1.08.3,1.73.75l-1.07-3.57c-.27,1-.62,1.66-.98,2.02-.25-.72-.21-1.25,0-2.37l-2.21.79c1.18,1.6,2.31,3.86,3.25,7.79,3.29-.47,6.99-.74,10.9-.74s7.61.26,10.9.74c.94-3.93,2.07-6.19,3.25-7.79l-2.21-.79Z"/>
13
+ <path class="cls-1" d="m22.68.57C10.47.57.57,10.47.57,22.68s9.9,22.11,22.11,22.11,22.11-9.9,22.11-22.11S34.89.57,22.68.57Zm0,41.69c-10.81,0-19.58-8.77-19.58-19.58S11.86,3.1,22.68,3.1s19.58,8.77,19.58,19.58-8.77,19.58-19.58,19.58Z"/>
14
+ </svg>
31
15
  <p class="govuk-body-s">{% if params.language == 'cy' %}
32
16
  Cyllid a Thollau EF
33
17
  {% else %}
@@ -1,4 +1,5 @@
1
1
  {% from "govuk/components/footer/macro.njk" import govukFooter %}
2
+ {% from "govuk/macros/attributes.njk" import govukAttributes %}
2
3
 
3
4
  {% set contentLicenceHtml -%}
4
5
  {% if(params.language == 'cy') %}Mae‘r holl gynnwys ar gael o dan {% else %}All content is available under the {% endif %}
@@ -15,22 +16,23 @@
15
16
 
16
17
  {% set defaultMetaVisuallyHiddenTitle = "Cysylltiadau cymorth" if params.language == "cy" else "Support links" %}
17
18
 
18
- {{ govukFooter({
19
- meta: {
20
- visuallyHiddenTitle: params.meta.visuallyHiddenTitle | default(defaultMetaVisuallyHiddenTitle),
21
- html: params.meta.html,
22
- text: params.meta.text,
23
- items: params.meta.items
24
- } if params.meta,
25
- navigation: params.navigation,
26
- contentLicence: {
27
- html: contentLicenceHtml
28
- },
29
- copyright: {
30
- html: copyrightHtml
31
- },
32
- containerClasses: params.containerClasses,
33
- classes: params.classes,
34
- attributes: params.attributes,
35
- rebrand: params.rebrand
36
- }) }}
19
+ <footer class="govuk-template__footer {%- if params.footerClasses %} {{ params.footerClasses }}{% endif %}" {{- govukAttributes(params.footerAttributes)}}>
20
+ {{ govukFooter({
21
+ meta: {
22
+ visuallyHiddenTitle: params.meta.visuallyHiddenTitle | default(defaultMetaVisuallyHiddenTitle),
23
+ html: params.meta.html,
24
+ text: params.meta.text,
25
+ items: params.meta.items
26
+ } if params.meta,
27
+ navigation: params.navigation,
28
+ contentLicence: {
29
+ html: contentLicenceHtml
30
+ },
31
+ copyright: {
32
+ html: copyrightHtml
33
+ },
34
+ containerClasses: params.containerClasses,
35
+ classes: params.classes,
36
+ attributes: params.attributes
37
+ }) }}
38
+ </footer>
@@ -2,222 +2,52 @@
2
2
  $govuk-header-link-underline-thickness: 3px;
3
3
 
4
4
  .hmrc-header.hmrc-header--with-additional-navigation {
5
- .govuk-header__service-name {
6
- float: left;
7
- }
5
+ @include govuk-clearfix;
8
6
 
9
- .govuk-header__navigation-list {
10
- clear: left;
7
+ .govuk-header__logo {
8
+ display: inline-block;
11
9
  }
12
10
 
13
11
  .hmrc-sign-out-nav {
14
12
  float: right;
15
- margin-bottom: 10px;
16
-
17
- @include govuk-media-query($from: desktop) {
18
- padding-top: 10px;
19
-
20
- .govuk-template--rebranded & {
21
- padding-top: 29px;
22
- }
23
- }
24
-
25
- .govuk-template--rebranded & {
26
- margin-bottom: 15px;
27
- }
28
- }
29
-
30
- .govuk-header__navigation + .hmrc-sign-out-nav {
31
- padding-top: 4px;
32
-
33
- @include govuk-media-query($from: tablet) {
34
- padding-top: 10px;
35
- }
36
-
37
- @include govuk-media-query($from: desktop) {
38
- padding-top: 0;
39
- }
13
+ margin-left: 10px;
40
14
  }
41
15
 
42
16
  .hmrc-sign-out-nav__link {
17
+ @include govuk-link-common;
18
+ @include govuk-link-style-inverse;
19
+
20
+ position: relative;
21
+ display: inline-block;
22
+ padding: 22px 15px;
23
+ font-weight: 700;
43
24
  color: govuk-colour("white");
44
- font-weight: bold;
45
25
  text-decoration: none;
46
- margin-left: 10px;
47
-
48
- &:hover {
49
- text-decoration: underline;
50
- }
51
26
 
52
27
  &:focus {
53
- color: #0b0c0c;
28
+ -webkit-box-shadow: 0 0 $govuk-focus-colour;
29
+ box-shadow: 0 0 $govuk-focus-colour;
54
30
  }
55
31
 
56
- .govuk-template--rebranded & {
57
- @include govuk-link-common; // explicit choice to differ from govuk-frontend header links
58
- @include govuk-link-style-inverse;
59
-
60
- font-weight: normal;
61
-
62
- &:hover {
63
- text-decoration-thickness: $govuk-header-link-underline-thickness;
64
- }
65
- }
66
- }
67
-
68
- .hmrc-language-select {
69
- padding-right: govuk-spacing(3);
70
- float: right;
71
-
72
- .govuk-template--rebranded & {
73
- padding-right: 0;
32
+ &::after {
33
+ content: "";
34
+ display: none;
35
+ position: absolute;
36
+ height: $govuk-header-link-underline-thickness;
37
+ right: 15px;
38
+ bottom: 0;
39
+ left: 15px;
40
+ background-color: govuk-colour("white");
74
41
  }
75
42
 
76
- .govuk-list {
77
- margin-bottom: 0;
78
-
79
- .govuk-template--rebranded & {
80
- @include govuk-media-query($from: desktop) {
81
- padding-top: govuk-spacing(3) + 3px; // makes the baseline match gov.uk logo and service name
82
- }
83
- }
84
-
85
- .govuk-header__link {
86
- .govuk-template--rebranded & {
87
- @include govuk-link-common; // explicit choice to differ from govuk-frontend header links
88
- @include govuk-link-style-inverse;
89
-
90
- font-weight: normal;
91
-
92
- &:hover {
93
- text-decoration-thickness: $govuk-header-link-underline-thickness;
94
- }
95
- }
96
- }
97
-
98
- a:not(.govuk-header__link) {
99
- @include govuk-font($size: 16, $weight: "bold");
100
-
101
- color: govuk-colour("mid-grey");
102
- text-decoration: none;
103
-
104
- &:link,
105
- &:hover,
106
- &:visited,
107
- &:focus {
108
- .govuk-template--rebranded & {
109
- font-weight: normal;
110
- color: #ffffff;
111
- }
112
- }
113
- }
43
+ &:hover::after {
44
+ display: block;
114
45
  }
115
46
 
116
- .govuk-header__navigation-item {
117
- display: inline-block;
118
- margin-right: 0;
119
- border-bottom: 0;
120
-
121
- .govuk-template--rebranded & {
122
- padding-top: 0;
123
- padding-bottom: govuk-spacing(2);
124
- }
47
+ &:focus::after {
48
+ display: block;
49
+ background-color: govuk-colour('black');
125
50
  }
126
-
127
- .govuk-header__navigation-item + .govuk-header__navigation-item::before {
128
- content: "|";
129
- padding-right: 2px;
130
- color: govuk-colour("dark-grey");
131
-
132
- .govuk-template--rebranded & {
133
- color: #ffffff50; // is this acceptable? mimics the existing light grey...
134
- }
135
- }
136
- }
137
- }
138
-
139
- .govuk-template--rebranded .hmrc-header.hmrc-header--with-additional-navigation .govuk-header__navigation + .hmrc-language-select .govuk-list {
140
- padding-top: 0;
141
- }
142
-
143
- .hmrc-header__service-name {
144
- display: inline-block;
145
- margin-bottom: govuk-spacing(2);
146
-
147
- @include govuk-font-size($size: 24);
148
- @include govuk-typography-weight-bold;
149
- }
150
-
151
- .hmrc-header__service-name--linked {
152
- @include govuk-link-style-inverse;
153
-
154
- text-decoration: none;
155
-
156
- &:hover {
157
- text-decoration: underline;
158
- text-decoration-thickness: $govuk-header-link-underline-thickness;
159
-
160
- @if $govuk-link-underline-offset {
161
- text-underline-offset: $govuk-link-underline-offset;
162
- }
163
- }
164
-
165
- &:focus {
166
- @include govuk-focused-text;
167
51
  }
168
52
  }
169
53
 
170
- // Shift user research banner up 10px to compensate for govuk header border
171
- // only when adjacent to govuk header
172
- .hmrc-header + .hmrc-user-research-banner {
173
- top: -10px;
174
- }
175
-
176
- // Above style is breaking the user-research-banner when the rebrand is enabled
177
- .govuk-template--rebranded .hmrc-header + .hmrc-user-research-banner {
178
- top: 0;
179
- }
180
-
181
- // Notes on the patches below:
182
- //
183
- // use of :has() and :not() is ok because these
184
- // issues aren't going to be a problem forever
185
- // because people are migrating to use service
186
- // navigation to display their service name and
187
- // navigation items
188
-
189
- // the following block of styles makes sure
190
- // that a service name which spans multiple
191
- // lines won't cause the sign out link to be
192
- // displayed under the service name but will
193
- // be aligned with baseline of its last line
194
-
195
- .hmrc-header:has(.hmrc-sign-out-nav):not(:has(.govuk-header__navigation)) {
196
- .govuk-header__content {
197
- display: -webkit-box;
198
- display: -ms-flexbox;
199
- display: flex;
200
- -webkit-box-align: last baseline;
201
- -ms-flex-align: last baseline;
202
- align-items: last baseline;
203
- }
204
-
205
- .hmrc-sign-out-nav {
206
- -ms-flex-negative: 0;
207
- flex-shrink: 0;
208
- margin-left: auto;
209
- }
210
- }
211
-
212
- // the following stops the menu button from sitting
213
- // immediately to right of service name on smallest
214
- // screens which looks bad and might be an a11y
215
- // issue in terms of mobile touch target sizing.
216
-
217
- .hmrc-header:has(.govuk-header__navigation) {
218
- .govuk-header__service-name {
219
- @include govuk-media-query($until: mobile) {
220
- float: none;
221
- }
222
- }
223
- }