Skip to content
Snippets Groups Projects
Commit 07e511f6 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4704: fixing tabs and adding class for tabs modifier

parent 79eb3e2f
No related branches found
No related tags found
1 merge request!66ISTWCMS-4704: adding date component with ability to handle multiple dates and...
<div class="uw-tabs">
<div class="uw-tabs{% if tabs_modifier_class %} {{ tabs_modifier_class }}{% endif %}">
<div class="uw-tab" role="tablist" aria-label="Multi-tab-list">
{% for type in content_list %}
{% if tab_type == "link" %}
<a href="{{ type.url }}" class="uw-tablinks {{ button_modifier_classes }} {% if type.active %}active{% endif %} %}">{{ type.text }}</a>
<a href="{{ type.url }}" class="uw-tablinks {{ button_modifier_classes }}{% if type.active %} active{% endif %}">{{ type.text }}</a>
{% else %}
<button role="tab" class="uw-tablinks {{ button_modifier_classes }} " {% if loop.index == 1 %} aria-selected="true" {% else %} aria-selected="false" {% endif %} aria-controls="{{ type }}" id="tab-{{ loop.index }}" tabindex="0">{{ type }}</button>
<button role="tab" class="uw-tablinks {{ button_modifier_classes }}" {% if loop.index == 1 %} aria-selected="true" {% else %} aria-selected="false" {% endif %} aria-controls="{{ type }}" id="tab-{{ loop.index }}" tabindex="0">{{ type }}</button>
{% endif %}
{% endfor %}
</div>
......
......@@ -6,4 +6,5 @@
tab_type: 'link',
content_list: content_list,
button_modifier_classes: button_modifier_classes,
tabs_modifier_class: tabs_modifier_class,
} %}
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