Nested nav-tabs and aria-expanded
Created by: jannestad
If you nest one nav-tabs inside of another (inside tab-pane), it seems that aria-expanded="true" is set on all the li elements of the child nav-tabs when you switch tabs. This affects version 3.3.4.
<ul class="nav nav-tabs">
<li class="active">
<a href="#categories" data-toggle="tab">Hovedmeny</a>
</li>
<li>
<a href="#alphabet" data-toggle="tab">A til Å</a>
</li>
</ul>
<div id="megamenu" class="tab-content">
<div class="tab-pane active fade in" id="categories">
....
</div>
<div class="tab-pane fade" id="alphabet">
<ul class="nav nav-tabs">
<li class="active">
<a href="#a" data-toggle="tab">A</a>
</li>
<li>
<a href="#b" data-toggle="tab">B</a>
</li>
<li>
<a href="#c" data-toggle="tab">C</a>
</li>
<!-- etc. -->
</ul>
<!-- tab-content -->
</div>
In the above, switching to the tab #alphabet will set aria-expanded="true" not only on on the a element that reference to #alphabet, but also on all the a elements for the tabs (#a, #b etc.) nested inside of the active tab-pane.
The proper behaviour would be for the status of the parent nav-tabs to not affect the child nav-tabs.