govuk_publishing_components 43.2.0 → 43.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js +0 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +1 -0
- data/app/views/govuk_publishing_components/components/_password_input.html.erb +4 -3
- data/app/views/govuk_publishing_components/components/docs/password_input.yml +4 -0
- 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: e7369ec3598e82bdea2bd09f8afddd660fb7993009b0eea7fc8ca9b4a3c9cc52
|
4
|
+
data.tar.gz: 0343c704ff03e4e030ac919e2e3e21168955d15863087d394f633e4afe7e26a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a45ed3d3cfb9876c887cb3a44136620867ced84f5fa843de75396d003db13c04a0fa6aacc734bfa63ad29a209690d291f0129faefe2d87f84d9aa43a0b63a9a
|
7
|
+
data.tar.gz: 8a9bb44e81fd88a14926e9fefe075384ac937fd6174fc6429e641b2ff7c9cf1521228b7c22fbd2eb19228eede4e8fe9b64f9b64cec5dbdbc1b067b15a48d4915
|
@@ -23,8 +23,6 @@
|
|
23
23
|
multivariatetest_cohort_coronavirus_extremely_vulnerable_rate_limit: 'essential',
|
24
24
|
dgu_beta_banner_dismissed: 'settings',
|
25
25
|
global_bar_seen: 'settings',
|
26
|
-
govuk_browser_upgrade_dismisssed: 'settings',
|
27
|
-
govuk_not_first_visit: 'settings',
|
28
26
|
user_nation: 'settings',
|
29
27
|
'JS-Detection': 'usage',
|
30
28
|
TLSversion: 'usage',
|
@@ -13,6 +13,8 @@
|
|
13
13
|
password_shown_announcement ||= t("components.password_input.password_shown_announcement")
|
14
14
|
password_hidden_announcement ||= t("components.password_input.password_hidden_announcement")
|
15
15
|
|
16
|
+
name ||= "password"
|
17
|
+
|
16
18
|
shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
|
17
19
|
component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
|
18
20
|
component_helper.add_data_attribute({
|
@@ -34,7 +36,6 @@
|
|
34
36
|
|
35
37
|
label_for = uid + '-password-input'
|
36
38
|
|
37
|
-
input_name = 'password'
|
38
39
|
input_id = uid + '-password-input'
|
39
40
|
|
40
41
|
aria_controls = uid + '-password-input'
|
@@ -42,9 +43,9 @@
|
|
42
43
|
input_classes = %w(govuk-input govuk-password-input__input govuk-js-password-input-input)
|
43
44
|
|
44
45
|
if error_text
|
46
|
+
name << '-input-with-error-message'
|
45
47
|
label_for << '-with-error-message'
|
46
48
|
input_id << '-with-error-message'
|
47
|
-
input_name << '-input-with-error-message'
|
48
49
|
input_classes << 'govuk-input--error'
|
49
50
|
aria_controls << '-with-error-message'
|
50
51
|
paragraph_id = uid + '-password-input-with-error-message-error'
|
@@ -64,7 +65,7 @@
|
|
64
65
|
|
65
66
|
<div class="govuk-input__wrapper govuk-password-input__wrapper">
|
66
67
|
<%= tag.input(
|
67
|
-
name
|
68
|
+
name:,
|
68
69
|
type: "password",
|
69
70
|
class: input_classes,
|
70
71
|
id: input_id,
|
@@ -28,6 +28,10 @@ uses_component_wrapper_helper: true
|
|
28
28
|
examples:
|
29
29
|
default:
|
30
30
|
data:
|
31
|
+
with_name:
|
32
|
+
description: If no name is provided, it defaults to "password".
|
33
|
+
data:
|
34
|
+
name: user[password]
|
31
35
|
with_error:
|
32
36
|
description: If there is a validation error, passing error text will style the password input component with error styles, and semantically state that there was a validation error.
|
33
37
|
data:
|
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: 43.
|
4
|
+
version: 43.3.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: 2024-09-
|
11
|
+
date: 2024-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|