Skip to content

Commit c6c94fc

Browse files
committed
Improve fieldset template when there are no instructions
1 parent 5189807 commit c6c94fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/views/form/_form_component.antlers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{{# REGULAR MODE: Fieldsets #}}
4848
<fieldset class="not-last:pb-6 not-last:lg:pb-10">
4949
{{ if display }}
50-
<legend class="text-ef-xl font-bold text-ef-label mb-1">{{ display | trans }}</legend>
50+
<legend class="text-ef-xl font-bold text-ef-label {{ if instructions }}mb-1{{ else }}mb-6{{ /if }}">{{ display | trans }}</legend>
5151
{{ /if }}
5252
{{ if instructions }}
5353
<p class="text-ef-sm text-ef-text-muted mb-6">{{ instructions | trans }}</p>

0 commit comments

Comments
 (0)