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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e4cae4dbe308c9a7d6c09b6af0e5a2bd8e336704c65b65b36db523740774350
4
- data.tar.gz: 6783d9392096dc776ab89670f28348a037de4c4312648a3459e6c7d59ca93e82
3
+ metadata.gz: e7369ec3598e82bdea2bd09f8afddd660fb7993009b0eea7fc8ca9b4a3c9cc52
4
+ data.tar.gz: 0343c704ff03e4e030ac919e2e3e21168955d15863087d394f633e4afe7e26a2
5
5
  SHA512:
6
- metadata.gz: 06ca0b986701886935c7fa20f38e10c65719a7112b99a454a075924a013963d431f1915272140cbc97581ab08d7123de66fd2f1c9179cefe75155326e7d5a784
7
- data.tar.gz: dba9a2166cbab782ce0dd4800716f142241ed81aa2afa0a1e5dff4f4f164273973fe62a642cce7c8ddd74ddb1b2c0e0de2e7bfd40a9e925a94b62ed0629c8354
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',
@@ -33,6 +33,7 @@ $table-row-even-background-colour: govuk-colour("light-grey");
33
33
  }
34
34
 
35
35
  .app-table__sort-link {
36
+ display: inline-block;
36
37
  position: relative;
37
38
  padding-right: $sort-link-arrow-size;
38
39
  color: $govuk-link-colour;
@@ -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: input_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:
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "43.2.0".freeze
2
+ VERSION = "43.3.0".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: 43.2.0
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-18 00:00:00.000000000 Z
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