govuk_design_system_formbuilder 3.2.0 → 3.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: 23f730aaf4ab5716aabec97d5becffbfae9e7e4f5fcab7ccc0889f3e1989b733
4
- data.tar.gz: 381ebbd696bf0de076b1218c40f255bd3d30badbfbb15ea7388a3b1eb384be46
3
+ metadata.gz: 4aea46724787c5953367b445c27575127974c204c200d67c292060300f6dd495
4
+ data.tar.gz: 0e970ab6cd0d33c1ebff78eff8d18d84ff6a220b1ee4380e1bc0d8807eeddade
5
5
  SHA512:
6
- metadata.gz: 03be873f3bdc9826d02282d9e19bbd4314225a70e5913a1fd7b830f8eed1b037fb9cd192d37d5ae73f440cb66e2ee964aac085798f4eb9e8c7dc5521f208c612
7
- data.tar.gz: c33b0b4c947807befcf25cd6def07b1121fb45703d6a7a36ceeaf56686d4a0919b8a71cd848ceb0430f178a65e3e93bb970ec4c5a23db27afad087fff9678a3e
6
+ metadata.gz: 4b26f916111db6591a3d5aeefc6f0459783c357b08a864dc019f509b65d3b39582669618b2ae8e5cc95ffa57e79cf2386f4305f5c32aaef091d5fbda229a2ada
7
+ data.tar.gz: e595c1ee43f34d60a16b0115bf3a96d2b700132f94e7d8996dfdb843e68ef0c33f85df322086724e15fcfc0f4a3737a885fd8f299e6fe45c02598281ba705d39
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![Gem](https://img.shields.io/gem/dt/govuk_design_system_formbuilder?logo=rubygems)](https://rubygems.org/gems/govuk_design_system_formbuilder)
7
7
  [![Test Coverage](https://api.codeclimate.com/v1/badges/110136fb22341d3ba646/test_coverage)](https://codeclimate.com/github/DFE-Digital/govuk-formbuilder/test_coverage)
8
8
  [![GitHub license](https://img.shields.io/github/license/DFE-Digital/govuk_design_system_formbuilder)](https://github.com/DFE-Digital/govuk-formbuilder/blob/main/LICENSE)
9
- [![GOV.UK Design System Version](https://img.shields.io/badge/GOV.UK%20Design%20System-4.3.1-brightgreen)](https://design-system.service.gov.uk)
9
+ [![GOV.UK Design System Version](https://img.shields.io/badge/GOV.UK%20Design%20System-4.4.0-brightgreen)](https://design-system.service.gov.uk)
10
10
  [![Rails](https://img.shields.io/badge/Rails-6.1.7%20%E2%95%B1%207.0.4-E16D6D)](https://weblog.rubyonrails.org/releases/)
11
11
  [![Ruby](https://img.shields.io/badge/Ruby-2.7.6%20%20%E2%95%B1%203.0.4%20%20%E2%95%B1%203.1.2-E16D6D)](https://www.ruby-lang.org/en/downloads/)
12
12
 
@@ -18,14 +18,16 @@ module GOVUKDesignSystemFormBuilder
18
18
  return unless object_has_errors?
19
19
 
20
20
  tag.div(**attributes(@html_attributes)) do
21
- safe_join([title, summary])
21
+ tag.div(role: "alert") do
22
+ safe_join([title, summary])
23
+ end
22
24
  end
23
25
  end
24
26
 
25
27
  private
26
28
 
27
29
  def title
28
- tag.h2(@title, id: summary_title_id, class: summary_class('title'))
30
+ tag.h2(@title, class: summary_class('title'))
29
31
  end
30
32
 
31
33
  def summary
@@ -110,10 +112,6 @@ module GOVUKDesignSystemFormBuilder
110
112
  end
111
113
  end
112
114
 
113
- def summary_title_id
114
- 'error-summary-title'
115
- end
116
-
117
115
  def object_has_errors?
118
116
  @builder.object.errors.any?
119
117
  end
@@ -121,13 +119,9 @@ module GOVUKDesignSystemFormBuilder
121
119
  def options
122
120
  {
123
121
  class: classes,
124
- role: 'alert',
125
122
  data: {
126
123
  module: %(#{brand}-error-summary)
127
124
  },
128
- aria: {
129
- labelledby: [summary_title_id.presence]
130
- }
131
125
  }
132
126
  end
133
127
 
@@ -1,3 +1,3 @@
1
1
  module GOVUKDesignSystemFormBuilder
2
- VERSION = '3.2.0'.freeze
2
+ VERSION = '3.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_design_system_formbuilder
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Yates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-10 00:00:00.000000000 Z
11
+ date: 2022-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-attributes-utils