govuk_publishing_components 21.63.1 → 21.63.2
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: 9fa84400a00cf38f8ec660c724a115fa819109586c041727b4a1833d0f2e4de4
|
4
|
+
data.tar.gz: 48ef894dcfcc9e0dcc18a66ddc94e163f194647a604c6074bea21c6b8cccb33e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3dabec965adb6f3020171d0baf9df7988fcbb7eae881374e7f8edefa98f169ea1765a2e553cfeb4364a25d4af24e6a42d0c0b67b709afa3302ded7271066507
|
7
|
+
data.tar.gz: 3f78096a67b8811112e7c368b9ed66afcc4a759d7b2f466f512f6b1cb1a8598dcfaf9d9b4ef41ec22dea2af6900e05707524beaf38bdf7a60030df795016ba96
|
@@ -2,12 +2,16 @@
|
|
2
2
|
size ||= ""
|
3
3
|
no_border ||= false
|
4
4
|
shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
|
5
|
-
classes = %w(gem-c-search
|
5
|
+
classes = %w(gem-c-search)
|
6
6
|
classes << (shared_helper.get_margin_top)
|
7
7
|
classes << (shared_helper.get_margin_bottom) if local_assigns[:margin_bottom]
|
8
8
|
classes << "gem-c-search--large" if size == 'large'
|
9
9
|
classes << "gem-c-search--no-border" if no_border
|
10
|
-
|
10
|
+
if local_assigns[:on_govuk_blue].eql?(true)
|
11
|
+
classes << "gem-c-search--on-govuk-blue"
|
12
|
+
else
|
13
|
+
classes << "gem-c-search--on-white"
|
14
|
+
end
|
11
15
|
classes << "gem-c-search--separate-label" if local_assigns.include?(:inline_label)
|
12
16
|
|
13
17
|
value ||= ""
|