govuk_publishing_components 23.9.1 → 23.9.2
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/components/show-password.js +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +6 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss +2 -0
- data/app/views/govuk_publishing_components/components/docs/image_card.yml +4 -4
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a5c3e567099f08f4b08f708278596cd2501ff02cabe298ab35d006434bd2730
|
|
4
|
+
data.tar.gz: 8e9ce2a9b09dcec29bbd2c3b6b55a288a4d8e4554a503e40112affc9254fe056
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 73fb8d7d1356925b66421fabab0223d8d3b0218cedc6ecb461a957fed3c85b65d271b6e0d92543e00fd59c82fcfe9841693985bb49d5a6122b303d864752f19d
|
|
7
|
+
data.tar.gz: c9222ffe49f2202771acd31099c680224eebd5b712505580637b0452a69881f95dddd7b6a4aadea33225314301a4a335f33f701a3eb131402a6cb83c64b62a4e
|
|
@@ -26,6 +26,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
|
26
26
|
this.showHide = document.createElement('button')
|
|
27
27
|
this.showHide.className = 'gem-c-show-password__toggle'
|
|
28
28
|
this.showHide.setAttribute('aria-controls', this.input.getAttribute('id'))
|
|
29
|
+
this.showHide.setAttribute('type', 'button')
|
|
29
30
|
this.showHide.innerHTML = this.showPasswordText
|
|
30
31
|
this.wrapper.insertBefore(this.showHide, this.input.nextSibling)
|
|
31
32
|
|
|
@@ -36,10 +36,10 @@ $large-input-size: 50px;
|
|
|
36
36
|
|
|
37
37
|
.gem-c-search__input[type="search"] { // overly specific to prevent some overrides from outside
|
|
38
38
|
@include govuk-font($size: 19, $line-height: (28 / 19));
|
|
39
|
-
padding: 6px;
|
|
40
39
|
margin: 0;
|
|
41
40
|
width: 100%;
|
|
42
|
-
height: em(
|
|
41
|
+
height: em(40, 16);
|
|
42
|
+
padding: em(6, 16);
|
|
43
43
|
border: $govuk-border-width-form-element solid $govuk-input-border-colour;
|
|
44
44
|
background: govuk-colour("white");
|
|
45
45
|
border-radius: 0; //otherwise iphones apply an automatic border radius
|
|
@@ -47,6 +47,10 @@ $large-input-size: 50px;
|
|
|
47
47
|
-webkit-appearance: none;
|
|
48
48
|
-moz-appearance: none;
|
|
49
49
|
appearance: none;
|
|
50
|
+
@include govuk-media-query($from: tablet) {
|
|
51
|
+
height: em(40, 19);
|
|
52
|
+
padding: em(6, 19);
|
|
53
|
+
}
|
|
50
54
|
|
|
51
55
|
// the .focus class is added by JS and ensures that the input remains above the label once clicked/filled in
|
|
52
56
|
&:focus,
|
|
@@ -70,7 +70,7 @@ examples:
|
|
|
70
70
|
description: Don't indent the extra links. Used for links to people pages.
|
|
71
71
|
data:
|
|
72
72
|
href: "/government/people/"
|
|
73
|
-
image_src: "
|
|
73
|
+
image_src: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/feature/image/62756/s300_courts-of-justice.JPG"
|
|
74
74
|
image_alt: "some meaningful alt text please"
|
|
75
75
|
context:
|
|
76
76
|
text: "The Rt Hon"
|
|
@@ -85,7 +85,7 @@ examples:
|
|
|
85
85
|
extra_links_with_no_main_link:
|
|
86
86
|
description: If extra links are included, the main link is not needed. Note that in this configuration the image is not a link as no link has been supplied.
|
|
87
87
|
data:
|
|
88
|
-
image_src: "
|
|
88
|
+
image_src: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/feature/image/62756/s300_courts-of-justice.JPG"
|
|
89
89
|
image_alt: "some meaningful alt text please"
|
|
90
90
|
heading_text: "John Whiskers MP"
|
|
91
91
|
extra_links: [
|
|
@@ -151,7 +151,7 @@ examples:
|
|
|
151
151
|
data:
|
|
152
152
|
large: true
|
|
153
153
|
href: "/still-not-a-page"
|
|
154
|
-
image_src: "https://assets.publishing.service.gov.uk/
|
|
154
|
+
image_src: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/feature/image/62756/s300_courts-of-justice.JPG"
|
|
155
155
|
image_alt: "some meaningful alt text please"
|
|
156
156
|
context:
|
|
157
157
|
date: 2017-06-14 11:30:00
|
|
@@ -208,7 +208,7 @@ examples:
|
|
|
208
208
|
with_lang:
|
|
209
209
|
description: |
|
|
210
210
|
Pass through an appropriate `lang` to set a HTML lang attribute for the component.
|
|
211
|
-
|
|
211
|
+
|
|
212
212
|
The `lang` attribute **must** be set to a [valid BCP47 string](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang#Language_tag_syntax). A valid code can be the two or three letter language code - for example, English is `en` or `eng`, Korean is `ko` or `kor` - but if in doubt please check.
|
|
213
213
|
data:
|
|
214
214
|
href: "/not-a-page"
|
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: 23.9.
|
|
4
|
+
version: 23.9.2
|
|
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: 2020-12-
|
|
11
|
+
date: 2020-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: govuk_app_config
|