govuk_publishing_components 24.10.0 → 24.10.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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +1 -1
  3. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +1 -0
  4. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +27 -24
  5. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +1 -1
  6. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -0
  7. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +1 -0
  8. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +1 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +1 -0
  12. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss +19 -16
  13. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_fraction.scss +1 -0
  14. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +30 -27
  15. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -0
  17. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -0
  18. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +26 -21
  19. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -0
  20. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss +19 -16
  21. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_summary.scss +21 -18
  22. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -0
  23. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +1 -0
  24. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -0
  25. data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +7 -7
  26. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +1 -1
  27. data/app/views/govuk_publishing_components/components/_metadata.html.erb +6 -6
  28. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +1 -1
  29. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +4 -4
  30. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -1
  31. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +1 -1
  32. data/app/views/govuk_publishing_components/components/_success_alert.html.erb +1 -1
  33. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +1 -1
  34. data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +2 -2
  35. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +2 -2
  36. data/config/locales/en.yml +2 -3
  37. data/lib/govuk_publishing_components/version.rb +1 -1
  38. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da7ab3cbd89ef8a20000b0a9d6ffad43c92532e787106e6821cccd7c8d9f90b2
4
- data.tar.gz: 1362df93036bb10322e881d5136a0303be0d96a745541afc122ad79949d36820
3
+ metadata.gz: 5314a0b0efdfbb0c6f6c892958401165121c5350c5dacf5a74efbc42772702f3
4
+ data.tar.gz: 205e88be5a91f61d95fc5ad8ac741a5ad07c886372c415820776cbccb0dc52c7
5
5
  SHA512:
6
- metadata.gz: a50d991265471b7c0025b59f50c2a51f4599c6fc5e629ad8c0f64158af0570812224938e08ad36193587b46c03a8bf37200def0167d47537868d1a9b31839305
7
- data.tar.gz: a3104340ed6d431791b48ebf1fc9c8b2d89563c608cbe050082efdafc68a949d13bf5f198be9c39b7ad7b1e1d2b18de1556a9f21c9a9c89e65c1b52db02942ba
6
+ metadata.gz: 8ffaca1d426b22f545f48123238214fcb6cebc6500d309b56cfadb7242acdca54557819c3382eab6bf77287fd24fb26f9e26912fc7b2210dbb0d38955cb60a60
7
+ data.tar.gz: ee07a7beae52e317747039ed002271f0526afdd126b7b8de58b2d624100bebf79967c2d0188d835c99021d70f3f3f6d19a8407185822cc16452a25cd8f886335
@@ -5,7 +5,7 @@
5
5
 
6
6
  var GOVUK = global.GOVUK || {}
7
7
  var EMAIL_PATTERN = /[^\s=/?&]+(?:@|%40)[^\s=/?&]+/g
8
- var POSTCODE_PATTERN = /[A-PR-UWYZ][A-HJ-Z]?[0-9][0-9A-HJKMNPR-Y]?(?:[\s+]|%20)*[0-9](?!refund)[ABD-HJLNPQ-Z]{2,3}/gi
8
+ var POSTCODE_PATTERN = /\b[A-PR-UWYZ][A-HJ-Z]?[0-9][0-9A-HJKMNPR-Y]?(?:[\s+]|%20)*[0-9](?!refund)[ABD-HJLNPQ-Z]{2,3}\b/gi
9
9
  var DATE_PATTERN = /\d{4}(-?)\d{2}(-?)\d{2}/g
10
10
  var ESCAPE_REGEX_PATTERN = /[|\\{}()[\]^$+*?.]/g
11
11
 
@@ -21,6 +21,7 @@
21
21
  @import "govspeak/typography";
22
22
  @import "govspeak/warning-callout";
23
23
 
24
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
24
25
  .gem-c-govspeak {
25
26
  &.direction-rtl {
26
27
  direction: rtl;
@@ -1,33 +1,36 @@
1
1
  $info-background: #d5e8f3;
2
2
  $high-alert-border: #cc0000;
3
3
 
4
- .gem-c-govspeak .advisory {
5
- background-image: image-url("govuk_publishing_components/icon-important.svg");
6
- background-repeat: no-repeat;
7
- background-size: 30px 30px;
8
- background-position: 98% center;
9
- background-color: $info-background;
10
- line-height: 1.3em;
11
- margin: 0 -1em 1em;
12
- padding: govuk-spacing(3) govuk-spacing(8) govuk-spacing(3) govuk-spacing(3);
13
- text-align: left;
4
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
5
+ .gem-c-govspeak {
6
+ .advisory {
7
+ background-image: image-url("govuk_publishing_components/icon-important.svg");
8
+ background-repeat: no-repeat;
9
+ background-size: 30px 30px;
10
+ background-position: 98% center;
11
+ background-color: $info-background;
12
+ line-height: 1.3em;
13
+ margin: 0 -1em 1em;
14
+ padding: govuk-spacing(3) govuk-spacing(8) govuk-spacing(3) govuk-spacing(3);
15
+ text-align: left;
14
16
 
15
- p {
16
- margin: 0 .75em 0 0;
17
- min-height: 1.75em;
18
- padding-right: 3em;
19
- }
17
+ p {
18
+ margin: 0 .75em 0 0;
19
+ min-height: 1.75em;
20
+ padding-right: 3em;
21
+ }
20
22
 
21
- strong {
22
- font-weight: 400;
23
- }
23
+ strong {
24
+ font-weight: 400;
25
+ }
24
26
 
25
- &.high-alert {
26
- background-color: govuk-colour("light-grey", $legacy: "grey-3");
27
- border: 1px solid $high-alert-border;
28
- }
27
+ &.high-alert {
28
+ background-color: govuk-colour("light-grey", $legacy: "grey-3");
29
+ border: 1px solid $high-alert-border;
30
+ }
29
31
 
30
- @include govuk-media-query($until: tablet) {
31
- margin: 0 0 1em;
32
+ @include govuk-media-query($until: tablet) {
33
+ margin: 0 0 1em;
34
+ }
32
35
  }
33
36
  }
@@ -7,8 +7,8 @@
7
7
 
8
8
  // stylelint-disable max-nesting-depth
9
9
 
10
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
10
11
  .gem-c-govspeak {
11
-
12
12
  // Scope attachment and attachment-link component styles to gem-c-govspeak
13
13
  @import "../attachment-link";
14
14
  @import "../attachment";
@@ -1,4 +1,5 @@
1
1
  // stylelint-disable scss/at-extend-no-missing-placeholder
2
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
2
3
  .gem-c-govspeak {
3
4
  @import "govuk/components/button/button";
4
5
 
@@ -6,6 +6,7 @@
6
6
  // - alphagov/whitehall: ✔︎
7
7
  // - alphagov/govspeak: ✔︎
8
8
 
9
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
9
10
  .gem-c-govspeak {
10
11
  .call-to-action {
11
12
  margin: 2em 0;
@@ -11,6 +11,7 @@
11
11
 
12
12
  // stylelint-disable max-nesting-depth
13
13
 
14
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
14
15
  .gem-c-govspeak {
15
16
  // DEFAULT CHART STYLES
16
17
 
@@ -7,6 +7,7 @@
7
7
 
8
8
  // stylelint-disable max-nesting-depth
9
9
 
10
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
10
11
  .gem-c-govspeak {
11
12
  // .address is used by the `$A` markdown pattern
12
13
  .address,
@@ -5,6 +5,7 @@
5
5
  // - alphagov/whitehall: ✔︎
6
6
  // - alphagov/govspeak: ✔︎
7
7
 
8
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
8
9
  .gem-c-govspeak {
9
10
  .example {
10
11
  border-left: 10px solid govuk-colour("mid-grey", $legacy: "grey-3");
@@ -11,6 +11,7 @@
11
11
 
12
12
  // stylelint-disable max-nesting-depth
13
13
 
14
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
14
15
  .gem-c-govspeak {
15
16
  .footnotes {
16
17
  border-top: 1px solid govuk-colour("mid-grey", $legacy: "grey-2");
@@ -1,21 +1,24 @@
1
- .gem-c-govspeak .form-download {
2
- padding: .25em 0;
1
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
2
+ .gem-c-govspeak {
3
+ .form-download {
4
+ padding: .25em 0;
3
5
 
4
- @include govuk-media-query($until: tablet) {
5
- margin: 1em 0 1.5em;
6
- }
6
+ @include govuk-media-query($until: tablet) {
7
+ margin: 1em 0 1.5em;
8
+ }
7
9
 
8
- p {
9
- padding-right: 3em;
10
- }
10
+ p {
11
+ padding-right: 3em;
12
+ }
11
13
 
12
- a {
13
- display: block;
14
- font-weight: 600;
15
- background-image: image-url("govuk_publishing_components/icon-file-download.svg");
16
- background-repeat: no-repeat;
17
- background-size: 40px 40px;
18
- min-height: 2.5em;
19
- padding: 0 0 0 50px;
14
+ a {
15
+ display: block;
16
+ font-weight: 600;
17
+ background-image: image-url("govuk_publishing_components/icon-file-download.svg");
18
+ background-repeat: no-repeat;
19
+ background-size: 40px 40px;
20
+ min-height: 2.5em;
21
+ padding: 0 0 0 50px;
22
+ }
20
23
  }
21
24
  }
@@ -6,6 +6,7 @@
6
6
  // - alphagov/whitehall: ✔︎
7
7
  // - alphagov/govspeak: ✘
8
8
 
9
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
9
10
  .gem-c-govspeak {
10
11
  .fraction {
11
12
  sup,
@@ -3,41 +3,44 @@
3
3
  $highlight-answer-bg-color: govuk-colour("green");
4
4
  $highlight-answer-color: govuk-colour("white");
5
5
 
6
- .gem-c-govspeak .highlight-answer {
7
- background-color: $highlight-answer-bg-color;
8
- color: $highlight-answer-color;
9
- text-align: center;
10
- padding: 1.75em .75em 1.25em;
11
- margin: 0 -1em 1em;
12
-
13
- p {
14
- @include govuk-font($size: 24, $weight: bold);
6
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
7
+ .gem-c-govspeak {
8
+ .highlight-answer {
9
+ background-color: $highlight-answer-bg-color;
15
10
  color: $highlight-answer-color;
11
+ text-align: center;
12
+ padding: 1.75em .75em 1.25em;
13
+ margin: 0 -1em 1em;
16
14
 
17
- em {
18
- @include govuk-font($size: 80, $weight: bold);
19
- display: block;
20
- padding-top: .1em;
15
+ p {
16
+ @include govuk-font($size: 24, $weight: bold);
21
17
  color: $highlight-answer-color;
22
- }
23
- }
24
18
 
25
- p:last-child {
26
- margin-bottom: 0;
27
- }
19
+ em {
20
+ @include govuk-font($size: 80, $weight: bold);
21
+ display: block;
22
+ padding-top: .1em;
23
+ color: $highlight-answer-color;
24
+ }
25
+ }
28
26
 
29
- @include govuk-media-query($until: tablet) {
30
- margin: 0 0 1em;
31
- @include govuk-font($size: 48);
27
+ p:last-child {
28
+ margin-bottom: 0;
29
+ }
32
30
 
33
- p {
34
- font-size: 1em;
35
- line-height: inherit;
31
+ @include govuk-media-query($until: tablet) {
32
+ margin: 0 0 1em;
33
+ @include govuk-font($size: 48);
36
34
 
37
- em {
35
+ p {
38
36
  font-size: 1em;
39
- padding-top: 0;
40
- display: inline;
37
+ line-height: inherit;
38
+
39
+ em {
40
+ font-size: 1em;
41
+ padding-top: 0;
42
+ display: inline;
43
+ }
41
44
  }
42
45
  }
43
46
  }
@@ -4,6 +4,7 @@
4
4
  // - alphagov/whitehall: ✔︎
5
5
  // - alphagov/govspeak: ✔︎
6
6
 
7
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
7
8
  .gem-c-govspeak {
8
9
  img {
9
10
  width: auto;
@@ -6,6 +6,7 @@
6
6
  // - alphagov/whitehall: ✔︎
7
7
  // - alphagov/govspeak: ✔︎
8
8
 
9
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
9
10
  .gem-c-govspeak {
10
11
  .info-notice {
11
12
  border-left: 10px solid govuk-colour("mid-grey", $legacy: "grey-3");
@@ -5,6 +5,7 @@
5
5
  // - alphagov/whitehall: ✔︎
6
6
  // - alphagov/govspeak: ✔︎
7
7
 
8
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
8
9
  .gem-c-govspeak {
9
10
  .legislative-list {
10
11
  list-style: none;
@@ -1,29 +1,34 @@
1
- .gem-c-govspeak .place {
2
- margin: 1.5em 0;
3
- border-bottom: solid 1px govuk-colour("mid-grey", $legacy: "grey-2");
4
- padding-bottom: 1.5em;
1
+ // stylelint-disable max-nesting-depth
2
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
3
+ .gem-c-govspeak {
4
+ .place {
5
+ margin: 1.5em 0;
6
+ border-bottom: solid 1px govuk-colour("mid-grey", $legacy: "grey-2");
7
+ padding-bottom: 1.5em;
5
8
 
6
- .address {
7
- margin: 0;
8
- padding: 0;
9
- width: auto;
10
- display: block;
11
- }
9
+ .address {
10
+ margin: 0;
11
+ padding: 0;
12
+ width: auto;
13
+ display: block;
14
+ }
12
15
 
13
- .url {
14
- overflow: hidden;
15
- text-overflow: ellipsis;
16
- }
16
+ .url {
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ }
17
20
 
18
- .additional-information {
19
- @include govuk-font($size: 16);
21
+ .additional-information {
22
+ @include govuk-font($size: 16);
20
23
 
21
- p {
22
- margin: .25em 0;
24
+ p {
25
+ margin: .25em 0;
26
+ }
23
27
  }
24
- }
25
28
 
26
- @include govuk-media-query($until: tablet) {
27
- margin: .75em 0;
29
+ @include govuk-media-query($until: tablet) {
30
+ margin: .75em 0;
31
+ }
28
32
  }
29
33
  }
34
+ // stylelint-enable max-nesting-depth
@@ -5,6 +5,7 @@
5
5
  // - alphagov/whitehall: ✔︎
6
6
  // - alphagov/govspeak: ✔︎
7
7
 
8
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
8
9
  .gem-c-govspeak {
9
10
  .stat-headline {
10
11
  margin-bottom: govuk-spacing(3);
@@ -1,21 +1,24 @@
1
- .gem-c-govspeak .steps {
2
- padding-left: 0;
3
- margin-left: 0;
4
- overflow: hidden;
5
-
6
- > li {
7
- background-position: 0 .87em;
8
- background-repeat: no-repeat;
9
- list-style-type: decimal;
1
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
2
+ .gem-c-govspeak {
3
+ .steps {
4
+ padding-left: 0;
10
5
  margin-left: 0;
11
- padding: .75em 0 .75em 2.5em;
6
+ overflow: hidden;
7
+
8
+ > li {
9
+ background-position: 0 .87em;
10
+ background-repeat: no-repeat;
11
+ list-style-type: decimal;
12
+ margin-left: 0;
13
+ padding: .75em 0 .75em 2.5em;
12
14
 
13
- @for $i from 1 through 30 {
14
- &:nth-child(#{$i}) {
15
- background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 250' preserveAspectRatio='xMinYMin meet'%3E%3Cg%3E%3Ccircle r='50%25' cx='50%25' cy='50%25' class='circle-back'%3E%3C/circle%3E%3Ctext x='50%25' y='50%25' text-anchor='middle' dy='0.3em' font-family='nta,arial,sans-serif' font-size='8rem' fill='%23ffffff'%3E#{$i}%3C/text%3E%3C/g%3E%3C/svg%3E ");
16
- background-repeat: no-repeat;
17
- background-position: .2em .7em;
18
- background-size: 1.4em 1.4em;
15
+ @for $i from 1 through 30 {
16
+ &:nth-child(#{$i}) {
17
+ background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 250' preserveAspectRatio='xMinYMin meet'%3E%3Cg%3E%3Ccircle r='50%25' cx='50%25' cy='50%25' class='circle-back'%3E%3C/circle%3E%3Ctext x='50%25' y='50%25' text-anchor='middle' dy='0.3em' font-family='nta,arial,sans-serif' font-size='8rem' fill='%23ffffff'%3E#{$i}%3C/text%3E%3C/g%3E%3C/svg%3E ");
18
+ background-repeat: no-repeat;
19
+ background-position: .2em .7em;
20
+ background-size: 1.4em 1.4em;
21
+ }
19
22
  }
20
23
  }
21
24
  }
@@ -1,24 +1,27 @@
1
- .gem-c-govspeak .summary {
2
- margin: 0 0 2em;
3
- padding: 0;
4
- color: $govuk-text-colour;
5
-
6
- p {
7
- @include govuk-font($size: 19);
8
- }
9
-
10
- @include govuk-media-query($until: tablet) {
1
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
2
+ .gem-c-govspeak {
3
+ .summary {
11
4
  margin: 0 0 2em;
12
5
  padding: 0;
13
- }
6
+ color: $govuk-text-colour;
14
7
 
15
- p,
16
- h2 {
17
- border: 0;
18
- margin: 0 .75em 0 0;
19
- }
8
+ p {
9
+ @include govuk-font($size: 19);
10
+ }
11
+
12
+ @include govuk-media-query($until: tablet) {
13
+ margin: 0 0 2em;
14
+ padding: 0;
15
+ }
16
+
17
+ p,
18
+ h2 {
19
+ border: 0;
20
+ margin: 0 .75em 0 0;
21
+ }
20
22
 
21
- h2 {
22
- line-height: 1.35em;
23
+ h2 {
24
+ line-height: 1.35em;
25
+ }
23
26
  }
24
27
  }
@@ -5,6 +5,7 @@
5
5
  // - alphagov/whitehall: ✔︎
6
6
  // - alphagov/govspeak: ✔︎
7
7
 
8
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
8
9
  .gem-c-govspeak {
9
10
  table {
10
11
  border-collapse: collapse;
@@ -11,6 +11,7 @@
11
11
 
12
12
  // stylelint-disable max-nesting-depth
13
13
 
14
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
14
15
  .gem-c-govspeak {
15
16
  @include markdown-typography;
16
17
 
@@ -6,6 +6,7 @@
6
6
  // - alphagov/whitehall: ✔︎
7
7
  // - alphagov/govspeak: ✔︎
8
8
 
9
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
9
10
  .gem-c-govspeak {
10
11
  .help-notice {
11
12
  $icon-size: 34px;
@@ -6,37 +6,37 @@
6
6
  <ul id="proposition-links">
7
7
  <li>
8
8
  <a class="<%= 'active' if active == 'departments' %>" href="/government/organisations">
9
- <%= t("govuk_component.government_navigation.departments", default: "Departments") %>
9
+ <%= t("components.government_navigation.departments", default: "Departments") %>
10
10
  </a>
11
11
  </li>
12
12
  <li>
13
13
  <a class="<%= 'active' if active == 'worldwide' %>" href="/government/world">
14
- <%= t("govuk_component.government_navigation.worldwide", default: "Worldwide") %>
14
+ <%= t("components.government_navigation.worldwide", default: "Worldwide") %>
15
15
  </a>
16
16
  </li>
17
17
  <li>
18
18
  <a class="<%= 'active' if active == 'how-government-works' %>" href="/government/how-government-works">
19
- <%= t("govuk_component.government_navigation.how-government-works", default: "How government works") %>
19
+ <%= t("components.government_navigation.how-government-works", default: "How government works") %>
20
20
  </a>
21
21
  </li>
22
22
  <li>
23
23
  <a class="<%= 'active' if active == 'get-involved' %>" href="/government/get-involved">
24
- <%= t("govuk_component.government_navigation.get-involved", default: "Get involved") %>
24
+ <%= t("components.government_navigation.get-involved", default: "Get involved") %>
25
25
  </a>
26
26
  </li>
27
27
  <li class="clear-child">
28
28
  <a class="<%= 'active' if active == 'consultations' %>" href="<%= CGI::escapeHTML('/search/policy-papers-and-consultations?content_store_document_type[]=open_consultations&content_store_document_type[]=closed_consultations') %>">
29
- <%= t("govuk_component.government_navigation.consultations", default: "Consultations") %>
29
+ <%= t("components.government_navigation.consultations", default: "Consultations") %>
30
30
  </a>
31
31
  </li>
32
32
  <li>
33
33
  <a class="<%= 'active' if active == 'statistics' %>" href="/search/research-and-statistics">
34
- <%= t("govuk_component.government_navigation.statistics", default: "Statistics") %>
34
+ <%= t("components.government_navigation.statistics", default: "Statistics") %>
35
35
  </a>
36
36
  </li>
37
37
  <li>
38
38
  <a class="<%= 'active' if active == 'announcements' %>" href="/news-and-communications">
39
- <%= t("govuk_component.government_navigation.news_and_communications", default: "News and communications") %>
39
+ <%= t("components.government_navigation.news_and_communications", default: "News and communications") %>
40
40
  </a>
41
41
  </li>
42
42
  </ul>
@@ -1,7 +1,7 @@
1
1
  <%
2
2
  environment ||= nil
3
3
  full_width ||= false
4
- navigation_aria_label ||= "Top level"
4
+ navigation_aria_label ||= t("components.layout_header.top_level")
5
5
  navigation_items ||= []
6
6
  product_name ||= nil
7
7
  remove_bottom_border ||= false
@@ -18,34 +18,34 @@
18
18
  <%= content_tag :div, class: classes, data: { module: "gem-toggle" } do %>
19
19
  <dl data-module="gem-track-click">
20
20
  <% if from.any? %>
21
- <dt class="gem-c-metadata__term"><%= t("govuk_component.metadata.from", default: "From") %>:</dt>
21
+ <dt class="gem-c-metadata__term"><%= t("components.metadata.from", default: "From") %>:</dt>
22
22
  <dd class="gem-c-metadata__definition">
23
23
  <%= render 'govuk_publishing_components/components/metadata/sentence', items: from, toggle_id: "from-#{SecureRandom.hex(4)}" %>
24
24
  </dd>
25
25
  <% end %>
26
26
  <% if part_of.any? %>
27
- <dt class="gem-c-metadata__term"><%= t("govuk_component.metadata.part_of", default: "Part of") %>:</dt>
27
+ <dt class="gem-c-metadata__term"><%= t("components.metadata.part_of", default: "Part of") %>:</dt>
28
28
  <dd class="gem-c-metadata__definition">
29
29
  <%= render 'govuk_publishing_components/components/metadata/sentence', items: part_of, toggle_id: "part-of-#{SecureRandom.hex(4)}" %>
30
30
  </dd>
31
31
  <% end %>
32
32
  <% if local_assigns.include?(:history) %>
33
- <dt class="gem-c-metadata__term"><%= t("govuk_component.metadata.history", default: "History") %>:</dt>
33
+ <dt class="gem-c-metadata__term"><%= t("components.metadata.history", default: "History") %>:</dt>
34
34
  <dd class="gem-c-metadata__definition"><%= history %></dd>
35
35
  <% end %>
36
36
  <% if local_assigns.include?(:first_published) && first_published %>
37
- <dt class="gem-c-metadata__term"><%= t("govuk_component.metadata.published", default: "Published") %>:</dt>
37
+ <dt class="gem-c-metadata__term"><%= t("components.metadata.published", default: "Published") %>:</dt>
38
38
  <dd class="gem-c-metadata__definition"><%= first_published %></dd>
39
39
  <% end %>
40
40
  <% if local_assigns.include?(:last_updated) && last_updated %>
41
- <dt class="gem-c-metadata__term"><%= t("govuk_component.metadata.last_updated", default: "Last updated") %>:</dt>
41
+ <dt class="gem-c-metadata__term"><%= t("components.metadata.last_updated", default: "Last updated") %>:</dt>
42
42
  <dd class="gem-c-metadata__definition">
43
43
  <%= last_updated %><% if local_assigns.include?(:see_updates_link) %>,
44
44
  <a href="#history" class="gem-c-metadata__definition-link"
45
45
  data-track-category="content-history"
46
46
  data-track-action="see-all-updates-link-clicked"
47
47
  data-track-label="history">
48
- <%= t("govuk_component.metadata.see_all_updates", default: "see all updates") %>
48
+ <%= t("components.metadata.see_all_updates", default: "see all updates") %>
49
49
  </a>
50
50
  <% end %>
51
51
  </dd>
@@ -2,7 +2,7 @@
2
2
  <nav
3
3
  class="gem-c-pagination"
4
4
  role="navigation"
5
- aria-label="<%= t("govuk_component.previous_and_next_navigation.pagination", default: "Pagination") %>"
5
+ aria-label="<%= t("components.previous_and_next_navigation.pagination", default: "Pagination") %>"
6
6
  >
7
7
  <ul class="gem-c-pagination__list" data-module="gem-track-click">
8
8
  <% if local_assigns.include?(:previous_page) %>
@@ -22,10 +22,10 @@
22
22
  class="gem-c-step-nav js-hidden <% unless small %>gem-c-step-nav--large<% end %>"
23
23
  <%= "data-remember" if remember_last_step %>
24
24
  <%= "data-id=#{tracking_id}" if tracking_id %>
25
- data-show-text="<%= t("govuk_component.step_by_step_nav.show", default: "show") %>"
26
- data-hide-text="<%= t("govuk_component.step_by_step_nav.hide", default: "hide") %>"
27
- data-show-all-text="<%= t("govuk_component.step_by_step_nav.show_all", default: "Show all steps") %>"
28
- data-hide-all-text="<%= t("govuk_component.step_by_step_nav.hide_all", default: "Hide all steps") %>"
25
+ data-show-text="<%= t("components.step_by_step_nav.show", default: "show") %>"
26
+ data-hide-text="<%= t("components.step_by_step_nav.hide", default: "hide") %>"
27
+ data-show-all-text="<%= t("components.step_by_step_nav.show_all", default: "Show all steps") %>"
28
+ data-hide-all-text="<%= t("components.step_by_step_nav.hide_all", default: "Hide all steps") %>"
29
29
  >
30
30
  <ol class="gem-c-step-nav__steps">
31
31
  <% steps.each_with_index do |step, step_index| %>
@@ -1,6 +1,6 @@
1
1
  <%
2
2
  links ||= []
3
- pretitle ||= t("govuk_component.step_by_step_nav_related.part_of", default: "Part of")
3
+ pretitle ||= t("components.step_by_step_nav_related.part_of", default: "Part of")
4
4
  always_display_as_list ||= false
5
5
  %>
6
6
  <% if links.any? %>
@@ -23,7 +23,7 @@
23
23
  <% if sl_helper.component_data_is_valid? %>
24
24
  <%= tag.section class: css_classes, data: data do %>
25
25
  <% unless hide_heading %>
26
- <h2 class="gem-c-subscription-links__hidden-header visuallyhidden"><%= t("govuk_component.subscription_links.subscriptions", default: "Subscriptions") %></h2>
26
+ <h2 class="gem-c-subscription-links__hidden-header visuallyhidden"><%= t("components.subscription_links.subscriptions", default: "Subscriptions") %></h2>
27
27
  <% end %>
28
28
  <ul
29
29
  class="gem-c-subscription-links__list<%= ' gem-c-subscription-links__list--small' if local_assigns[:small_form] == true %>"
@@ -13,7 +13,7 @@
13
13
  module: "initial-focus",
14
14
  } do %>
15
15
  <div class="govuk-notification-banner__header">
16
- <%= tag.h2 t("govuk_component.success_alert.success", default: "Success"), class: "govuk-notification-banner__title", id: title_id %>
16
+ <%= tag.h2 t("components.success_alert.success", default: "Success"), class: "govuk-notification-banner__title", id: title_id %>
17
17
  </div>
18
18
  <div class="govuk-notification-banner__content">
19
19
  <% if description.present? %>
@@ -7,7 +7,7 @@
7
7
  class="govuk-header__menu-button govuk-js-header-toggle gem-c-header__menu-button"
8
8
  type="button"
9
9
  >
10
- Menu
10
+ <%= t("components.layout_header.menu") %>
11
11
  </button>
12
12
  <%= tag.nav class: "gem-c-header__nav", aria: { label: navigation_aria_label } do %>
13
13
  <ul id="navigation" class="govuk-header__navigation govuk-header__navigation--end">
@@ -13,8 +13,8 @@
13
13
  class="gem-c-metadata__definition-link"
14
14
  data-controls="toggle-<%= toggle_id %>"
15
15
  data-expanded="false"
16
- data-toggled-text="<%= t("govuk_component.metadata.toggle_less", default: "Show fewer") %>">
17
- <%= t("govuk_component.metadata.toggle_more", number: remaining.length, default: "+ #{remaining.length} more") %>
16
+ data-toggled-text="<%= t("components.metadata.toggle_less", default: "Show fewer") %>">
17
+ <%= t("components.metadata.toggle_more", number: remaining.length, default: "+ #{remaining.length} more") %>
18
18
  </a>
19
19
  </div>
20
20
  <span id="toggle-<%= toggle_id %>" class="gem-c-metadata__toggle-items js-hidden"><%= remaining.to_sentence.html_safe %></span>
@@ -54,8 +54,8 @@
54
54
  class="gem-c-related-navigation__toggle"
55
55
  data-controls="toggle_<%= section_title %>"
56
56
  data-expanded="false"
57
- data-toggled-text="<%= t("govuk_component.metadata.toggle_less", default: "Show fewer") %>">
58
- <%= t("govuk_component.metadata.toggle_more",
57
+ data-toggled-text="<%= t("components.metadata.toggle_less", default: "Show fewer") %>">
58
+ <%= t("components.metadata.toggle_more",
59
59
  number: related_nav_helper.remaining_link_count(links),
60
60
  default: "+ #{related_nav_helper.remaining_link_count(links)} more") %>
61
61
  </a>
@@ -44,8 +44,8 @@ en:
44
44
  contents: "Contents"
45
45
  feedback:
46
46
  is_this_page_useful: "Is this page useful?"
47
- yes: "Yes"
48
- no: "No"
47
+ "yes": "Yes"
48
+ "no": "No"
49
49
  maybe: "Maybe"
50
50
  is_useful: "this page is useful"
51
51
  is_not_useful: "this page is not useful"
@@ -65,7 +65,6 @@ en:
65
65
  show_button: "Show search"
66
66
  hide_button: "Hide search"
67
67
  top_level: "Top level"
68
- nav_items_aria_label: "Show or hide Top Level Navigation"
69
68
  menu: "Menu"
70
69
  organisation_schema:
71
70
  all_content_search_description: "Find all content from %{organisation}"
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "24.10.0".freeze
2
+ VERSION = "24.10.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 24.10.0
4
+ version: 24.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-28 00:00:00.000000000 Z
11
+ date: 2021-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '2'
167
+ - !ruby/object:Gem::Dependency
168
+ name: i18n-coverage
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: jasmine
169
183
  requirement: !ruby/object:Gem::Requirement