Skip to content

Commit

Permalink
[TASK] fix accessibility in TabGroup for valid w3c html (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Basel authored and pixelmatseriks committed Sep 21, 2017
1 parent 0c2e680 commit cde4489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Private/Templates/GridElements/TabGroup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<f:section name="Main">
<ul class="nav {f:if(condition: '{data.pi_flexform.data.columns.lDEF.tabstyle.vDEF}', then: 'nav-pills', else: 'nav-tabs')}" role="tablist" id="tab-{f:if(condition: data._LOCALIZED_UID, then: data._LOCALIZED_UID, else: data.uid)}" >
<f:for each="{data.tx_gridelements_view_children}" as="tab" iteration="tabIteration">
<li role="presentation" {f:if(condition: '{tabIteration.index} == 0', then: ' class="active"', else: '')}><a href="#tab-{tab.uid}" aria-controls="{tab.header}" role="tab" data-toggle="{f:if(condition: '{data.pi_flexform.data.columns.lDEF.tabstyle.vDEF}', then: 'pill', else: 'tab')}">{tab.header}</a></li>
<li role="presentation" {f:if(condition: '{tabIteration.index} == 0', then: ' class="active"', else: '')}><a href="#tab-{tab.uid}" aria-controls="tab-{tab.uid}" role="tab" data-toggle="{f:if(condition: '{data.pi_flexform.data.columns.lDEF.tabstyle.vDEF}', then: 'pill', else: 'tab')}">{tab.header}</a></li>
</f:for>
</ul>
<div class="tab-content">
Expand Down

0 comments on commit cde4489

Please sign in to comment.