hmrc-frontend 6.64.0 → 6.65.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.64.0
1
+ 6.65.0
@@ -1,2 +1,2 @@
1
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:rgba(0,0,0,0);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-weight:400;font-size:1rem;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{z-index:0;pointer-events:none}
2
- /*# sourceMappingURL=maps/accessible-autocomplete-6.64.0.css.map */
2
+ /*# sourceMappingURL=maps/accessible-autocomplete-6.65.0.css.map */
package/hmrc/all.js CHANGED
@@ -500,7 +500,6 @@
500
500
  var $visualMessge = utils.generateDomElementFromStringAndAppendText('<p class="govuk-body hmrc-timeout-dialog__message" aria-hidden="true">', settings.message);
501
501
  $visualMessge.appendChild(document.createTextNode(' '));
502
502
  $visualMessge.appendChild($countdownElement);
503
- $visualMessge.appendChild(document.createTextNode('.'));
504
503
  if (settings.messageSuffix) {
505
504
  $visualMessge.appendChild(document.createTextNode(" ".concat(settings.messageSuffix)));
506
505
  }
@@ -535,16 +534,16 @@
535
534
  var minutes;
536
535
  var visibleMessage;
537
536
  if (counter < 60) {
538
- visibleMessage = "".concat(counter, " ").concat(settings.properties[counter !== 1 ? 'seconds' : 'second']);
537
+ visibleMessage = "".concat(counter, " ").concat(settings.properties[counter !== 1 ? 'seconds' : 'second'], ".");
539
538
  } else {
540
539
  minutes = Math.ceil(counter / 60);
541
- visibleMessage = "".concat(minutes, " ").concat(settings.properties[minutes === 1 ? 'minute' : 'minutes']);
540
+ visibleMessage = "".concat(minutes, " ").concat(settings.properties[minutes === 1 ? 'minute' : 'minutes'], ".");
542
541
  }
543
542
  return visibleMessage;
544
543
  };
545
544
  var getAudibleHumanText = function getAudibleHumanText(counter) {
546
545
  var humanText = getHumanText(roundSecondsUp(counter));
547
- var messageParts = [settings.message, ' ', humanText, '.'];
546
+ var messageParts = [settings.message, ' ', humanText];
548
547
  if (settings.messageSuffix) {
549
548
  messageParts.push(' ');
550
549
  messageParts.push(settings.messageSuffix);
@@ -16,29 +16,27 @@
16
16
  -moz-opacity: 0.8;
17
17
  }
18
18
 
19
- html {
20
- &.no-scroll {
21
- overflow: hidden;
22
- }
23
- }
24
-
25
19
  .hmrc-timeout-dialog {
26
20
  position: fixed;
27
21
  z-index: 1002;
28
22
  top: 50%;
29
23
  left: 50%;
30
24
  width: 280px;
25
+ max-width: 100%;
26
+ max-height: 100%;
31
27
  padding: 30px;
32
- overflow-x: hidden;
33
- overflow-y: auto;
28
+ overflow: auto;
34
29
  -webkit-transform: translate(-50%, -50%);
35
30
  -ms-transform: translate(-50%, -50%);
36
31
  transform: translate(-50%, -50%);
37
32
  border: 5px solid govuk-colour("black");
38
33
  background-color: govuk-colour("white");
34
+ -webkit-box-sizing: border-box;
35
+ box-sizing: border-box;
39
36
 
40
37
  @include govuk-media-query($from: tablet) {
41
38
  width: 435px;
39
+ max-width: 100%;
42
40
  }
43
41
 
44
42
  &:focus {
@@ -163,7 +163,6 @@ function TimeoutDialog($module, $sessionActivityService) {
163
163
  );
164
164
  $visualMessge.appendChild(document.createTextNode(' '));
165
165
  $visualMessge.appendChild($countdownElement);
166
- $visualMessge.appendChild(document.createTextNode('.'));
167
166
  if (settings.messageSuffix) {
168
167
  $visualMessge.appendChild(document.createTextNode(` ${settings.messageSuffix}`));
169
168
  }
@@ -212,17 +211,17 @@ function TimeoutDialog($module, $sessionActivityService) {
212
211
  let minutes; let
213
212
  visibleMessage;
214
213
  if (counter < 60) {
215
- visibleMessage = `${counter} ${settings.properties[counter !== 1 ? 'seconds' : 'second']}`;
214
+ visibleMessage = `${counter} ${settings.properties[counter !== 1 ? 'seconds' : 'second']}.`;
216
215
  } else {
217
216
  minutes = Math.ceil(counter / 60);
218
- visibleMessage = `${minutes} ${settings.properties[minutes === 1 ? 'minute' : 'minutes']}`;
217
+ visibleMessage = `${minutes} ${settings.properties[minutes === 1 ? 'minute' : 'minutes']}.`;
219
218
  }
220
219
  return visibleMessage;
221
220
  };
222
221
 
223
222
  const getAudibleHumanText = (counter) => {
224
223
  const humanText = getHumanText(roundSecondsUp(counter));
225
- const messageParts = [settings.message, ' ', humanText, '.'];
224
+ const messageParts = [settings.message, ' ', humanText];
226
225
  if (settings.messageSuffix) {
227
226
  messageParts.push(' ');
228
227
  messageParts.push(settings.messageSuffix);