govuk-components 3.2.0 → 3.2.1

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: 82c6c791cb04272f6d9c26584648e77df868106c405b03e8ab45de1d887e982c
4
- data.tar.gz: 97a343854b2584929d0bbe0e184773463cfc208c6d100d6719650fe117839607
3
+ metadata.gz: '08650ef5a96454a1bbb442fec1df33462c8af148064e49c14a60ee60d398f8e3'
4
+ data.tar.gz: '0762459a9fdf83f35dec7766753d48d2e68cf65b5fb1cf8877b3bc1067c59a39'
5
5
  SHA512:
6
- metadata.gz: fab4a1347e860c70cfa70314c634c550e776fce5a3b661877c0daaba84fa1da8678c56a58dbae572299ac6ddf279ee8277ae29509edc46933bb47c4dc94e7173
7
- data.tar.gz: 678e902ca916bc9ad00944d555e8678b3897071f2b1f50e3eeb99585f5f412e3d91d22a7909c882b336ec98be4beadfd2ed488485fd472996c8b5552901782ab
6
+ metadata.gz: 85d818337ba25e9c0ef34e58a918eb2c790faa129e504622ca3653ce129eeaa263bac10691fd99ecb1462f38be7233287c7f185c833093d7b518898d9f73c63f
7
+ data.tar.gz: acd421f9708244a6ed32acf9b4318dd48d0886767920080bb4669ebb72cfd4f323a33e475616b7224895b278b87009621c42fb776efe471d38b6c001c3b4993e
@@ -1,18 +1,17 @@
1
1
  class GovukComponent::SummaryListComponent::ActionComponent < GovukComponent::Base
2
- class VisuallyHiddenDefaultNilClass < NilClass; end
3
-
4
2
  attr_reader :href, :text, :visually_hidden_text, :attributes, :classes
5
3
 
6
- def initialize(href: nil, text: 'Change', visually_hidden_text: VisuallyHiddenDefaultNilClass, classes: [], html_attributes: {})
7
- if config.require_summary_list_action_visually_hidden_text && visually_hidden_text == VisuallyHiddenDefaultNilClass
4
+ def initialize(href: nil, text: 'Change', visually_hidden_text: false, classes: [], html_attributes: {})
5
+ @visually_hidden_text = visually_hidden_text
6
+
7
+ if config.require_summary_list_action_visually_hidden_text && visually_hidden_text == false
8
8
  fail(ArgumentError, "missing keyword: visually_hidden_text")
9
9
  end
10
10
 
11
11
  super(classes: classes, html_attributes: html_attributes)
12
12
 
13
- @href = href
14
- @text = text
15
- @visually_hidden_text = visually_hidden_text
13
+ @href = href
14
+ @text = text
16
15
  end
17
16
 
18
17
  def render?
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Components
3
- VERSION = '3.2.0'.freeze
3
+ VERSION = '3.2.1'.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: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DfE developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-04 00:00:00.000000000 Z
11
+ date: 2022-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack