govuk_publishing_components 59.1.1 → 59.2.1

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.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/pii-remover.js +6 -6
  3. data/app/assets/javascripts/govuk_publishing_components/components/add-another.js +7 -6
  4. data/app/assets/stylesheets/component_guide/application.scss +3 -3
  5. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +0 -1
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +55 -31
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +1 -1
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +274 -231
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +11 -9
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +1 -2
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +1 -1
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +2 -1
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_secondary-navigation.scss +2 -4
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +2 -3
  15. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +1 -1
  16. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_grid-helper.scss +18 -14
  17. data/app/views/govuk_publishing_components/components/_action_link.html.erb +25 -14
  18. data/app/views/govuk_publishing_components/components/_add_another.html.erb +9 -0
  19. data/app/views/govuk_publishing_components/components/_cross_service_header.html.erb +1 -2
  20. data/app/views/govuk_publishing_components/components/cross_service_header/_one_login_header.html.erb +41 -68
  21. data/app/views/govuk_publishing_components/components/docs/add_another.yml +38 -0
  22. data/lib/govuk_publishing_components/version.rb +1 -1
  23. metadata +1 -1
@@ -1,175 +1,51 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
 
3
3
  $govuk-header-link-underline-thickness: 3px;
4
-
5
- .gem-c-cross-service-header__button {
6
- display: none;
7
- position: relative;
8
- align-items: center;
9
- cursor: pointer;
10
- min-width: 240px;
11
- min-width: max-content;
12
- border: 0;
13
- margin: 0;
14
- padding: govuk-spacing(2) 0 govuk-spacing(1) govuk-spacing(4);
15
- background: none;
16
-
17
- @include govuk-font($size: 19, $weight: bold);
18
-
19
- .toggle-enabled & {
20
- display: inline;
21
- display: flex;
22
-
23
- @include govuk-media-query($from: tablet) {
24
- display: none;
25
- }
26
- }
27
-
28
- &::before {
29
- content: "";
30
- position: absolute;
31
- left: 0.15rem;
32
- top: 50%;
33
- box-sizing: border-box;
34
- display: inline-block;
35
- width: 0.6rem;
36
- height: 0.6rem;
37
- transform: translateY(-65%) rotate(135deg);
38
- border-top: 0.15rem solid;
39
- border-right: 0.15rem solid;
40
- }
41
-
42
- &.gem-c-cross-service-header__button--open {
43
- &::before {
44
- transform: translateY(-15%) rotate(-45deg);
45
- }
46
- }
47
-
48
- &.gem-c-cross-service-header__button--one-login {
49
- color: govuk-colour("white");
50
- // apply focus style on :focus for browsers which support :focus but not :focus-visible
51
- &:focus {
52
- @include govuk-focused-text;
53
-
54
- // overwrite previous styles for browsers which support :focus-visible
55
- &:not(:focus-visible) {
56
- outline: none;
57
- color: govuk-colour("white");
58
- background: none;
59
- box-shadow: none;
60
- }
61
-
62
- // apply focus style on :focus-visible for browsers which support :focus-visible
63
- &-visible {
64
- @include govuk-focused-text;
65
- }
66
- }
67
- }
68
- }
69
-
70
- .gem-c-cross-service-header__button-icon {
71
- margin-left: govuk-spacing(2);
72
- font-size: 0;
73
-
74
- &.gem-c-cross-service-header__button-icon--focus {
75
- display: none;
76
- }
77
-
78
- // apply focus style on :focus for browsers which support :focus but not :focus-visible
79
- .gem-c-cross-service-header__button:focus & {
80
- &.gem-c-cross-service-header__button-icon--default {
81
- display: none;
82
- }
83
-
84
- &.gem-c-cross-service-header__button-icon--focus {
85
- display: inline;
86
- }
87
- }
88
-
89
- // overwrite previous styles for browsers which support :focus-visible
90
- .gem-c-cross-service-header__button:focus:not(:focus-visible) & {
91
- &.gem-c-cross-service-header__button-icon--default {
92
- display: inline;
93
- }
94
-
95
- &.gem-c-cross-service-header__button-icon--focus {
96
- display: none;
97
- }
98
- }
99
-
100
- // apply focus style on :focus-visible for browsers which support :focus-visible
101
- .gem-c-cross-service-header__button:focus-visible & {
102
- &.gem-c-cross-service-header__button-icon--default {
103
- display: none;
104
- }
105
-
106
- &.gem-c-cross-service-header__button-icon--focus {
107
- display: inline;
108
- }
109
- }
110
- }
111
-
112
- // start One Login header styles
113
- .gem-c-one-login-header {
4
+ $toggle-content-spacing: 8px;
5
+ $toggle-padding: 15px;
6
+ $block-link-spacing: govuk-spacing(3);
7
+ $logo-height: 30px;
8
+ $toggle-border-height: 3px;
9
+
10
+ .gem-c-rebranded-one-login-header {
11
+ @include govuk-font($size: 16);
114
12
  color: govuk-colour("white");
115
- background: govuk-colour("black");
116
- border-bottom: govuk-spacing(2) solid $govuk-link-colour;
117
13
  position: relative;
118
- @include govuk-font($size: 19);
14
+ background: $govuk-brand-colour;
119
15
  }
120
16
 
121
- .gem-c-one-login-header__container {
17
+ .gem-c-rebranded-one-login-header__container {
122
18
  display: flex;
123
19
  position: relative;
124
20
  justify-content: space-between;
125
21
  align-items: center;
126
22
  flex-wrap: wrap;
23
+ border-bottom: 1px solid transparent;
127
24
  }
128
25
 
129
- .gem-c-one-login-header__logo {
26
+ .gem-c-rebranded-one-login-header__logo {
130
27
  min-width: max-content;
131
- padding-top: govuk-spacing(2);
132
- padding-bottom: govuk-spacing(2);
133
28
  max-width: 33.33%;
29
+ // this strange non-standard spacing came from the Design System
30
+ padding-top: 16px;
31
+ padding-bottom: 12px;
32
+ box-sizing: border-box;
33
+
134
34
  @include govuk-media-query($from: desktop) {
135
35
  width: 33.33%;
136
- padding-right: govuk-spacing(3);
137
- }
138
- }
139
-
140
- .gem-c-one-login-header__link,
141
- .gem-c-one-login-header__nav__link {
142
- &:link,
143
- &:visited {
144
- text-decoration: none;
145
- @include govuk-typography-common;
146
- @include govuk-link-style-inverse;
147
-
148
- &:hover {
149
- text-decoration: underline;
150
- text-decoration-thickness: $govuk-header-link-underline-thickness;
151
-
152
- @if $govuk-link-underline-offset {
153
- text-underline-offset: $govuk-link-underline-offset;
154
- }
155
- }
156
-
157
- &:focus {
158
- @include govuk-focused-text;
159
- }
36
+ padding-right: $toggle-padding;
160
37
  }
161
38
  }
162
39
 
163
- .gem-c-one-login-header__logotype {
40
+ .gem-c-rebranded-one-login-header__logotype {
164
41
  display: inline-block;
165
42
  position: relative;
166
43
  top: -3px;
167
-
168
- // Add a gap after the logo in case it's followed by a product name. This
169
- // gets removed later if the logotype is a :last-child.
170
- margin-right: govuk-spacing(1);
44
+ margin-bottom: 2px;
45
+ // this is in place to ensure the GOVUK logo doesn't overflow when text magnification is used
46
+ max-width: 80vw;
171
47
  fill: currentcolor;
172
- vertical-align: top;
48
+ vertical-align: sub;
173
49
 
174
50
  // Prevent readability backplate from obscuring underline in Windows High
175
51
  // Contrast Mode
@@ -177,34 +53,18 @@ $govuk-header-link-underline-thickness: 3px;
177
53
  forced-color-adjust: none;
178
54
  color: linktext;
179
55
  }
180
-
181
- // Remove the gap after the logo if there's no product name to keep hover
182
- // and focus states neat
183
- &:last-child {
184
- margin-right: 0;
185
- }
186
- }
187
-
188
- .gem-c-one-login-header__logotype-crown-fallback-image {
189
- width: 36px;
190
- height: 32px;
191
- border: 0;
192
- vertical-align: bottom;
193
56
  }
194
57
 
195
- .gem-c-one-login-header__link--homepage {
196
- display: inline-block;
197
- margin-right: govuk-spacing(2);
198
- font-size: 30px; // We don't have a mixin that produces 30px font size
199
- line-height: 1;
200
-
58
+ .gem-c-rebranded-one-login-header__link--homepage {
201
59
  // Font size needs to be set on the link so that the box sizing is correct
202
60
  // in Firefox
203
61
  @include govuk-font($size: false, $weight: bold);
62
+ display: inline;
63
+ margin-right: govuk-spacing(2);
64
+ font-size: 30px; // We don't have a mixin that produces 30px font size
65
+ line-height: 1;
204
66
 
205
67
  @include govuk-media-query($from: tablet) {
206
- display: inline;
207
-
208
68
  &:focus {
209
69
  // Replicate the focus box shadow but without the -2px y-offset of the first yellow shadow
210
70
  // This is to stop the logo getting cut off by the box shadow when focused on above a product name
@@ -233,9 +93,48 @@ $govuk-header-link-underline-thickness: 3px;
233
93
  }
234
94
  }
235
95
 
236
- .gem-c-one-login-header__nav {
237
- @include govuk-media-query ($until: tablet) {
96
+ .gem-c-rebranded-one-login-header__link,
97
+ .gem-c-rebranded-one-login-header__nav__link {
98
+ &:link,
99
+ &:visited {
100
+ @include govuk-typography-common;
101
+ @include govuk-link-style-inverse;
102
+ text-decoration: none;
103
+
104
+ &:hover {
105
+ text-decoration: underline;
106
+ text-decoration-thickness: $govuk-header-link-underline-thickness;
107
+
108
+ @if $govuk-link-underline-offset {
109
+ text-underline-offset: $govuk-link-underline-offset;
110
+ }
111
+ }
112
+
113
+ &:focus {
114
+ @include govuk-focused-text;
115
+ }
116
+ }
117
+ }
118
+
119
+ .gem-c-rebranded-one-login-header__link {
120
+ word-spacing: -0.375rem;
121
+
122
+ & > * {
123
+ word-spacing: 0;
124
+ }
125
+
126
+ &:not(:focus) {
127
+ background-color: $govuk-brand-colour;
128
+ }
129
+ }
130
+
131
+ .gem-c-rebranded-one-login-header__nav {
132
+ @include govuk-media-query($until: tablet) {
238
133
  width: 100%;
134
+
135
+ &.gem-c-rebranded-one-login-header__nav--open {
136
+ border-top: 1px solid transparent;
137
+ }
239
138
  }
240
139
 
241
140
  @include govuk-media-query($from: tablet) {
@@ -243,115 +142,259 @@ $govuk-header-link-underline-thickness: 3px;
243
142
  }
244
143
  }
245
144
 
246
- .gem-c-one-login-header__nav__list {
247
- margin: 0;
248
- padding: 0;
249
- list-style: none;
250
- display: block;
145
+ .gem-c-rebranded-one-login-header__nav__link {
146
+ font-weight: bold;
147
+
148
+ @include govuk-media-query($from: tablet) {
149
+ position: relative;
150
+ padding: $block-link-spacing 0;
251
151
 
252
- // if JS is unavailable, the nav links are expanded and the toggle button is hidden
253
- .toggle-enabled & {
254
- @include govuk-media-query ($until: tablet) {
152
+ &::after {
153
+ content: "";
255
154
  display: none;
155
+ position: absolute;
156
+ height: $toggle-border-height;
157
+ width: calc(100% - $block-link-spacing * 2);
158
+ bottom: 0;
159
+ left: $block-link-spacing;
256
160
  }
257
161
 
258
- @include govuk-media-query ($from: tablet) {
259
- display: flex;
162
+ // this degree of specificity is only needed in order to overrule DS rules
163
+ &:link:link,
164
+ &:link:visited,
165
+ &:visited:link,
166
+ &:visited:visited {
167
+ &:hover,
168
+ &:active {
169
+ text-decoration: none;
170
+
171
+ &::after {
172
+ display: block;
173
+ background-color: govuk-colour("white");
174
+ }
175
+ }
176
+
177
+ &:focus {
178
+ box-shadow: none;
179
+
180
+ &::after {
181
+ display: block;
182
+ background-color: $govuk-focus-text-colour;
183
+ }
184
+ }
260
185
  }
261
186
  }
262
187
 
263
- .gem-c-one-login-header__nav--open & {
264
- @include govuk-media-query ($until: tablet) {
265
- display: block;
188
+ @include govuk-media-query($until: tablet) {
189
+ &:link:link,
190
+ &:link:visited,
191
+ &:visited:link,
192
+ &:visited:visited {
193
+ color: $govuk-brand-colour;
194
+
195
+ &:focus {
196
+ color: $govuk-focus-text-colour;
197
+ }
266
198
  }
267
199
  }
200
+ }
268
201
 
202
+ .gem-c-rebranded-one-login-header__nav__link-content {
269
203
  @include govuk-media-query($from: tablet) {
270
- padding: govuk-spacing(2) 0;
204
+ padding: 0 $block-link-spacing;
271
205
  display: flex;
272
206
  align-items: center;
207
+
208
+ &--sign-out {
209
+ height: $logo-height;
210
+ border-left: 1px solid govuk-colour("white");
211
+ }
273
212
  }
274
213
  }
275
214
 
276
- .gem-c-one-login-header__nav__list-item {
277
- display: inline-block;
278
- padding: govuk-spacing(2) 0;
215
+ .gem-c-rebranded-one-login-header__nav__list {
216
+ margin: 0;
217
+ padding: 0;
218
+ list-style: none;
279
219
 
280
220
  @include govuk-media-query($from: tablet) {
281
- padding: govuk-spacing(2) 0 govuk-spacing(2) govuk-spacing(6);
282
- border-left: 1px solid $govuk-border-colour;
283
- align-self: stretch;
221
+ display: flex;
222
+ align-items: center;
223
+ }
284
224
 
285
- &:not(:last-child) {
286
- margin-right: govuk-spacing(4);
287
- }
225
+ @include govuk-media-query($until: tablet) {
226
+ background-color: govuk-colour("white");
227
+ color: $govuk-brand-colour;
228
+ margin-right: -(govuk-spacing(3));
229
+ margin-left: -(govuk-spacing(3));
230
+ padding: 0 govuk-spacing(3);
231
+ }
232
+ }
233
+
234
+ // if JS is unavailable, the nav links are expanded and the toggle button is hidden
235
+ .toggle-enabled .gem-c-rebranded-one-login-header__nav__list {
236
+ @include govuk-media-query($until: tablet) {
237
+ display: none;
288
238
  }
289
239
 
240
+ @include govuk-media-query($from: tablet) {
241
+ display: flex;
242
+ }
243
+ }
244
+
245
+ .gem-c-rebranded-one-login-header__nav--open .gem-c-rebranded-one-login-header__nav__list {
290
246
  @include govuk-media-query($until: tablet) {
291
- width: 100%;
247
+ display: block;
248
+ }
249
+ }
250
+
251
+ .gem-c-rebranded-one-login-header__nav__list-item {
252
+ @include govuk-media-query($from: tablet) {
253
+ border-left: none;
254
+ margin-right: 0;
255
+ padding: 0;
256
+ display: flex;
257
+ align-items: center;
258
+ }
259
+
260
+ @include govuk-media-query($until: tablet) {
261
+ padding: govuk-spacing(3) 0;
292
262
 
293
263
  &:not(:last-child) {
294
- border-bottom: 1px solid $govuk-border-colour;
264
+ border-bottom: 1px solid govuk-colour("mid-grey");
295
265
  }
296
266
  }
297
267
  }
298
268
 
299
- .gem-c-one-login-header__nav__link {
300
- font-weight: bold;
269
+ .gem-c-rebranded-cross-service-header__logo {
270
+ margin-right: $toggle-content-spacing;
271
+ }
301
272
 
302
- &.gem-c-one-login-header__nav__link--one-login {
303
- @include govuk-media-query($from: tablet) {
304
- display: flex;
305
- justify-content: center;
273
+ .gem-c-rebranded-cross-service-header__logo--nav {
274
+ @include govuk-media-query($until: tablet) {
275
+ display: none;
276
+ }
277
+ }
306
278
 
307
- // stylelint-disable max-nesting-depth
308
- &:focus {
309
- .gem-c-cross-service-header__button-icon {
310
- display: none;
311
- }
279
+ .gem-c-rebranded-cross-service-header__toggle {
280
+ display: none;
281
+ @include govuk-font($size: 16, $weight: bold);
282
+ position: absolute;
283
+ right: 0;
284
+ top: 0;
285
+ cursor: pointer;
286
+ border: 0;
287
+ margin: 0;
288
+ background: none;
289
+ color: inherit;
290
+ padding: $toggle-padding $toggle-padding calc($toggle-padding + 1px) $toggle-padding;
291
+ margin-right: -(govuk-spacing(3));
292
+
293
+ @mixin toggle-button-focus {
294
+ color: $govuk-focus-text-colour;
295
+ background-color: $govuk-focus-colour;
296
+ outline: 3px solid transparent;
297
+ }
312
298
 
313
- .gem-c-cross-service-header__button-icon--focus {
314
- display: inline;
315
- }
316
- }
299
+ &:focus {
300
+ @include toggle-button-focus;
301
+
302
+ &.gem-c-rebranded-cross-service-header__toggle--open {
303
+ @include toggle-button-focus;
317
304
  }
318
305
 
319
- @include govuk-media-query($until: tablet) {
320
- .gem-c-cross-service-header__button-icon {
321
- display: none;
306
+ // apply focus style on :focus-visible for browsers which support :focus-visible
307
+ &-visible {
308
+ @include toggle-button-focus;
309
+
310
+ &.gem-c-rebranded-cross-service-header__toggle--open {
311
+ @include toggle-button-focus;
322
312
  }
323
313
  }
324
314
  }
315
+
316
+ &.gem-c-rebranded-cross-service-header__toggle--open {
317
+ background-color: govuk-colour("white");
318
+ color: $govuk-brand-colour;
319
+ }
325
320
  }
326
- // end One Login header styles
327
321
 
328
- @include govuk-media-query($media-type: print) {
329
- .gem-c-cross-service-header {
330
- margin-bottom: 5mm;
322
+ .toggle-enabled .gem-c-rebranded-cross-service-header__toggle {
323
+ display: inline;
324
+
325
+ @include govuk-media-query($from: tablet) {
326
+ display: none;
331
327
  }
328
+ }
332
329
 
333
- .gem-c-one-login-header {
334
- background: none;
335
- border-bottom: 2pt solid $govuk-print-text-colour;
330
+ .gem-c-rebranded-cross-service-header__toggle-content-wrapper {
331
+ position: relative;
332
+ display: flex;
333
+ align-items: center;
336
334
 
337
- * {
338
- color: $govuk-print-text-colour;
339
- }
335
+ &::after {
336
+ content: "";
337
+ display: inline-block;
338
+ margin-left: $toggle-content-spacing;
339
+ top: 50%;
340
+ width: 0.6rem;
341
+ height: 0.6rem;
342
+ // this is in place to ensure the caret renders as intended when text magnification is useds
343
+ min-width: 0.6rem;
344
+ transform: translateY(-20%) rotate(135deg);
345
+ border-top: 0.15rem solid;
346
+ border-right: 0.15rem solid;
340
347
 
341
- .govuk-width-container {
342
- margin: 0;
348
+ .gem-c-rebranded-cross-service-header__toggle--open & {
349
+ transform: translateY(30%) rotate(-45deg);
343
350
  }
344
351
  }
345
352
 
346
- .gem-c-service-header {
347
- background: none;
353
+ &::before {
354
+ content: "";
355
+ display: inline-block;
356
+ position: absolute;
357
+ width: 100%;
358
+ height: $toggle-border-height;
359
+ background-color: transparent;
360
+ // the underline that appears on hover/focus should be 1px from the bottom of the container
361
+ bottom: calc(1px - $toggle-padding);
348
362
 
349
- .govuk-width-container {
350
- margin: 0;
363
+ .gem-c-rebranded-cross-service-header__toggle:hover & {
364
+ background-color: govuk-colour("white");
351
365
  }
352
366
 
353
- .gem-c-service-header__container {
354
- padding: 0;
367
+ .gem-c-rebranded-cross-service-header__toggle--open &,
368
+ .gem-c-rebranded-cross-service-header__toggle--open:hover & {
369
+ background-color: $govuk-brand-colour;
355
370
  }
371
+
372
+ .gem-c-rebranded-cross-service-header__toggle:focus &,
373
+ .gem-c-rebranded-cross-service-header__toggle:focus-visible & {
374
+ background-color: $govuk-focus-text-colour;
375
+
376
+ &:hover {
377
+ background-color: $govuk-focus-text-colour;
378
+ }
379
+ }
380
+ }
381
+ }
382
+
383
+ .gem-c-rebranded-one-login-header__logo-dot {
384
+ fill: #00ffe0;
385
+
386
+ // Override Dot colour when printing
387
+ @include govuk-media-query($media-type: print) {
388
+ fill: currentcolor;
389
+ }
390
+
391
+ // Override Dot colour on forced colours mode
392
+ @media (forced-colors: active) {
393
+ fill: currentcolor;
394
+ }
395
+
396
+ // Override Dot colour on focus
397
+ :focus & {
398
+ fill: currentcolor;
356
399
  }
357
400
  }
@@ -286,10 +286,10 @@ $search-icon-height: 20px;
286
286
  }
287
287
 
288
288
  @include focus-and-focus-visible {
289
+ // this declaration overrides govuk-focused-text but the compiler prefers @include to be last
290
+ box-shadow: none !important; // stylelint-disable-line declaration-no-important
289
291
  @include govuk-focused-text;
290
292
 
291
- box-shadow: none;
292
-
293
293
  &::after {
294
294
  background-color: govuk-colour("black");
295
295
  }
@@ -366,8 +366,9 @@ $search-icon-height: 20px;
366
366
  // Styles the "Menu" open state
367
367
  .gem-c-layout-super-navigation-header__navigation-top-toggle-button.gem-c-layout-super-navigation-header__open-button {
368
368
  @include focus-and-focus-visible {
369
+ // this declaration overrides govuk-focused-text because the compiler prefers @include to be last
370
+ box-shadow: none !important; // stylelint-disable-line declaration-no-important
369
371
  @include govuk-focused-text;
370
- box-shadow: none;
371
372
 
372
373
  &::after {
373
374
  background-color: govuk-colour("black");
@@ -435,11 +436,11 @@ $search-icon-height: 20px;
435
436
  }
436
437
 
437
438
  @include focus-and-focus-visible {
438
- @include govuk-focused-text;
439
-
440
- border-color: $govuk-focus-colour;
441
- box-shadow: none;
442
439
  z-index: 11;
440
+ // these declarations override govuk-focused-text because the compiler prefers @include to be last
441
+ border-color: $govuk-focus-colour !important; // stylelint-disable-line declaration-no-important
442
+ box-shadow: none !important; // stylelint-disable-line declaration-no-important
443
+ @include govuk-focused-text;
443
444
 
444
445
  &::after {
445
446
  background: govuk-colour("black");
@@ -481,9 +482,10 @@ $search-icon-height: 20px;
481
482
  color: govuk-colour("blue");
482
483
 
483
484
  @include focus-and-focus-visible {
485
+ // these declarations override govuk-focused-text because the compiler prefers @include to be last
486
+ border-color: $govuk-focus-colour !important; // stylelint-disable-line declaration-no-important
487
+ box-shadow: none !important; // stylelint-disable-line declaration-no-important
484
488
  @include govuk-focused-text;
485
- border-color: $govuk-focus-colour;
486
- box-shadow: none;
487
489
 
488
490
  &::after {
489
491
  background: govuk-colour("black");
@@ -140,11 +140,10 @@ $govuk-modal-wide-breakpoint: $govuk-page-width + $govuk-modal-margin * 2 + $gov
140
140
 
141
141
  &:focus,
142
142
  &:hover {
143
- @include govuk-focused-text;
144
-
145
143
  outline: none;
146
144
  box-shadow: none;
147
145
  color: govuk-colour("black");
148
146
  background: $govuk-focus-colour;
147
+ @include govuk-focused-text;
149
148
  }
150
149
  }
@@ -49,8 +49,8 @@ $gem-c-print-link-background-height: 18px;
49
49
  margin: govuk-spacing(0);
50
50
 
51
51
  &:focus {
52
- @include govuk-focused-text;
53
52
  background-color: $govuk-focus-colour;
54
53
  border-color: transparent;
54
+ @include govuk-focused-text;
55
55
  }
56
56
  }
@@ -1,3 +1,4 @@
1
+ @use "sass:color";
1
2
  @import "govuk_publishing_components/individual_component_support";
2
3
 
3
4
  $input-size: 40px;
@@ -206,7 +207,7 @@ $search-submit-button-hover-colour: $govuk-blue-tint-95;
206
207
  color: govuk-colour("white");
207
208
 
208
209
  &:hover {
209
- background-color: lighten(govuk-colour("blue"), 5%);
210
+ background-color: color.adjust(govuk-colour("blue"), $lightness: 5%);
210
211
  }
211
212
  }
212
213