Skip to content
Snippets Groups Projects
Commit 742b60c7 authored by Benni Mack's avatar Benni Mack Committed by Richard Haeser
Browse files

[BUGFIX] Use active tab in link for tabs in Element Browser

The element browser now shows the active state
again of the tab (Page, File, Folder etc), because the
active class needs to reside on the link and not on the <li>
element.

Resolves: #93761
Releases: master
Change-Id: Ie7db46b1b6b321546d5a976fea35e747d8848806
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68470


Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarRichard Haeser <richard@richardhaeser.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarRichard Haeser <richard@richardhaeser.com>
parent d6cbd848
Branches
Tags
No related merge requests found
......@@ -13,8 +13,8 @@
<div class="element-browser-panel element-browser-tabs">
<ul class="nav nav-tabs" role="tablist">
<f:for each="{menuItems}" as="menuItem" key="menuId">
<li class="nav-item {f:if(condition: '{menuItem.isActive}', then: 'active')}">
<a href="{menuItem.url}" class="nav-link" {menuItem.addParams -> f:format.raw()}>{menuItem.label}</a>
<li class="nav-item">
<a href="{menuItem.url}" class="nav-link {f:if(condition: menuItem.isActive, then: 'active')}" {menuItem.addParams -> f:format.raw()}>{menuItem.label}</a>
</li>
</f:for>
</ul>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment