Skip to content
Snippets Groups Projects
Commit d3c5f4be authored by Firass Ziedan's avatar Firass Ziedan Committed by Shelane French
Browse files

Issue #3202446 by firass.ziedan: Add tabs missing classes to li and a elements

parent d8bda30f
No related branches found
Tags 8.x-4.4
No related merge requests found
......@@ -4,9 +4,16 @@
<div id="views-bootstrap-tab-{{ id }}" {{ attributes.addClass(classes) }}>
<ul class="nav nav-{{ tab_type }} {% if justified %}nav-justified{% endif %}">
{% for key, tab in tabs %}
{% set tab_classes = [loop.first ? 'active'] %}
{% set tab_classes = [
loop.first ? 'active',
'nav-item'
] %}
<li class="{{ tab_classes|join(' ') }}">
<a href="{{ "#tab-#{ id }-#{ key }" }}" data-toggle="tab">{{ tab }}</a>
{% set link_classes = [
loop.first ? 'active',
'nav-link'
] %}
<a href="{{ "#tab-#{ id }-#{ key }" }}" data-toggle="tab" class="{{ link_classes|join(' ') }}">{{ tab }}</a>
</li>
{% endfor %}
</ul>
......
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