hmrc-frontend 6.7.0 → 6.9.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.
package/hmrc/VERSION.txt CHANGED
@@ -1 +1 @@
1
- 6.7.0
1
+ 6.9.0
@@ -1,2 +1,2 @@
1
1
  .autocomplete__wrapper{position:relative}.autocomplete__hint,.autocomplete__input{-webkit-appearance:none;border:2px solid #0b0c0c;border-radius:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;margin-bottom:0;width:100%}.autocomplete__input{background-color:rgba(0,0,0,0);position:relative}.autocomplete__hint{color:#b1b4b6;position:absolute}.autocomplete__input--default{padding:5px}.autocomplete__input--focused{outline:3px solid #fd0;outline-offset:0;-webkit-box-shadow:inset 0 0 0 2px;box-shadow:inset 0 0 0 2px}.autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.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:rgba(0,0,0,.256863) 0 2px 6px;box-shadow:0 2px 6px rgba(0,0,0,.256863);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-left-width:0;border-bottom:1px solid #b1b4b6;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:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}@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{forced-color-adjust:none;background-color:SelectedItem;border-color:SelectedItem;color:SelectedItemText;outline-color:SelectedItemText}}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:16px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:19px;line-height:1.31579}}.autocomplete__hint,.autocomplete__input,.autocomplete__wrapper{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:1rem;line-height:1.25}@media print{.autocomplete__hint,.autocomplete__input,.autocomplete__wrapper{font-family:sans-serif}}@media (min-width:40.0625em){.autocomplete__hint,.autocomplete__input,.autocomplete__wrapper{font-size:1.1875rem;line-height:1.31579}}@media print{.autocomplete__hint,.autocomplete__input,.autocomplete__wrapper{font-size:14pt;line-height:1.15}}
2
- /*# sourceMappingURL=maps/accessible-autocomplete-6.7.0.css.map */
2
+ /*# sourceMappingURL=maps/accessible-autocomplete-6.9.0.css.map */
package/hmrc/all.js CHANGED
@@ -224,10 +224,6 @@
224
224
  return typeof key === "symbol" ? key : String(key);
225
225
  }
226
226
 
227
- // TODO Remove the ActiveXObject code and test against Edge
228
- // Decision agreed with DIAS to remove the timeout dialog functionality for IE)
229
- /* global ActiveXObject */
230
-
231
227
  var _console = console,
232
228
  warn = _console.warn;
233
229
  var utils = {
@@ -265,7 +261,7 @@
265
261
  }
266
262
  },
267
263
  ajaxGet: function ajaxGet(url, success) {
268
- var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');
264
+ var xhr = new XMLHttpRequest();
269
265
  xhr.open('GET', url);
270
266
  xhr.onreadystatechange = function () {
271
267
  if (xhr.readyState > 3 && xhr.status === 200) success(xhr.responseText);
@@ -57,11 +57,11 @@ $govuk-header-link-underline-thickness: 3px;
57
57
  display: inline-block;
58
58
  margin-bottom: govuk-spacing(2);
59
59
 
60
- @include govuk-font($size: 24, $weight: bold);
60
+ @include govuk-font-size($size: 24);
61
+ @include govuk-typography-weight-bold;
61
62
  }
62
63
 
63
64
  .hmrc-header__service-name--linked {
64
- @include govuk-typography-common;
65
65
  @include govuk-link-style-inverse;
66
66
 
67
67
  text-decoration: none;
@@ -70,7 +70,7 @@ $govuk-header-link-underline-thickness: 3px;
70
70
  text-decoration: underline;
71
71
  text-decoration-thickness: $govuk-header-link-underline-thickness;
72
72
 
73
- @if ($govuk-link-underline-offset) {
73
+ @if $govuk-link-underline-offset {
74
74
  text-underline-offset: $govuk-link-underline-offset;
75
75
  }
76
76
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  {% from "govuk/macros/attributes.njk" import govukAttributes %}
7
7
 
8
- {%- set menuButtonText = 'Dewislen' if language == 'cy' else 'Menu' -%}
8
+ {%- set menuButtonText = params.menuButtonText if params.menuButtonText else ('Dewislen' if language == 'cy' else 'Menu') -%}
9
9
 
10
10
  {%- set _stEdwardsCrown %}
11
11
  <svg
@@ -63,11 +63,11 @@
63
63
  <div class="govuk-header__content">
64
64
  {% if params.serviceName %}
65
65
  {% if params.serviceUrl %}
66
- <a href="{{ params.serviceUrl }}" class="govuk-header__link govuk-header__service-name hmrc-header__service-name hmrc-header__service-name--linked">
66
+ <a href="{{ params.serviceUrl }}" class="govuk-header__link govuk-header__service-name">
67
67
  {{ params.serviceName }}
68
68
  </a>
69
69
  {% else %}
70
- <span class="govuk-header__service-name hmrc-header__service-name">
70
+ <span class="govuk-header__service-name">
71
71
  {{ params.serviceName }}
72
72
  </span>
73
73
  {% endif %}
@@ -1,7 +1,3 @@
1
- // TODO Remove the ActiveXObject code and test against Edge
2
- // Decision agreed with DIAS to remove the timeout dialog functionality for IE)
3
- /* global ActiveXObject */
4
-
5
1
  const { warn } = console;
6
2
 
7
3
  const utils = {
@@ -41,7 +37,7 @@ const utils = {
41
37
  },
42
38
 
43
39
  ajaxGet(url, success) {
44
- const xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');
40
+ const xhr = new XMLHttpRequest();
45
41
  xhr.open('GET', url);
46
42
  xhr.onreadystatechange = () => {
47
43
  if (xhr.readyState > 3 && xhr.status === 200) success(xhr.responseText);