fix: make the field label a heading

Refs: #452
This commit is contained in:
Oliver Davies 2021-12-19 13:35:45 +00:00
parent 80566ee8ea
commit e6cf8743bc

View file

@ -39,6 +39,7 @@
{%
set title_classes = [
label_display == 'visually_hidden' ? 'visually-hidden',
'mb-2'
]
%}
@ -56,7 +57,7 @@
{% endif %}
{% else %}
<div{{ attributes }}>
<div{{ title_attributes.addClass(title_classes) }}>{{ label }}</div>
<h2{{ title_attributes.addClass(title_classes) }}>{{ label }}</h2>
{% if multiple %}
<ul>
{% endif %}