templates/includes/blocks/accordion.html.twig line 1
<div class="accordion accordion--{% if content.inverted %}inverted {% else %}default {% endif %}
{{ content.top }} {{ content.bottom }}" x-data="accordion">
<div class="accordion__container">
<div class="accordion__list">
{% for item in content.subblocks %}
<div class="accordion__item" x-data="accordionitem" @click="open = !open"{% if schema|default(null) == 'faq' %} itemscope itemtype="https://schema.org/Question"{% endif %}>
<div class="accordion__head">
<div class="accordion__toggle">
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
<path vector-effect="non-scaling-stroke" d="M24.5 4.5V44.5" stroke="currentColor"
stroke-linecap="round" stroke-linejoin="round" x-show="!open"/>
<path vector-effect="non-scaling-stroke" d="M44.5 24.5H4.5" stroke="currentColor"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div class="accordion__title h4 {% if item.accordionItemTitleMobile %}desktop-only {% endif %}"{% if schema|default(null) == 'faq' %} itemprop="name"{% endif %}>
{{ item.accordionItemTitle|raw }}
</div>
{% if item.accordionItemTitleMobile %}
<div class="accordion__title h4 mobile-only">
{{ item.accordionItemTitleMobile|raw }}
</div>
{% endif %}
</div>
<div class="accordion__collapse" x-show="open" x-collapse @click.stop=""{% if schema|default(null) == 'faq' %} itemprop="suggestedAnswer acceptedAnswer" itemscope itemtype="https://schema.org/Answer"{% endif %}>
<div class="accordion__text"{% if schema|default(null) == 'faq' %} itemprop="text"{% endif %}>
{{ item.accordionItemText|raw }}
</div>
{% if item.accordionItemActionLink != null %}
<div class="accordion__actions">
{% if item.accordionItemButtonType == 'box' %}
<a href="{{ item.accordionItemActionLink }}"
class="button button--{{ item.accordionItemButtonColor }}
button--size-{{ item.accordionItemButtonSize }}">
<span class="button__inner">{{ item.accordionItemButtonLabel }}</span>
</a>
{% elseif item.accordionItemButtonType == 'text' %}
<a href="{{ item.accordionItemActionLink }}"
class="text-button text-button--{{ item.accordionItemTextButtonColor }}
{% if item.uppercase %} uppercase {% endif %}">
{{ item.accordionItemButtonLabel }}
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M.5 8.5h15M10.5 3.5l5 5-5 5" stroke="currentColor" stroke-miterlimit="10"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
{% endif %}
</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
</div>