hmrc-frontend 6.103.0 → 6.105.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.
@@ -24,10 +24,10 @@
24
24
  "scripts": [
25
25
  "/hmrc/all.js",
26
26
  "/hmrc/init-all.js",
27
- "/hmrc/accessible-autocomplete-6.103.0.js"
27
+ "/hmrc/accessible-autocomplete-6.105.0.js"
28
28
  ],
29
29
  "stylesheets": [
30
- "/hmrc/accessible-autocomplete-6.103.0.css"
30
+ "/hmrc/accessible-autocomplete-6.105.0.css"
31
31
  ],
32
32
  "importNunjucksMacrosInto": [
33
33
  "/hmrc/templates/account-header.html"
package/hmrc/VERSION.txt CHANGED
@@ -1 +1 @@
1
- 6.103.0
1
+ 6.105.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: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.103.0.css.map */
2
+ /*# sourceMappingURL=maps/accessible-autocomplete-6.105.0.css.map */
@@ -12,30 +12,38 @@ $govuk-header-link-underline-thickness: 3px;
12
12
 
13
13
  .hmrc-sign-out-nav {
14
14
  float: right;
15
+ margin-bottom: 10px;
15
16
 
16
- .govuk-template--rebranded & {
17
- @include govuk-media-query($from: desktop) {
18
- padding-top: govuk-spacing(3) + 3px; // makes the baseline match gov.uk logo and service name
17
+ @include govuk-media-query($from: desktop) {
18
+ padding-top: 10px;
19
+
20
+ .govuk-template--rebranded & {
21
+ padding-top: 29px;
19
22
  }
20
23
  }
24
+
25
+ .govuk-template--rebranded & {
26
+ margin-bottom: 15px;
27
+ }
21
28
  }
22
29
 
23
30
  .govuk-header__navigation + .hmrc-sign-out-nav {
24
- .govuk-template--rebranded & {
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) {
25
38
  padding-top: 0;
26
- padding-bottom: govuk-spacing(2);
27
39
  }
28
40
  }
29
41
 
30
42
  .hmrc-sign-out-nav__link {
31
43
  color: govuk-colour("white");
32
44
  font-weight: bold;
33
- line-height: 1.64285;
34
45
  text-decoration: none;
35
-
36
- @include govuk-media-query($from: desktop) {
37
- line-height: 2.375;
38
- }
46
+ margin-left: 10px;
39
47
 
40
48
  &:hover {
41
49
  text-decoration: underline;
@@ -169,3 +177,47 @@ $govuk-header-link-underline-thickness: 3px;
169
177
  .govuk-template--rebranded .hmrc-header + .hmrc-user-research-banner {
170
178
  top: 0;
171
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
+ }