govuk-components 2.0.0rc1 → 2.0.0rc2

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: f5515548e238de9a79246999e6690822115fd16a02a6122205b3c79622e2c8fd
4
- data.tar.gz: 046d7a25d4c6e80c04dce6064c96f38b655e00d69d9cafaecb598da66f5526a7
3
+ metadata.gz: 9edec9359b5c0de9625e624d8287300e31870ff711796dc930fb344543ed926a
4
+ data.tar.gz: 29acdd36e71f45b69af12d291466e360bfc4bbc77db3ac48f57469d66912e3dd
5
5
  SHA512:
6
- metadata.gz: 61b82755a3220d4323abfba65e4f4473dfa98bb5cdd7712066e74b18c17360e6fae854db1bb713705ec5467cdb45b59d4d6d692052d5c9b3cee13df8bcabc242
7
- data.tar.gz: 93d9ae24e9b26dc2f49899369fc0bc92eae4b0439740fb6406d314c1f57dff435b5d7f4b13f62bc50f0a93c4671dc7c311f57feaef225878fdc9988971df693c
6
+ metadata.gz: 146d5279be3e72e4164a0bbf81fa91c1262cfa88c61b28ef0be7dd1e7ccadb486ee998c1e33e6268868834019aa2c4dda0ace1adab701a34c77996db91ab3f0e
7
+ data.tar.gz: ab5f09b50cf6d80b776c0d2aff7824f85ad788b95c2d3f3b7e19bd998884ccb2cbe4ceb98e2eeff25619b6c5f251f156c8dc31cd2b41fd7d8b50b2ab872449c4
@@ -16,9 +16,10 @@ class GovukComponent::CookieBannerComponent::MessageComponent < GovukComponent::
16
16
  def call
17
17
  tag.div(class: classes, role: role, hidden: hidden, **html_attributes) do
18
18
  tag.div(class: "govuk-grid-row") do
19
- tag.div(class: "govuk-grid-column-two-thirds") do
20
- safe_join([heading_element, message_element, actions_element])
21
- end
19
+ safe_join([
20
+ tag.div(class: "govuk-grid-column-two-thirds") { safe_join([heading_element, message_element]) },
21
+ actions_element
22
+ ])
22
23
  end
23
24
  end
24
25
  end
@@ -30,7 +31,7 @@ private
30
31
  end
31
32
 
32
33
  def heading_element
33
- tag.h2(heading_content, class: "govuk-cookie-banner__heading")
34
+ tag.h2(heading_content, class: %w(govuk-cookie-banner__heading govuk-heading-m))
34
35
  end
35
36
 
36
37
  def heading_content
@@ -1,5 +1,5 @@
1
1
  class GovukComponent::SummaryListComponent::RowComponent < GovukComponent::Base
2
- attr_reader :href, :text, :visually_hidden_text
2
+ attr_reader :href, :visually_hidden_text
3
3
 
4
4
  renders_one :key, GovukComponent::SummaryListComponent::KeyComponent
5
5
  renders_one :value, GovukComponent::SummaryListComponent::ValueComponent
@@ -18,6 +18,6 @@ private
18
18
  end
19
19
 
20
20
  def value_content
21
- content || text || fail(ArgumentError, "no text or content")
21
+ content || text || ""
22
22
  end
23
23
  end
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Components
3
- VERSION = '2.0.0rc1'.freeze
3
+ VERSION = '2.0.0rc2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk-components
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0rc1
4
+ version: 2.0.0rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - DfE developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-02 00:00:00.000000000 Z
11
+ date: 2021-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.31.1
47
+ version: 2.36.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.31.1
54
+ version: 2.36.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry-byebug
57
57
  requirement: !ruby/object:Gem::Requirement