govuk_publishing_components 13.8.1 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +1 -1
- data/app/views/govuk_publishing_components/components/_hint.html.erb +3 -2
- data/app/views/govuk_publishing_components/components/docs/hint.yml +5 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/components/summary-list/_summary-list.scss +8 -1
- data/node_modules/govuk-frontend/core/_template.scss +7 -0
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +15 -0
- data/node_modules/govuk-frontend/helpers/_links.scss +1 -1
- data/node_modules/govuk-frontend/package.json +11 -11
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e30d0cf4decdb2a30acb643fd344d2c838e1b95dfd2de61fa50b09c6ab445af3
|
4
|
+
data.tar.gz: 7b30092265431a6b3f3af79ca0dec674d84f9330025b157c92aed3e3a85e915e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 719b37c68fce9e3975c95d7aad65d65eb2c7095f0737854fbc215e83ee6add078cc819d08d7094b04bbc1dcc9a6f5926ab390b844ba0a1d97454021a5df86845
|
7
|
+
data.tar.gz: 2b0cc16fb9a17120f29f30c66e92ad5db85cb04161ead518ebe057570c76eb6401a9e42f555f31078b0a42ea01d13e9776336dc3607fd973d17d26fbe442055e
|
@@ -1,8 +1,9 @@
|
|
1
1
|
<%
|
2
2
|
id ||= "hint-#{SecureRandom.hex(4)}"
|
3
|
-
|
3
|
+
margin_bottom ||= 3
|
4
|
+
|
4
5
|
css_classes = %w( gem-c-hint govuk-hint )
|
5
|
-
css_classes <<
|
6
|
+
css_classes << ([*0..9].include?(margin_bottom) ? "govuk-!-margin-bottom-#{margin_bottom}" : "govuk-!-margin-bottom-3")
|
6
7
|
%>
|
7
8
|
|
8
9
|
<%= tag.span id: id, class: css_classes do %>
|
@@ -14,3 +14,8 @@ examples:
|
|
14
14
|
default:
|
15
15
|
data:
|
16
16
|
text: "It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’."
|
17
|
+
with_margin_bottom:
|
18
|
+
description: The component accepts a number for margin bottom from 0 to 9 (0px to 60px) using the [GOV.UK Frontend spacing scale](http://govuk-frontend-review.herokuapp.com/docs/#settings/spacing-variable-govuk-spacing-points). It defaults to a margin bottom of 3 (15px).
|
19
|
+
data:
|
20
|
+
text: "You qualify if you were born in the UK before June 1960."
|
21
|
+
margin_bottom: 9
|
@@ -54,10 +54,17 @@
|
|
54
54
|
}
|
55
55
|
}
|
56
56
|
|
57
|
+
.govuk-summary-list__key,
|
58
|
+
.govuk-summary-list__value {
|
59
|
+
// sass-lint:disable no-duplicate-properties
|
60
|
+
// Automatic wrapping for unbreakable text (e.g. URLs)
|
61
|
+
word-break: break-word; // WebKit/Blink only
|
62
|
+
word-break: break-all; // Standards
|
63
|
+
}
|
64
|
+
|
57
65
|
.govuk-summary-list__key {
|
58
66
|
margin-bottom: govuk-spacing(1);
|
59
67
|
@include govuk-typography-weight-bold;
|
60
|
-
word-break: break-word;
|
61
68
|
@include govuk-media-query($from: tablet) {
|
62
69
|
width: 30%;
|
63
70
|
}
|
@@ -7,6 +7,13 @@
|
|
7
7
|
// Set the overall page background colour to the same colour as used by the
|
8
8
|
// footer to give the illusion of a long footer.
|
9
9
|
background-color: $govuk-canvas-background-colour;
|
10
|
+
|
11
|
+
// Prevent automatic text sizing, as we already cater for small devices and
|
12
|
+
// would like the browser to stay on 100% text zoom by default.
|
13
|
+
-webkit-text-size-adjust: 100%;
|
14
|
+
-moz-text-size-adjust: 100%;
|
15
|
+
-ms-text-size-adjust: 100%;
|
16
|
+
text-size-adjust: 100%;
|
10
17
|
}
|
11
18
|
|
12
19
|
// Applied to the <body> element
|
@@ -15,13 +15,13 @@
|
|
15
15
|
],
|
16
16
|
"_from": "govuk-frontend@>=2.5.1 <3.0.0",
|
17
17
|
"_hasShrinkwrap": false,
|
18
|
-
"_id": "govuk-frontend@2.
|
18
|
+
"_id": "govuk-frontend@2.7.0",
|
19
19
|
"_inCache": true,
|
20
20
|
"_location": "/govuk-frontend",
|
21
21
|
"_nodeVersion": "8.9.4",
|
22
22
|
"_npmOperationalInternal": {
|
23
23
|
"host": "s3://npm-registry-packages",
|
24
|
-
"tmp": "tmp/govuk-frontend_2.
|
24
|
+
"tmp": "tmp/govuk-frontend_2.7.0_1549642536744_0.35250151507621896"
|
25
25
|
},
|
26
26
|
"_npmUser": {
|
27
27
|
"name": "govuk-patterns-and-tools",
|
@@ -41,8 +41,8 @@
|
|
41
41
|
"_requiredBy": [
|
42
42
|
"/"
|
43
43
|
],
|
44
|
-
"_resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-2.
|
45
|
-
"_shasum": "
|
44
|
+
"_resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-2.7.0.tgz",
|
45
|
+
"_shasum": "6a12baf514426653220dd3cdef55b1e1d97f52a6",
|
46
46
|
"_shrinkwrap": null,
|
47
47
|
"_spec": "govuk-frontend@^2.5.1",
|
48
48
|
"_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ",
|
@@ -59,12 +59,12 @@
|
|
59
59
|
"devDependencies": {},
|
60
60
|
"directories": {},
|
61
61
|
"dist": {
|
62
|
-
"integrity": "sha512-
|
63
|
-
"shasum": "
|
64
|
-
"tarball": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-2.
|
65
|
-
"fileCount":
|
66
|
-
"unpackedSize":
|
67
|
-
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\
|
62
|
+
"integrity": "sha512-IZvho72ExUAOmMOZHbE7s//HdtpSoO1aLn3fcXTnuIUi20UTsz6j+5i1Ztyqr4KUEb8OB/jNMYt4kuYyJnEMRQ==",
|
63
|
+
"shasum": "6a12baf514426653220dd3cdef55b1e1d97f52a6",
|
64
|
+
"tarball": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-2.7.0.tgz",
|
65
|
+
"fileCount": 257,
|
66
|
+
"unpackedSize": 1344357,
|
67
|
+
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXaspCRA9TVsSAnZWagAAGswP/0VVAW+w1NPRCdX5CUko\nce0A4cwcWSW8zRdhF5hzloEv+MF8plnXcvKKbuY3iCjEr78jMMSUvTbA6o7w\nIdOF2NwZuQTV6lvr4y5FRlVsE/hdn9bMOb3z5jggIEjlaCFZHF1rq6qvrwIs\nlN6nUSbme3Q+OW9cJKqAM3/7Z8nAdG5sidRXBObbQ/a4tnfXp4BKIJyRhqln\njp7wCadA4V03AJyPsvXju2EOBnHooAtivS2cLlz0nZh4Sar040JSSLSYd07l\nEcS+Bl88UBIi1Q30CUv2Qnz8UyKZI22D4GHxoxby1PkWENszxTXzfn8eRjr/\nADKTV84tL1mlNPnqbqc6mu93mxdr5kllcfzZ4u5xFKXYs568+r1cBaw77i1h\nCJul2kJ3ycpDQ2JqdE2Ngzhm2FmQo2rSewbdFJuMVB9Toet64QhB87hbiFoU\ngyV/KT5RHTdD8hh9Bck/KwuKezaY9k3AjzfyLjQgkCLX2MAx1M3FVUWbRjqo\nGuWStU/o2LuEdbkl3HloLf0r/gDjw86TSgYFa5tgWOiD1nGL6JZ9Mw1IuqVf\n5tN0uj9p0zel/ecaRBIL94K+WXyzii0wWPtLxTELyG507OQ4Gd21uUZnw+Zq\nVUlMmrGy81TIMPwkrVTLTlpVe9sZBN2McscEqbEsag9LbaxPn+HeMr3xdIVe\nVKbh\r\n=GlSb\r\n-----END PGP SIGNATURE-----\r\n"
|
68
68
|
},
|
69
69
|
"engines": {
|
70
70
|
"node": ">= 4.2.0"
|
@@ -92,5 +92,5 @@
|
|
92
92
|
"url": "git+https://github.com/alphagov/govuk-frontend.git"
|
93
93
|
},
|
94
94
|
"sass": "all.scss",
|
95
|
-
"version": "2.
|
95
|
+
"version": "2.7.0"
|
96
96
|
}
|
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:
|
4
|
+
version: 14.0.0
|
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: 2019-02-
|
11
|
+
date: 2019-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govspeak
|
@@ -850,6 +850,7 @@ files:
|
|
850
850
|
- node_modules/govuk-frontend/core/_section-break.scss
|
851
851
|
- node_modules/govuk-frontend/core/_template.scss
|
852
852
|
- node_modules/govuk-frontend/core/_typography.scss
|
853
|
+
- node_modules/govuk-frontend/govuk-prototype-kit.config.json
|
853
854
|
- node_modules/govuk-frontend/helpers/_all.scss
|
854
855
|
- node_modules/govuk-frontend/helpers/_clearfix.scss
|
855
856
|
- node_modules/govuk-frontend/helpers/_colour.scss
|