hmrc-frontend 2.3.0 → 2.4.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.
@@ -14,7 +14,7 @@ if (!knownPrototypeKitNames.includes(consumerPackageJson.name)) {
14
14
  }
15
15
 
16
16
  const compatibility = {
17
- 2.3: {
17
+ 2.4: {
18
18
  'prototype-kit': ['9.14', '9.13', '9.12', '9.11', '9.10', '9.9', '9.8', '9.7', '9.6', '9.5', '9.4', '9.3', '9.2', '9.1', '9.0'],
19
19
  },
20
20
  1.38: {
package/hmrc/VERSION.txt CHANGED
@@ -1 +1 @@
1
- 2.3.0
1
+ 2.4.0
@@ -1,3 +1,5 @@
1
+ $govuk-header-link-underline-thickness: 3px;
2
+
1
3
  .hmrc-header.hmrc-header--with-additional-navigation {
2
4
  .govuk-header__link--service-name {
3
5
  float: left;
@@ -53,6 +55,33 @@
53
55
  }
54
56
  }
55
57
 
58
+ .hmrc-header__service-name {
59
+ display: inline-block;
60
+ margin-bottom: govuk-spacing(2);
61
+
62
+ @include govuk-font($size: 24, $weight: bold);
63
+ }
64
+
65
+ .hmrc-header__service-name--linked {
66
+ @include govuk-typography-common;
67
+ @include govuk-link-style-inverse;
68
+
69
+ text-decoration: none;
70
+
71
+ &:hover {
72
+ text-decoration: underline;
73
+ text-decoration-thickness: $govuk-header-link-underline-thickness;
74
+
75
+ @if ($govuk-link-underline-offset) {
76
+ text-underline-offset: $govuk-link-underline-offset;
77
+ }
78
+ }
79
+
80
+ &:focus {
81
+ @include govuk-focused-text;
82
+ }
83
+ }
84
+
56
85
  // Shift user research banner up 10px to compensate for govuk header border
57
86
  // only when adjacent to govuk header
58
87
  .hmrc-header + .hmrc-user-research-banner {
@@ -61,9 +61,10 @@
61
61
  {% if params.serviceName or params.navigation | length or params.signOutHref or params.languageToggle %}
62
62
  <div class="govuk-header__content">
63
63
  {% if params.serviceName %}
64
- <a href="{{ params.serviceUrl }}" class="govuk-header__link govuk-header__link--service-name">
65
- {{ params.serviceName }}
66
- </a>
64
+ {% set serviceNameTag = 'a' if params.serviceUrl else 'span' %}
65
+ <{{ serviceNameTag }} {% if (serviceNameTag == 'a') %}href="{{ params.serviceUrl }}" {% endif %} class="hmrc-header__service-name {% if (serviceNameTag == 'a') %}hmrc-header__service-name--linked{% endif %}">
66
+ {{ params.serviceName }}
67
+ </{{ serviceNameTag }}>
67
68
  {% endif %}
68
69
  {% if params.navigation | length %}
69
70
  <button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" aria-label="Show or hide Top Level Navigation">Menu</button>