govuk_publishing_components 40.1.0 → 41.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +1 -79
  3. data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +1 -34
  4. data/app/assets/javascripts/govuk_publishing_components/components/feedback.js +0 -17
  5. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +0 -6
  6. data/app/assets/javascripts/govuk_publishing_components/components/single-page-notification-button.js +0 -7
  7. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +8 -74
  8. data/app/assets/javascripts/govuk_publishing_components/dependencies.js +0 -4
  9. data/app/assets/javascripts/govuk_publishing_components/domain-config.js +0 -8
  10. data/app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js +0 -4
  11. data/app/assets/javascripts/govuk_publishing_components/lib/cookie-settings.js +0 -14
  12. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +0 -20
  13. data/app/assets/javascripts/govuk_publishing_components/lib/toggle.js +0 -33
  14. data/app/assets/javascripts/govuk_publishing_components/load-analytics.js +0 -25
  15. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +192 -171
  16. data/app/assets/stylesheets/component_guide/application.scss +10 -11
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -1
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +2 -3
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +3 -3
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +1 -1
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -2
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +47 -22
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +3 -3
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +1 -3
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +2 -1
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +19 -19
  27. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +14 -10
  28. data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +3 -3
  29. data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +2 -2
  30. data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
  31. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +8 -8
  32. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +16 -10
  33. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +2 -2
  34. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +2 -2
  35. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +33 -35
  36. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +3 -3
  37. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +1 -1
  38. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +1 -1
  39. data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +3 -3
  40. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +13 -3
  41. data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +1 -1
  42. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +6 -6
  43. data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +2 -3
  44. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +4 -3
  45. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +2 -3
  46. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +3 -4
  47. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +3 -3
  48. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +10 -10
  49. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +1 -1
  50. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +1 -1
  51. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +3 -3
  52. data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +1 -1
  53. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +5 -4
  54. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -1
  55. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +2 -2
  56. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +2 -2
  57. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -1
  58. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
  59. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +5 -5
  60. data/app/views/govuk_publishing_components/components/_accordion.html.erb +1 -8
  61. data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +1 -1
  62. data/app/views/govuk_publishing_components/components/_cards.html.erb +6 -11
  63. data/app/views/govuk_publishing_components/components/_contents_list.html.erb +2 -15
  64. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +3 -19
  65. data/app/views/govuk_publishing_components/components/_details.html.erb +9 -11
  66. data/app/views/govuk_publishing_components/components/_image_card.html.erb +1 -5
  67. data/app/views/govuk_publishing_components/components/_intervention.html.erb +4 -4
  68. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +7 -21
  69. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +1 -26
  70. data/app/views/govuk_publishing_components/components/_metadata.html.erb +2 -5
  71. data/app/views/govuk_publishing_components/components/_organisation_logo.html.erb +2 -7
  72. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +0 -10
  73. data/app/views/govuk_publishing_components/components/_related_navigation.html.erb +1 -3
  74. data/app/views/govuk_publishing_components/components/_search.html.erb +0 -1
  75. data/app/views/govuk_publishing_components/components/_select.html.erb +1 -2
  76. data/app/views/govuk_publishing_components/components/_share_links.html.erb +1 -10
  77. data/app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb +0 -1
  78. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +1 -1
  79. data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +1 -24
  80. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -14
  81. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +1 -4
  82. data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +0 -1
  83. data/app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb +1 -7
  84. data/app/views/govuk_publishing_components/components/docs/accordion.yml +1 -60
  85. data/app/views/govuk_publishing_components/components/docs/big_number.yml +2 -6
  86. data/app/views/govuk_publishing_components/components/docs/breadcrumbs.yml +0 -1
  87. data/app/views/govuk_publishing_components/components/docs/button.yml +1 -1
  88. data/app/views/govuk_publishing_components/components/docs/cards.yml +41 -20
  89. data/app/views/govuk_publishing_components/components/docs/checkboxes.yml +0 -33
  90. data/app/views/govuk_publishing_components/components/docs/cookie_banner.yml +2 -2
  91. data/app/views/govuk_publishing_components/components/docs/details.yml +0 -15
  92. data/app/views/govuk_publishing_components/components/docs/document_list.yml +11 -18
  93. data/app/views/govuk_publishing_components/components/docs/error_alert.yml +1 -1
  94. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +0 -11
  95. data/app/views/govuk_publishing_components/components/docs/image_card.yml +0 -31
  96. data/app/views/govuk_publishing_components/components/docs/intervention.yml +0 -26
  97. data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +2 -2
  98. data/app/views/govuk_publishing_components/components/docs/meta_tags.yml +0 -2
  99. data/app/views/govuk_publishing_components/components/docs/option_select.yml +4 -16
  100. data/app/views/govuk_publishing_components/components/docs/organisation_logo.yml +0 -15
  101. data/app/views/govuk_publishing_components/components/docs/print_link.yml +2 -9
  102. data/app/views/govuk_publishing_components/components/docs/select.yml +0 -36
  103. data/app/views/govuk_publishing_components/components/docs/share_links.yml +2 -4
  104. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav.yml +2 -25
  105. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +0 -23
  106. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_related.yml +0 -10
  107. data/app/views/govuk_publishing_components/components/docs/subscription_links.yml +3 -15
  108. data/app/views/govuk_publishing_components/components/docs/table.yml +1 -1
  109. data/app/views/govuk_publishing_components/components/docs/tabs.yml +1 -1
  110. data/app/views/govuk_publishing_components/components/docs/translation_nav.yml +3 -27
  111. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +1 -5
  112. data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +0 -2
  113. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +0 -10
  114. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +1 -1
  115. data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +0 -5
  116. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +0 -7
  117. data/lib/govuk_publishing_components/presenters/breadcrumbs_helper.rb +1 -19
  118. data/lib/govuk_publishing_components/presenters/image_card_helper.rb +1 -15
  119. data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +2 -24
  120. data/lib/govuk_publishing_components/presenters/select_helper.rb +0 -4
  121. data/lib/govuk_publishing_components/presenters/single_page_notification_button_helper.rb +0 -5
  122. data/lib/govuk_publishing_components/presenters/translation_nav_helper.rb +0 -7
  123. data/lib/govuk_publishing_components/version.rb +1 -1
  124. metadata +4 -26
  125. data/app/assets/javascripts/govuk_publishing_components/analytics/analytics.js +0 -92
  126. data/app/assets/javascripts/govuk_publishing_components/analytics/auto-scroll-tracker.js +0 -221
  127. data/app/assets/javascripts/govuk_publishing_components/analytics/auto-track-event.js +0 -30
  128. data/app/assets/javascripts/govuk_publishing_components/analytics/cross-domain-tracking.js +0 -55
  129. data/app/assets/javascripts/govuk_publishing_components/analytics/custom-dimensions.js +0 -133
  130. data/app/assets/javascripts/govuk_publishing_components/analytics/download-link-tracker.js +0 -46
  131. data/app/assets/javascripts/govuk_publishing_components/analytics/ecommerce.js +0 -101
  132. data/app/assets/javascripts/govuk_publishing_components/analytics/error-tracking.js +0 -51
  133. data/app/assets/javascripts/govuk_publishing_components/analytics/explicit-cross-domain-links.js +0 -88
  134. data/app/assets/javascripts/govuk_publishing_components/analytics/external-link-tracker.js +0 -68
  135. data/app/assets/javascripts/govuk_publishing_components/analytics/google-analytics-universal-tracker.js +0 -220
  136. data/app/assets/javascripts/govuk_publishing_components/analytics/init.js +0 -60
  137. data/app/assets/javascripts/govuk_publishing_components/analytics/linked-domains.js +0 -135
  138. data/app/assets/javascripts/govuk_publishing_components/analytics/mailto-link-tracker.js +0 -43
  139. data/app/assets/javascripts/govuk_publishing_components/analytics/page-content.js +0 -160
  140. data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +0 -115
  141. data/app/assets/javascripts/govuk_publishing_components/analytics/print-intent.js +0 -39
  142. data/app/assets/javascripts/govuk_publishing_components/analytics/static-analytics.js +0 -132
  143. data/app/assets/javascripts/govuk_publishing_components/analytics/track-click.js +0 -75
  144. data/app/assets/javascripts/govuk_publishing_components/analytics/track-select-change.js +0 -56
  145. data/app/assets/javascripts/govuk_publishing_components/analytics.js +0 -23
  146. data/app/assets/javascripts/govuk_publishing_components/components/details.js +0 -48
@@ -107,14 +107,14 @@ $after-button-padding-left: govuk-spacing(4);
107
107
  }
108
108
 
109
109
  .gem-c-layout-super-navigation-header__button-container {
110
- @include govuk-media-query($until: "tablet") {
111
- margin-right: govuk-spacing(-3);
112
- }
113
-
114
110
  top: -$black-bar-height;
115
111
  position: absolute;
116
112
  right: 0;
117
113
 
114
+ @include govuk-media-query($until: "tablet") {
115
+ margin-right: govuk-spacing(-3);
116
+ }
117
+
118
118
  @include govuk-media-query($until: 300px) {
119
119
  position: static;
120
120
  }
@@ -147,15 +147,14 @@ $after-button-padding-left: govuk-spacing(4);
147
147
  // Top level navigation links and search link.
148
148
  .gem-c-layout-super-navigation-header__navigation-item-link,
149
149
  .gem-c-layout-super-navigation-header__search-item-link {
150
- @include govuk-link-common;
151
- @include govuk-link-style-no-visited-state;
152
-
153
150
  display: inline-block;
154
151
  font-size: 19px;
155
152
  font-size: govuk-px-to-rem(19px);
156
153
  font-weight: bold;
157
154
  padding: govuk-spacing(3) 0;
158
155
  position: relative;
156
+ @include govuk-link-common;
157
+ @include govuk-link-style-no-visited-state;
159
158
 
160
159
  @include govuk-media-query($from: "desktop") {
161
160
  display: block;
@@ -169,6 +168,12 @@ $after-button-padding-left: govuk-spacing(4);
169
168
  &,
170
169
  &:link,
171
170
  &:visited {
171
+ // stylelint-disable max-nesting-depth
172
+ float: left;
173
+ font-size: 16px;
174
+ font-size: govuk-px-to-rem(16px);
175
+ height: govuk-spacing(4);
176
+
172
177
  @include focus-and-focus-visible {
173
178
  @include govuk-focused-text;
174
179
  }
@@ -196,12 +201,6 @@ $after-button-padding-left: govuk-spacing(4);
196
201
  @include pseudo-underline($left: $after-link-padding, $right: $after-link-padding);
197
202
  }
198
203
 
199
- // stylelint-disable max-nesting-depth
200
- float: left;
201
- font-size: 16px;
202
- font-size: govuk-px-to-rem(16px);
203
- height: govuk-spacing(4);
204
-
205
204
  &::before {
206
205
  @include chevron(govuk-colour("white"), true);
207
206
  }
@@ -393,6 +392,19 @@ $after-button-padding-left: govuk-spacing(4);
393
392
 
394
393
  // Styles for top level navigation toggle button.
395
394
  .gem-c-layout-super-navigation-header__navigation-top-toggle-button {
395
+ font-size: 16px;
396
+ font-size: govuk-px-to-rem(16px);
397
+ font-weight: 700;
398
+ background: govuk-colour("black");
399
+ border: 0;
400
+ box-sizing: border-box;
401
+ color: govuk-colour("white");
402
+ cursor: pointer;
403
+ height: $black-bar-height;
404
+ padding: 0;
405
+ position: relative;
406
+ margin: 0;
407
+ vertical-align: top;
396
408
  @include govuk-link-common;
397
409
  @include govuk-link-style-no-visited-state;
398
410
  @include govuk-link-style-no-underline;
@@ -415,20 +427,6 @@ $after-button-padding-left: govuk-spacing(4);
415
427
  }
416
428
  }
417
429
 
418
- font-size: 16px;
419
- font-size: govuk-px-to-rem(16px);
420
- font-weight: 700;
421
- background: govuk-colour("black");
422
- border: 0;
423
- box-sizing: border-box;
424
- color: govuk-colour("white");
425
- cursor: pointer;
426
- height: $black-bar-height;
427
- padding: 0;
428
- position: relative;
429
- margin: 0;
430
- vertical-align: top;
431
-
432
430
  @include govuk-media-query($from: "desktop") {
433
431
  background: govuk-colour("black");
434
432
  display: block;
@@ -490,11 +488,11 @@ $after-button-padding-left: govuk-spacing(4);
490
488
  // stylelint-disable max-nesting-depth
491
489
  &:hover {
492
490
  .gem-c-layout-super-navigation-header__navigation-top-toggle-button-inner {
491
+ color: govuk-colour("mid-grey");
492
+
493
493
  &::before {
494
494
  @include chevron(govuk-colour("mid-grey"), true);
495
495
  }
496
-
497
- color: govuk-colour("mid-grey");
498
496
  }
499
497
 
500
498
  &::after {
@@ -607,7 +605,6 @@ $after-button-padding-left: govuk-spacing(4);
607
605
 
608
606
  // Styles for search toggle button.
609
607
  .gem-c-layout-super-navigation-header__search-toggle-button {
610
- @include govuk-font($size: 19, $weight: "bold", $line-height: 20px);
611
608
  background: none;
612
609
  border: 0;
613
610
  color: govuk-colour("white");
@@ -616,6 +613,7 @@ $after-button-padding-left: govuk-spacing(4);
616
613
  padding: govuk-spacing(3);
617
614
  position: relative;
618
615
  width: $search-width-or-height;
616
+ @include govuk-font($size: 19, $weight: "bold", $line-height: 20px);
619
617
 
620
618
  @include focus-and-focus-visible {
621
619
  @include govuk-focused-text;
@@ -753,14 +751,14 @@ $after-button-padding-left: govuk-spacing(4);
753
751
 
754
752
  // Dropdown menu.
755
753
  .gem-c-layout-super-navigation-header__navigation-dropdown-menu {
756
- @include govuk-media-query($until: 300px) {
757
- padding-top: 80px;
758
- }
759
-
760
754
  background: govuk-colour("light-grey");
761
755
  border-bottom: 1px govuk-colour("mid-grey") solid;
762
756
  padding-top: govuk-spacing(6);
763
757
 
758
+ @include govuk-media-query($until: 300px) {
759
+ padding-top: 80px;
760
+ }
761
+
764
762
  @include govuk-media-query($from: "desktop") {
765
763
  padding-top: govuk-spacing(8);
766
764
  }
@@ -877,11 +875,11 @@ $after-button-padding-left: govuk-spacing(4);
877
875
  }
878
876
 
879
877
  .gem-c-layout-super-navigation-header__navigation-second-item-description {
880
- @include govuk-typography-common;
881
878
  font-size: 16px;
882
879
  font-size: govuk-px-to-rem(16px);
883
880
  font-weight: normal;
884
881
  margin: govuk-spacing(1) 0 0 0;
882
+ @include govuk-typography-common;
885
883
  }
886
884
 
887
885
  .gem-c-layout-super-navigation-header__search-form {
@@ -1,12 +1,12 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
 
3
3
  .gem-c-lead-paragraph {
4
- @include govuk-text-colour;
5
- @include govuk-font(24);
6
4
  margin-top: 0;
7
- @include responsive-bottom-margin;
8
5
  // Ensure the text has a line-length of around 60 characters
9
6
  max-width: 30em;
7
+ @include govuk-text-colour;
8
+ @include responsive-bottom-margin;
9
+ @include govuk-font(24);
10
10
  }
11
11
 
12
12
  .gem-c-lead-paragraph--inverse {
@@ -7,9 +7,9 @@
7
7
  @include govuk-clearfix;
8
8
 
9
9
  a {
10
+ font-weight: bold;
10
11
  @include govuk-link-common;
11
12
  @include govuk-link-style-default;
12
- font-weight: bold;
13
13
  }
14
14
 
15
15
  .gem-c-metadata__definition-link {
@@ -2,8 +2,8 @@
2
2
  @import "govuk/components/notification-banner/notification-banner";
3
3
 
4
4
  .gem-c-notice {
5
- @include govuk-responsive-margin(8, "bottom");
6
5
  clear: both;
6
+ @include govuk-responsive-margin(8, "bottom");
7
7
 
8
8
  .govuk-govspeak {
9
9
  p:last-child {
@@ -28,8 +28,8 @@
28
28
  }
29
29
 
30
30
  .gem-c-option-select__title {
31
- @include govuk-font(19);
32
31
  margin: 0;
32
+ @include govuk-font(19);
33
33
  }
34
34
 
35
35
  .gem-c-option-select__button {
@@ -111,8 +111,8 @@
111
111
  }
112
112
 
113
113
  .gem-c-option-select__filter-input {
114
- @include govuk-font(19);
115
114
  background: url("option-select/input-icon.svg") govuk-colour("white") no-repeat -5px -3px;
115
+ @include govuk-font(19);
116
116
 
117
117
  @include govuk-media-query($from: tablet) {
118
118
  @include govuk-font(16);
@@ -152,9 +152,9 @@
152
152
  }
153
153
 
154
154
  .gem-c-option-select__selected-counter {
155
- @include govuk-font($size: 16);
156
155
  color: $govuk-text-colour;
157
156
  margin-top: 3px;
157
+ @include govuk-font($size: 16);
158
158
  }
159
159
 
160
160
  .gem-c-option-select.js-closed {
@@ -2,12 +2,18 @@
2
2
 
3
3
  // Default logo corresponds with the "medium stacked" Whitehall equivalent
4
4
  .gem-c-organisation-logo {
5
- @include govuk-font($size: 19);
6
5
  font-weight: 400;
7
- line-height: 1.35;
8
6
  // When this is a heading the margin needs to be set to stop it from
9
7
  // inheriting the browser's default margin:
10
8
  margin: 0;
9
+ @include govuk-typography-common;
10
+ @include govuk-font-size(19);
11
+
12
+ @include govuk-media-query($until: tablet) {
13
+ // only override line-height on small screens otherwise use govuk-font-size
14
+ // line-height
15
+ line-height: 1.35;
16
+ }
11
17
  }
12
18
 
13
19
  .gem-c-organisation-logo__container {
@@ -52,7 +58,11 @@
52
58
  .gem-c-organisation-logo__link {
53
59
  @include govuk-link-common;
54
60
  @include govuk-link-style-text;
55
- font-family: HelveticaNeue, "Helvetica Neue", Arial, Helvetica, sans-serif;
61
+
62
+ & { // stylelint-disable-line no-duplicate-selectors
63
+ // overriding the govuk-link font
64
+ font-family: HelveticaNeue, "Helvetica Neue", Arial, Helvetica, sans-serif;
65
+ }
56
66
 
57
67
  &:hover {
58
68
  color: $govuk-link-hover-colour;
@@ -2,8 +2,8 @@
2
2
  @import "govuk/components/panel/panel";
3
3
 
4
4
  .gem-c-panel__prepend {
5
- @include govuk-font($size: 24, $weight: bold);
6
5
  margin-bottom: govuk-spacing(3);
6
+ @include govuk-font($size: 24, $weight: bold);
7
7
  }
8
8
 
9
9
  .gem-c-panel__append {
@@ -1,30 +1,30 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
 
3
3
  .gem-c-related-navigation {
4
- @include govuk-text-colour;
5
4
  border-top: 2px solid govuk-colour("blue");
6
5
  margin-bottom: govuk-spacing(9);
6
+ @include govuk-text-colour;
7
7
  }
8
8
 
9
9
  .gem-c-related-navigation__main-heading {
10
- @include govuk-font(19, $weight: bold);
11
10
  margin-top: govuk-spacing(3);
12
11
  margin-bottom: govuk-spacing(2);
12
+ @include govuk-font(19, $weight: bold);
13
13
  }
14
14
 
15
15
  .gem-c-related-navigation__sub-heading {
16
- @include govuk-font(16);
17
16
  border-top: 1px solid govuk-colour("mid-grey");
18
17
  margin: 0;
19
18
  padding-top: govuk-spacing(3);
19
+ @include govuk-font(16);
20
20
  }
21
21
 
22
22
  .gem-c-related-navigation__sub-heading--footer {
23
- @include govuk-font(19, $weight: bold);
24
23
  border-top: 0;
25
24
  padding-top: 0;
26
25
  margin-top: govuk-spacing(3);
27
26
  margin-bottom: govuk-spacing(2);
27
+ @include govuk-font(19, $weight: bold);
28
28
  }
29
29
 
30
30
  .gem-c-related-navigation__main-heading + .gem-c-related-navigation__sub-heading {
@@ -33,9 +33,9 @@
33
33
  }
34
34
 
35
35
  .gem-c-related-navigation__sub-heading--other {
36
- @include govuk-font(19, $weight: bold);
37
36
  border-top: 0;
38
37
  padding-top: 0;
38
+ @include govuk-font(19, $weight: bold);
39
39
  }
40
40
 
41
41
  .gem-c-related-navigation__nav-section {
@@ -59,9 +59,9 @@
59
59
  }
60
60
 
61
61
  .gem-c-related-navigation__toggle {
62
+ display: none;
62
63
  @include govuk-link-common;
63
64
  @include govuk-link-style-no-visited-state;
64
- display: none;
65
65
 
66
66
  .js-enabled & {
67
67
  display: inline-block;
@@ -1,13 +1,12 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
 
3
3
  .gem-c-reorderable-list {
4
- @include govuk-font(19, bold);
5
-
6
4
  list-style-type: none;
7
5
  margin-bottom: govuk-spacing(6);
8
6
  margin-top: 0;
9
7
  padding-left: 0;
10
8
  position: relative;
9
+ @include govuk-font(19, bold);
11
10
 
12
11
  .govuk-form-group {
13
12
  margin-bottom: 0;
@@ -57,8 +56,8 @@
57
56
  }
58
57
 
59
58
  .gem-c-reorderable-list__description {
60
- @include govuk-font(16, regular);
61
59
  margin: 0;
60
+ @include govuk-font(16, regular);
62
61
  }
63
62
 
64
63
  .gem-c-reorderable-list__actions {
@@ -28,13 +28,13 @@ $large-input-size: 50px;
28
28
  }
29
29
 
30
30
  .gem-c-search__label {
31
- @include govuk-font($size: 19, $line-height: $input-size);
32
31
  display: block;
33
32
  color: $govuk-text-colour;
33
+ @include govuk-font($size: 19, $line-height: $input-size);
34
34
 
35
35
  h1 {
36
- @include govuk-font($size: 19, $line-height: $input-size);
37
36
  margin: 0;
37
+ @include govuk-font($size: 19, $line-height: $input-size);
38
38
  }
39
39
 
40
40
  .js-enabled & {
@@ -65,7 +65,6 @@ $large-input-size: 50px;
65
65
  }
66
66
 
67
67
  .gem-c-search__input[type="search"] { // overly specific to prevent some overrides from outside
68
- @include govuk-font($size: 19, $line-height: (28 / 19));
69
68
  margin: 0;
70
69
  width: 100%;
71
70
  height: govuk-em(40, 16);
@@ -77,6 +76,8 @@ $large-input-size: 50px;
77
76
  -webkit-appearance: none;
78
77
  -moz-appearance: none;
79
78
  appearance: none;
79
+ @include govuk-font($size: 19, $line-height: (28 / 19));
80
+
80
81
  @include govuk-media-query($from: tablet) {
81
82
  height: govuk-em(40, 19);
82
83
  padding: govuk-em(6, 19);
@@ -22,9 +22,8 @@ $share-button-height: 30px;
22
22
  }
23
23
 
24
24
  .gem-c-share-links__link {
25
- @include govuk-font(16, $weight: bold);
26
25
  margin-right: govuk-spacing(6);
27
-
26
+ @include govuk-font(16, $weight: bold);
28
27
  @include govuk-template-link-focus-override;
29
28
  }
30
29
 
@@ -64,9 +63,9 @@ $column-width: 9.5em;
64
63
 
65
64
  .gem-c-share-links--columns {
66
65
  .gem-c-share-links__list {
67
- @include govuk-clearfix;
68
66
  display: grid;
69
67
  grid-template-columns: repeat(auto-fit, minmax($column-width, 1fr));
68
+ @include govuk-clearfix;
70
69
  }
71
70
 
72
71
  .gem-c-share-links__list-item {
@@ -1,14 +1,13 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
 
3
3
  .gem-c-step-nav-header {
4
- @include govuk-font(24, $weight: bold);
5
- @include govuk-text-colour;
6
-
7
4
  position: relative;
8
5
  padding: 10px;
9
6
  background: govuk-colour("light-grey");
10
7
  border-bottom: solid 1px govuk-colour("blue");
11
8
  margin-top: govuk-spacing(3);
9
+ @include govuk-font(24, $weight: bold);
10
+ @include govuk-text-colour;
12
11
 
13
12
  @include govuk-media-query($from: tablet) {
14
13
  padding: govuk-spacing(5);
@@ -16,8 +15,8 @@
16
15
  }
17
16
 
18
17
  .gem-c-step-nav-header__part-of {
19
- @include govuk-font(19, $weight: bold);
20
18
  display: block;
19
+ @include govuk-font(19, $weight: bold);
21
20
  }
22
21
 
23
22
  @include govuk-media-query($media-type: print) {
@@ -1,9 +1,9 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
 
3
3
  .gem-c-step-nav-related {
4
- @include govuk-text-colour;
5
4
  border-top: 2px solid govuk-colour("blue");
6
5
  margin-bottom: govuk-spacing(6);
6
+ @include govuk-text-colour;
7
7
  }
8
8
 
9
9
  .gem-c-step-nav-related__heading {
@@ -13,18 +13,18 @@
13
13
  }
14
14
 
15
15
  .gem-c-step-nav-related__links {
16
- @include govuk-font(16);
17
16
  list-style: none;
18
17
  margin: 0;
19
18
  padding: 0;
19
+ @include govuk-font(16);
20
20
  }
21
21
 
22
22
  .gem-c-step-nav-related--singular {
23
23
  margin-bottom: govuk-spacing(2) + 3;
24
24
 
25
25
  .gem-c-step-nav-related__heading {
26
- @include govuk-font(19, $weight: bold, $line-height: 1.4);
27
26
  margin-top: govuk-spacing(4);
27
+ @include govuk-font(19, $weight: bold, $line-height: 1.4);
28
28
  }
29
29
 
30
30
  .gem-c-step-nav-related__pretitle {
@@ -29,10 +29,10 @@ $top-border: solid 1px govuk-colour("mid-grey");
29
29
  // we want to ensure that both large and small step navs have the same size font on mobile
30
30
  // this will stop text resizing if compatibility mode is turned off
31
31
  @mixin step-nav-font($size, $tablet-size: $size, $weight: normal, $line-height: 1.3, $tablet-line-height: $line-height) {
32
- @include govuk-typography-common;
33
32
  font-size: $size + px;
34
33
  font-weight: $weight;
35
34
  line-height: $line-height;
35
+ @include govuk-typography-common;
36
36
 
37
37
  @include govuk-media-query($from: tablet) {
38
38
  font-size: $tablet-size + px;
@@ -167,12 +167,12 @@ $top-border: solid 1px govuk-colour("mid-grey");
167
167
  }
168
168
 
169
169
  .gem-c-step-nav__button--title {
170
- @include step-nav-font(19, $weight: bold, $line-height: 1.2);
171
170
  display: inline-block;
172
171
  padding: govuk-spacing(1) 0 0;
173
172
  text-align: left;
174
173
  color: govuk-colour("black");
175
174
  width: 100%;
175
+ @include step-nav-font(19, $weight: bold, $line-height: 1.2);
176
176
 
177
177
  .gem-c-step-nav--large & {
178
178
  @include step-nav-font(19, $tablet-size: 24, $weight: bold);
@@ -184,11 +184,11 @@ $top-border: solid 1px govuk-colour("mid-grey");
184
184
  }
185
185
 
186
186
  .gem-c-step-nav__button--controls {
187
- @include step-nav-font(15);
188
187
  position: relative;
189
188
  z-index: 1; // this and relative position stops focus outline underlap with border of accordion
190
189
  margin: .5em 0 14px;
191
190
  padding: govuk-spacing(1) 0 govuk-spacing(1);
191
+ @include step-nav-font(15);
192
192
 
193
193
  .gem-c-step-nav--large & {
194
194
  @include step-nav-font(15, $tablet-size: 19);
@@ -321,8 +321,8 @@ $top-border: solid 1px govuk-colour("mid-grey");
321
321
  }
322
322
 
323
323
  .gem-c-step-nav__circle--number {
324
- @include step-nav-font(16, $weight: bold, $line-height: 29px);
325
324
  border: solid $stroke-width govuk-colour("mid-grey");
325
+ @include step-nav-font(16, $weight: bold, $line-height: 29px);
326
326
 
327
327
  .gem-c-step-nav--large & {
328
328
  @include step-nav-font(16, $tablet-size: 19, $weight: bold, $line-height: 29px, $tablet-line-height: 34px);
@@ -339,10 +339,10 @@ $top-border: solid 1px govuk-colour("mid-grey");
339
339
  }
340
340
 
341
341
  .gem-c-step-nav__circle--logic {
342
- @include step-nav-font(19, $weight: bold, $line-height: 28px);
343
342
  left: 3px;
344
343
  width: govuk-em($number-circle-size, 19);
345
344
  height: govuk-em($number-circle-size, 19);
345
+ @include step-nav-font(19, $weight: bold, $line-height: 28px);
346
346
 
347
347
  .gem-c-step-nav--large & {
348
348
  @include step-nav-font(19, $tablet-size: 24, $weight: bold, $line-height: 28px, $tablet-line-height: 34px);
@@ -395,9 +395,9 @@ $top-border: solid 1px govuk-colour("mid-grey");
395
395
  }
396
396
 
397
397
  .gem-c-step-nav__title {
398
- @include govuk-text-colour;
399
- @include step-nav-font(19, $weight: bold, $line-height: 1.4);
400
398
  margin: 0;
399
+ @include step-nav-font(19, $weight: bold, $line-height: 1.4);
400
+ @include govuk-text-colour;
401
401
 
402
402
  .gem-c-step-nav--large & {
403
403
  @include step-nav-font(19, $tablet-size: 24, $weight: bold, $line-height: 1.4);
@@ -405,11 +405,11 @@ $top-border: solid 1px govuk-colour("mid-grey");
405
405
  }
406
406
 
407
407
  .gem-c-step-nav__toggle-link {
408
- @include step-nav-font(15, $line-height: 1.2);
409
408
  display: block;
410
409
  color: $govuk-link-colour;
411
410
  text-transform: capitalize;
412
411
  padding-bottom: govuk-spacing(6);
412
+ @include step-nav-font(15, $line-height: 1.2);
413
413
 
414
414
  .gem-c-step-nav--large & {
415
415
  @include step-nav-font(15, $tablet-size: 19, $line-height: 1.2);
@@ -417,9 +417,9 @@ $top-border: solid 1px govuk-colour("mid-grey");
417
417
  }
418
418
 
419
419
  .gem-c-step-nav__panel {
420
- @include govuk-text-colour;
421
- @include step-nav-font(16);
422
420
  padding-bottom: govuk-spacing(5);
421
+ @include step-nav-font(16);
422
+ @include govuk-text-colour;
423
423
 
424
424
  .gem-c-step-nav--large & {
425
425
  @include step-nav-font(16, $tablet-size: 19);
@@ -58,10 +58,10 @@
58
58
  .gem-c-subscription-links__item--button {
59
59
  cursor: pointer;
60
60
  display: none;
61
- @include govuk-font(19, $weight: bold);
62
61
  padding: govuk-spacing(2);
63
62
  border: 1px solid $gem-quiet-button-colour;
64
63
  background-color: $gem-secondary-button-background-colour;
64
+ @include govuk-font(19, $weight: bold);
65
65
 
66
66
  .js-enabled & {
67
67
  display: inline-block;
@@ -33,11 +33,11 @@ $table-row-even-background-colour: govuk-colour("light-grey");
33
33
  }
34
34
 
35
35
  .app-table__sort-link {
36
- @include govuk-link-style-no-visited-state;
37
36
  position: relative;
38
37
  padding-right: $sort-link-arrow-size;
39
38
  color: $govuk-link-colour;
40
39
  text-decoration: none;
40
+ @include govuk-link-style-no-visited-state;
41
41
  }
42
42
 
43
43
  .app-table__sort-link:focus {
@@ -1,18 +1,18 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
 
3
3
  .gem-c-translation-nav {
4
+ margin-bottom: govuk-spacing(6);
5
+ border-bottom: 1px solid $govuk-border-colour;
4
6
  @include responsive-top-margin;
5
7
  @include govuk-text-colour;
6
8
  @include govuk-font(16);
7
- margin-bottom: govuk-spacing(6);
8
- border-bottom: 1px solid $govuk-border-colour;
9
9
  }
10
10
 
11
11
  .gem-c-translation-nav__list {
12
- @include govuk-clearfix;
13
12
  list-style: none;
14
13
  margin: 0 (- govuk-spacing(2));
15
14
  padding: 0;
15
+ @include govuk-clearfix;
16
16
  }
17
17
 
18
18
  .gem-c-translation-nav__list-item {
@@ -2,11 +2,11 @@
2
2
  @import "govuk/components/warning-text/warning-text";
3
3
 
4
4
  .gem-c-warning-text .govuk-warning-text__text {
5
+ margin: 0;
5
6
  // Ensure the font-size is always set to 19px
6
7
  // This prevents the default user agent styles being applied to heading elements used in the warning-text component following a change in v5.0.0, see:
7
8
  // https://github.com/alphagov/govuk-frontend/pull/4267
8
9
  @include govuk-font($size: 19, $weight: bold);
9
- margin: 0;
10
10
  }
11
11
 
12
12
  .gem-c-warning-text__text--no-indent {
@@ -56,8 +56,8 @@
56
56
 
57
57
  .attachment-details {
58
58
  h2 {
59
- @include govuk-font($size: 27);
60
59
  margin: 0;
60
+ @include govuk-font($size: 27);
61
61
  }
62
62
 
63
63
  p {
@@ -97,12 +97,13 @@
97
97
  }
98
98
 
99
99
  .accessibility-warning {
100
+ word-break: break-word;
101
+ word-wrap: break-word;
102
+
100
103
  h2 {
101
- @include govuk-font($size: 16);
102
104
  margin: 0;
105
+ @include govuk-font($size: 16);
103
106
  }
104
- word-break: break-word;
105
- word-wrap: break-word;
106
107
  }
107
108
 
108
109
  .js-hidden {
@@ -19,8 +19,8 @@
19
19
  }
20
20
 
21
21
  .contact {
22
- @include govuk-clearfix;
23
22
  position: relative;
23
+ @include govuk-clearfix;
24
24
 
25
25
  .content {
26
26
  float: none;
@@ -13,14 +13,14 @@ $highlight-answer-color: govuk-colour("white");
13
13
  margin: 0 -1em 1em;
14
14
 
15
15
  p {
16
- @include govuk-font($size: 24, $weight: bold);
17
16
  color: $highlight-answer-color;
17
+ @include govuk-font($size: 24, $weight: bold);
18
18
 
19
19
  em {
20
- @include govuk-font($size: 80, $weight: bold);
21
20
  display: block;
22
21
  padding-top: .1em;
23
22
  color: $highlight-answer-color;
23
+ @include govuk-font($size: 80, $weight: bold);
24
24
  }
25
25
  }
26
26