_includes/toggler/toggler.html in compost-jekyll-theme-0.2.3 vs _includes/toggler/toggler.html in compost-jekyll-theme-0.3.0
- old
+ new
@@ -6,16 +6,17 @@
@param :id [String] La ID
@param :toggled_class [String] Las clases del elemento toggled
@param :toggled_content [String] El contenido del elemento toggled
{% endcomment %}
<input
- type="checkbox"
+ type="{{ include.type | default: 'checkbox' }}"
class="toggler sr-only"
data-action="body-scroll#toggle"
autocomplete="off"
id="{{ include.id }}"
- name="{{ include.id }}"
+ value="{{ include.id }}"
+ name="{{ include.name | default: include.id }}"
aria-labelledby="{{ include.id }}-label" />
-<div class="toggled position-absolute {{ include.toggled_class }}">
+<div class="toggled {{ include.toggled_class }}">
{{ include.toggled_content }}
</div>