myg 2.3.3 → 2.3.4

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: 60c2ee718112a659c71183889dc1add9a38e37cf6b30643a1b7581e3806b1337
4
- data.tar.gz: 10bdcb9da1ad4cdb1f7e1da91b0a8f819dd39662a47af0b2d91bdcc036c9bb54
3
+ metadata.gz: 22eb5330f686391a704daeccd669341323016f8ed6757210758bf6fff0919e9b
4
+ data.tar.gz: eeaf3018cd7fb3327aa824ee1b2d07ab4b640909c7c511f0272473df4a801da6
5
5
  SHA512:
6
- metadata.gz: 3886130fdf1589a419576d59a6002f825d0f74650e4273961b0835295b739c62d38b5c9ec984251082b045f0214a768433c8db74662aca2be6b2a965e15a5ef3
7
- data.tar.gz: 365d9649da06f8d35df608fb67dc0d5fc8c620b45a65d6ded5df7b007a5ed9b48efeb9a3d526c4801dbee22d5736fe8ab39ce42371b3a42a63ccac3dd3f673b0
6
+ metadata.gz: 5398eda9570a0d0e4c88fad1186d0361f3aed43f92d5c0ff31049b80d57257b4b98bc3228ad3eba9230830c43918963d59a5cb6f371bf881bef7f9c003c6084f
7
+ data.tar.gz: 78d5f27865f246200b201b7e238082de2d78ba207248f8cbc8fe25aaa733a0d71db550d3109ae66117eb2948c2de279b49be8b615b0f298fd037976e19225ff1
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 2.3.4 - 2018/02/25
8
+
9
+ * bugfixes
10
+ * fixed placeholders in form-field inputs
11
+
7
12
  ### 2.3.3 - 2018/02/25
8
13
 
9
14
  * bugfixes
@@ -1,11 +1,14 @@
1
1
  <% wrapper_html = {
2
2
  class: ['myg-form-field', ('myg-form-field--inline-label' if options[:inline_label]), ('myg-form-field--floating-label' if options[:floating_label]), options.dig(:wrapper_html, :class)].join(' ')
3
3
  } %>
4
- <% input_html = {
4
+ <% if options[:floating_label] %><% input_html = {
5
5
  class_name: options[:class_name],
6
6
  attribute: options[:attribute],
7
7
  placeholder: options[:floating_label]
8
- } %>
8
+ } %><% else %><% input_html = {
9
+ class_name: options[:class_name],
10
+ attribute: options[:attribute]
11
+ } %><% end %>
9
12
  <% label_html = {
10
13
  class_name: options[:class_name],
11
14
  attribute: options[:attribute]
@@ -14,7 +17,7 @@
14
17
  class: ['myg-label--secondary', options.dig(:label_html, :class)].join(' ')
15
18
  }) %>
16
19
  <% label_wrapper_html = {
17
- class: ['myg-label--wrapper', options.dig(:label_wrapper_html, :class)].join(' ')
20
+ class: ['myg-label--container', options.dig(:label_wrapper_html, :class)].join(' ')
18
21
  } %>
19
22
 
20
23
  <%= content_tag 'div', (options[:wrapper_html] || {}).merge(wrapper_html) do %>
@@ -1,5 +1,5 @@
1
1
  module Myg
2
2
 
3
- VERSION = '2.3.3'
3
+ VERSION = '2.3.4'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter