Skip to content

Commit

Permalink
Leave fieldset label out of the scrollable container
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Nov 23, 2020
1 parent 72a15f6 commit d18d307
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions view/fieldset.twig
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{% from '_macros' import renderError %}

{% if scrollable is not empty %}<div class="is-scrollable">{% endif %}
<fieldset {{ toggle is not empty ? ('data-toggle-id="'~toggle.id~'" data-toggle-value="'~toggle.value~'"') | raw }}
{% if tablestyle is not empty %} class="is-left-label"{% endif %}>
<legend class="hidden">{{ label }}</legend>
<div class="column {{ column is not empty ? column : 'is-full' }} fieldset-content">
<div class="label fieldset-label">
{{ label }}
</div>
<div class="columns{% if scrollable is empty %} is-multiline{% endif %}">
<div class="columns{% if scrollable is empty %} is-multiline{% else %} is-scrollable{% endif %}">
{% if tablestyle is not empty %}<div class="next-is-double"></div>{% endif %}
{% for rendered_child_view in rendered_child_views %}
{{ rendered_child_view | raw }}
{% endfor %}
</div>
</div>
</fieldset>
{% if scrollable is not empty %}</div>{% endif %}

0 comments on commit d18d307

Please sign in to comment.