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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08650ef5a96454a1bbb442fec1df33462c8af148064e49c14a60ee60d398f8e3'
|
4
|
+
data.tar.gz: '0762459a9fdf83f35dec7766753d48d2e68cf65b5fb1cf8877b3bc1067c59a39'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
7
|
-
|
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
|
14
|
-
@text
|
15
|
-
@visually_hidden_text = visually_hidden_text
|
13
|
+
@href = href
|
14
|
+
@text = text
|
16
15
|
end
|
17
16
|
|
18
17
|
def render?
|
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.
|
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-
|
11
|
+
date: 2022-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|