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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +27 -24
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss +19 -16
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_fraction.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +30 -27
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +26 -21
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss +19 -16
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_summary.scss +21 -18
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -0
- data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +7 -7
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +6 -6
- data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +4 -4
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_success_alert.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +2 -2
- data/config/locales/en.yml +2 -3
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5314a0b0efdfbb0c6f6c892958401165121c5350c5dacf5a74efbc42772702f3
|
|
4
|
+
data.tar.gz: 205e88be5a91f61d95fc5ad8ac741a5ad07c886372c415820776cbccb0dc52c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 =
|
|
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
|
-
.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
p {
|
|
18
|
+
margin: 0 .75em 0 0;
|
|
19
|
+
min-height: 1.75em;
|
|
20
|
+
padding-right: 3em;
|
|
21
|
+
}
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
strong {
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
}
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
+
@include govuk-media-query($until: tablet) {
|
|
33
|
+
margin: 0 0 1em;
|
|
34
|
+
}
|
|
32
35
|
}
|
|
33
36
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss
CHANGED
|
@@ -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";
|
|
@@ -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");
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
@include govuk-media-query($until: tablet) {
|
|
7
|
+
margin: 1em 0 1.5em;
|
|
8
|
+
}
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
p {
|
|
11
|
+
padding-right: 3em;
|
|
12
|
+
}
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss
CHANGED
|
@@ -3,41 +3,44 @@
|
|
|
3
3
|
$highlight-answer-bg-color: govuk-colour("green");
|
|
4
4
|
$highlight-answer-color: govuk-colour("white");
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
18
|
-
@include govuk-font($size:
|
|
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
|
-
|
|
26
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
p:last-child {
|
|
28
|
+
margin-bottom: 0;
|
|
29
|
+
}
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
@include govuk-media-query($until: tablet) {
|
|
32
|
+
margin: 0 0 1em;
|
|
33
|
+
@include govuk-font($size: 48);
|
|
36
34
|
|
|
37
|
-
|
|
35
|
+
p {
|
|
38
36
|
font-size: 1em;
|
|
39
|
-
|
|
40
|
-
|
|
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
|
}
|
|
@@ -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");
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss
CHANGED
|
@@ -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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
.address {
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
width: auto;
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
.url {
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
}
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
.additional-information {
|
|
22
|
+
@include govuk-font($size: 16);
|
|
20
23
|
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
p {
|
|
25
|
+
margin: .25em 0;
|
|
26
|
+
}
|
|
23
27
|
}
|
|
24
|
-
}
|
|
25
28
|
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
@include govuk-media-query($until: tablet) {
|
|
30
|
+
margin: .75em 0;
|
|
31
|
+
}
|
|
28
32
|
}
|
|
29
33
|
}
|
|
34
|
+
// stylelint-enable max-nesting-depth
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss
CHANGED
|
@@ -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
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
+
h2 {
|
|
24
|
+
line-height: 1.35em;
|
|
25
|
+
}
|
|
23
26
|
}
|
|
24
27
|
}
|
|
@@ -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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
39
|
+
<%= t("components.government_navigation.news_and_communications", default: "News and communications") %>
|
|
40
40
|
</a>
|
|
41
41
|
</li>
|
|
42
42
|
</ul>
|
|
@@ -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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
48
|
+
<%= t("components.metadata.see_all_updates", default: "see all updates") %>
|
|
49
49
|
</a>
|
|
50
50
|
<% end %>
|
|
51
51
|
</dd>
|
data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<nav
|
|
3
3
|
class="gem-c-pagination"
|
|
4
4
|
role="navigation"
|
|
5
|
-
aria-label="<%= t("
|
|
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("
|
|
26
|
-
data-hide-text="<%= t("
|
|
27
|
-
data-show-all-text="<%= t("
|
|
28
|
-
data-hide-all-text="<%= t("
|
|
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| %>
|
|
@@ -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("
|
|
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("
|
|
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? %>
|
data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb
CHANGED
|
@@ -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
|
-
|
|
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("
|
|
17
|
-
<%= t("
|
|
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("
|
|
58
|
-
<%= t("
|
|
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>
|
data/config/locales/en.yml
CHANGED
|
@@ -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}"
|
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.
|
|
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-
|
|
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
|