[BUGFIX] Render only one toggle per node in trees
In non-SVG trees, there are currently two icons representing the node's expansion state rendered that get toggled via CSS rules based on hard-coded aria attributes and icon identifiers, which is a bad practice. To solve this, a new web component `typo3-backend-tree-node-toggle` is added whose only responsibility is to render the correct icon based on its `aria-expanded` attribute Resolves: #100549 Releases: main, 12.4 Change-Id: I1a955731fc21da01a914b1ef721d7eb2d1e18ed5 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79826 Tested-by:core-ci <typo3@b13.com> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Benni Mack <benni@typo3.org>
Showing
- Build/Sources/Sass/component/_treelist.scss 0 additions, 8 deletionsBuild/Sources/Sass/component/_treelist.scss
- Build/Sources/TypeScript/backend/tree/tree-node-toggle.ts 31 additions, 0 deletionsBuild/Sources/TypeScript/backend/tree/tree-node-toggle.ts
- typo3/sysext/backend/Resources/Private/Templates/PageTsConfig/Active.html 4 additions, 7 deletions...kend/Resources/Private/Templates/PageTsConfig/Active.html
- typo3/sysext/backend/Resources/Private/Templates/PageTsConfig/Includes.html 4 additions, 7 deletions...nd/Resources/Private/Templates/PageTsConfig/Includes.html
- typo3/sysext/backend/Resources/Public/Css/backend.css 0 additions, 2 deletionstypo3/sysext/backend/Resources/Public/Css/backend.css
- typo3/sysext/backend/Resources/Public/JavaScript/tree/tree-node-toggle.js 13 additions, 0 deletions...kend/Resources/Public/JavaScript/tree/tree-node-toggle.js
- typo3/sysext/core/Tests/Acceptance/Application/Template/TemplateCest.php 2 additions, 2 deletions...re/Tests/Acceptance/Application/Template/TemplateCest.php
- typo3/sysext/lowlevel/Classes/Controller/ConfigurationController.php 7 additions, 4 deletions...t/lowlevel/Classes/Controller/ConfigurationController.php
- typo3/sysext/lowlevel/Resources/Private/Templates/Configuration.html 1 addition, 1 deletion...t/lowlevel/Resources/Private/Templates/Configuration.html
- typo3/sysext/tstemplate/Resources/Private/Partials/ActiveTree.html 3 additions, 6 deletions...ext/tstemplate/Resources/Private/Partials/ActiveTree.html
- typo3/sysext/tstemplate/Resources/Private/Partials/AnalyzerTree.html 4 additions, 7 deletions...t/tstemplate/Resources/Private/Partials/AnalyzerTree.html
- typo3/sysext/tstemplate/Resources/Private/Templates/ActiveMain.html 1 addition, 1 deletion...xt/tstemplate/Resources/Private/Templates/ActiveMain.html
Please register or sign in to comment