Skip to content
Snippets Groups Projects
Commit d4f86cf2 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-6711: trying to fix label/title in details element

parent 602bc7cd
No related branches found
No related tags found
Loading
......@@ -30,7 +30,11 @@ Prefix 'details' class to avoid collision with Modernizr.
]
%}
<summary{{ summary_attributes.addClass(summary_classes) }}>
<label{% if form_field_id %} for="{{ form_field_id }}"{% endif %}>{{ title }}</label>
{% if form_field_id %}
<label for="{{ form_field_id }}">{{ title }}</label>
{% else %}
<span>{{ title }}</span>
{% endif %}
</summary>
{%- endif -%}
<div class="seven-details__wrapper details-wrapper">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment