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
1 merge request!122ISTWCMS-6711: fixing label for details
...@@ -30,7 +30,11 @@ Prefix 'details' class to avoid collision with Modernizr. ...@@ -30,7 +30,11 @@ Prefix 'details' class to avoid collision with Modernizr.
] ]
%} %}
<summary{{ summary_attributes.addClass(summary_classes) }}> <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> </summary>
{%- endif -%} {%- endif -%}
<div class="seven-details__wrapper details-wrapper"> <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