Skip to content

Commit

Permalink
attempt to fix conten tabs duplicate id bug, W3C fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thexmanxyz committed Sep 17, 2018
1 parent 4bb51ec commit a14f408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/helium/common/particles/contenttabs.html.twig
Expand Up @@ -12,7 +12,7 @@
{% for item in particle.items %}
<li class="g-contenttabs-tab-wrapper">
<span class="g-contenttabs-tab-wrapper-head">
<a class="g-contenttabs-tab" href="#g-contenttabs-item-{{ loop.index }}">
<a class="g-contenttabs-tab" href="#g-contenttabs-item-{{ id }}-{{ loop.index }}">
<span class="g-contenttabs-tab-title">{{ item.title|raw }}</span>
</a>
</span>
Expand All @@ -28,7 +28,7 @@
{% for item in particle.items %}
<li class="g-contenttabs-tab-wrapper">
<div class="g-contenttabs-tab-wrapper-body">
<div id="g-contenttabs-item-{{ loop.index }}" class="g-contenttabs-content">
<div id="g-contenttabs-item-{{ id }}-{{ loop.index }}" class="g-contenttabs-content">
{{ item.content|raw }}
</div>
</div>
Expand Down

0 comments on commit a14f408

Please sign in to comment.