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: f3ed71c773cb4f6409dd9cc3d66bd408cb33ab8863f5ee57dbe7fa90826e1441
4
- data.tar.gz: 8ce3c6af6d3b1ba38890d11edbebb59e7c3895fae29f2794351e23ea9fad4697
3
+ metadata.gz: 9fa84400a00cf38f8ec660c724a115fa819109586c041727b4a1833d0f2e4de4
4
+ data.tar.gz: 48ef894dcfcc9e0dcc18a66ddc94e163f194647a604c6074bea21c6b8cccb33e
5
5
  SHA512:
6
- metadata.gz: e670252b190a6866a5018c4f951e1e2ddf84dfde4e8049bcc3bf415bfb286c4985cb3fa8d6dd81fade33f4ecaed467cd6dede70e8044fe82f59dbfd42e6656dd
7
- data.tar.gz: d955747b6ceac131a320b9d9ebadcb78e1937e3fab2cae1e339cbf48355525a18b6285210c0f889a8cd7004e2a026960e3f0edd03cf56b5b16ad1717ac4bbb0f
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 gem-c-search--on-white)
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
- classes << "gem-c-search--on-govuk-blue" if local_assigns[:on_govuk_blue].eql?(true)
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 ||= ""
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "21.63.1".freeze
2
+ VERSION = "21.63.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 21.63.1
4
+ version: 21.63.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev