From 4281557a383bcd7f33ce91a5dfc7dd1971df8905 Mon Sep 17 00:00:00 2001
From: Oliver Bartsch <bo@cedev.de>
Date: Wed, 5 Jul 2023 12:38:31 +0200
Subject: [PATCH] [TASK] Remove unused toolbar related JS selectors

Resolves: #101238
Releases: main, 12.4
Change-Id: I3ff0ea07c5b4121d3b585215b13b4834de7838b4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79735
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Oliver Bartsch <bo@cedev.de>
---
 .../Classes/ViewHelpers/Toolbar/AttributesViewHelper.php        | 2 +-
 .../backend/Resources/Private/Partials/Backend/Topbar.html      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/backend/Classes/ViewHelpers/Toolbar/AttributesViewHelper.php b/typo3/sysext/backend/Classes/ViewHelpers/Toolbar/AttributesViewHelper.php
index 500a36979162..c9ec545e7e32 100644
--- a/typo3/sysext/backend/Classes/ViewHelpers/Toolbar/AttributesViewHelper.php
+++ b/typo3/sysext/backend/Classes/ViewHelpers/Toolbar/AttributesViewHelper.php
@@ -43,7 +43,7 @@ final class AttributesViewHelper extends AbstractViewHelper
     public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext): string
     {
         $additionalAttributes = [
-            'class' => 'toolbar-item t3js-toolbar-item',
+            'class' => 'toolbar-item',
         ];
 
         $toolbarItem = $arguments['class'] ?? null;
diff --git a/typo3/sysext/backend/Resources/Private/Partials/Backend/Topbar.html b/typo3/sysext/backend/Resources/Private/Partials/Backend/Topbar.html
index 7b8274e31194..d17b7112b22c 100644
--- a/typo3/sysext/backend/Resources/Private/Partials/Backend/Topbar.html
+++ b/typo3/sysext/backend/Resources/Private/Partials/Backend/Topbar.html
@@ -47,7 +47,7 @@
     </div>
 </div>
 <div class="scaffold-toolbar t3js-scaffold-toolbar" data-toolbar-identifier="toolbar">
-    <div class="toolbar t3js-topbar-toolbar">
+    <div class="toolbar">
         <ul class="toolbar-list" data-typo3-role="typo3-module-menu">
             <f:for each="{toolbarItems}" as="toolbarItem">
                 <li {be:toolbar.attributes(class: toolbarItem) -> f:format.raw()}>
-- 
GitLab