hmrc-frontend 6.103.0 → 6.104.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.104.0.js"
28
28
  ],
29
29
  "stylesheets": [
30
- "/hmrc/accessible-autocomplete-6.103.0.css"
30
+ "/hmrc/accessible-autocomplete-6.104.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.104.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.104.0.css.map */
@@ -12,30 +12,18 @@ $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
17
  .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
19
- }
20
- }
21
- }
22
-
23
- .govuk-header__navigation + .hmrc-sign-out-nav {
24
- .govuk-template--rebranded & {
25
- padding-top: 0;
26
- padding-bottom: govuk-spacing(2);
18
+ margin-bottom: 15px;
27
19
  }
28
20
  }
29
21
 
30
22
  .hmrc-sign-out-nav__link {
31
23
  color: govuk-colour("white");
32
24
  font-weight: bold;
33
- line-height: 1.64285;
34
25
  text-decoration: none;
35
-
36
- @include govuk-media-query($from: desktop) {
37
- line-height: 2.375;
38
- }
26
+ margin-left: 10px;
39
27
 
40
28
  &:hover {
41
29
  text-decoration: underline;
@@ -169,3 +157,59 @@ $govuk-header-link-underline-thickness: 3px;
169
157
  .govuk-template--rebranded .hmrc-header + .hmrc-user-research-banner {
170
158
  top: 0;
171
159
  }
160
+
161
+ // Notes on the patches below:
162
+ //
163
+ // use of :has() and :not() is ok because these
164
+ // issues aren't going to be a problem forever
165
+ // because people are migrating to use service
166
+ // navigation to display their service name and
167
+ // navigation items
168
+
169
+ // the following block of styles makes sure
170
+ // that a service name which spans multiple
171
+ // lines won't cause the sign out link to be
172
+ // displayed under the service name but will
173
+ // be aligned with baseline of its last line
174
+
175
+ .hmrc-header:has(.hmrc-sign-out-nav):not(:has(.govuk-header__navigation)) {
176
+ .govuk-header__content {
177
+ display: -webkit-box;
178
+ display: -ms-flexbox;
179
+ display: flex;
180
+ -webkit-box-align: last baseline;
181
+ -ms-flex-align: last baseline;
182
+ align-items: last baseline;
183
+ }
184
+
185
+ .hmrc-sign-out-nav {
186
+ -ms-flex-negative: 0;
187
+ flex-shrink: 0;
188
+ margin-left: auto;
189
+ }
190
+ }
191
+
192
+ .hmrc-header:has(.govuk-header__navigation) .hmrc-sign-out-nav {
193
+ margin-top: 4px;
194
+
195
+ @include govuk-media-query($from: tablet) {
196
+ margin-top: 10px;
197
+ }
198
+
199
+ @include govuk-media-query($from: desktop) {
200
+ margin-top: 0;
201
+ }
202
+ }
203
+
204
+ // the following stops the menu button from sitting
205
+ // immediately to right of service name on smallest
206
+ // screens which looks bad and might be an a11y
207
+ // issue in terms of mobile touch target sizing.
208
+
209
+ .hmrc-header:has(.govuk-header__navigation) {
210
+ .govuk-header__service-name {
211
+ @include govuk-media-query($until: mobile) {
212
+ float: none;
213
+ }
214
+ }
215
+ }