Skip to content

Commit

Permalink
Fix aria-controls in TabSet
Browse files Browse the repository at this point in the history
ntd committed Nov 7, 2018
1 parent 2e070bf commit adaeb1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/SilverStripe/Forms/TabSet.ss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<ul $getAttributesHTML('class') class="nav nav-tabs $extraClass" role="tablist"><% loop $Tabs %>
<li role="presentation"<% if $First %> class="active"<% end_if %>><a href="#$Top.Name-$Pos" aria-controls="$Name" role="tab" data-toggle="tab">$Name.XML</a></li><% end_loop %>
<li role="presentation"<% if $First %> class="active"<% end_if %>><a href="#$Top.Name.ATT-$Pos" aria-controls="$Top.Name.ATT-$Pos" role="tab" data-toggle="tab">$Name.XML</a></li><% end_loop %>
</ul>
<div class="tab-content"><% loop $Tabs %><% if $Tabs %>
<b>ERROR</b> Nested tabs are <a href="http://getbootstrap.com/javascript/#tabs-examples">not supported</a> by BootStrap 3.<% else %>
<div role="tabpanel" class="tab-pane<% if $First %> active<% end_if %>" id="$Top.Name-$Pos"><% loop $Fields %>
<b>ERROR</b> Nested tabs are <a href="https://getbootstrap.com/docs/3.3/javascript/#tabs-examples">not supported</a> by BootStrap 3.<% else %>
<div role="tabpanel" class="tab-pane<% if $First %> active<% end_if %>" id="$Top.Name.ATT-$Pos"><% loop $Fields %>
$FieldHolder<% end_loop %>
</div><% end_if %><% end_loop %>
</div>

0 comments on commit adaeb1b

Please sign in to comment.