[FEATURE] Streamline Template Buttons
This patch streamlines the behavior of template buttons. For this, we sort all classes to match the same order. To be more flexible for the usage of `DropDownButton` we now also allow the hiding of the label text, but there must be a label text or an icon assigned. We are introducing a `GenericButton` to cover more complex situations while ensuring a unified output. Adjust the `typo3-copy-to-clipboard` element to work like a normal button element that allows keyboard navigation. Resolves: #99806 Releases: main Change-Id: Ic6e7d9036097bfd87493e51e5e128ab895af1731 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77680 Reviewed-by:Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de>
Showing
- Build/Sources/TypeScript/backend/copy-to-clipboard.ts 17 additions, 1 deletionBuild/Sources/TypeScript/backend/copy-to-clipboard.ts
- typo3/sysext/backend/Classes/Template/Components/Buttons/Action/HelpButton.php 0 additions, 1 deletion...Classes/Template/Components/Buttons/Action/HelpButton.php
- typo3/sysext/backend/Classes/Template/Components/Buttons/Action/ShortcutButton.php 47 additions, 67 deletions...ses/Template/Components/Buttons/Action/ShortcutButton.php
- typo3/sysext/backend/Classes/Template/Components/Buttons/DropDown/AbstractDropDownItem.php 1 addition, 1 deletion...late/Components/Buttons/DropDown/AbstractDropDownItem.php
- typo3/sysext/backend/Classes/Template/Components/Buttons/DropDownButton.php 22 additions, 4 deletions...nd/Classes/Template/Components/Buttons/DropDownButton.php
- typo3/sysext/backend/Classes/Template/Components/Buttons/GenericButton.php 171 additions, 0 deletions...end/Classes/Template/Components/Buttons/GenericButton.php
- typo3/sysext/backend/Classes/Template/Components/Buttons/InputButton.php 7 additions, 9 deletions...ckend/Classes/Template/Components/Buttons/InputButton.php
- typo3/sysext/backend/Classes/Template/Components/Buttons/LinkButton.php 5 additions, 6 deletions...ackend/Classes/Template/Components/Buttons/LinkButton.php
- typo3/sysext/backend/Resources/Public/JavaScript/copy-to-clipboard.js 1 addition, 1 deletion.../backend/Resources/Public/JavaScript/copy-to-clipboard.js
- typo3/sysext/backend/Tests/Functional/Controller/MfaConfigurationControllerTest.php 1 addition, 1 deletion.../Functional/Controller/MfaConfigurationControllerTest.php
- typo3/sysext/backend/Tests/Functional/Template/Fixtures/RecordList.html 11 additions, 7 deletions...ackend/Tests/Functional/Template/Fixtures/RecordList.html
- typo3/sysext/backend/Tests/Functional/Template/Fixtures/RecordListCopyToClipboard.html 43 additions, 45 deletions...nctional/Template/Fixtures/RecordListCopyToClipboard.html
- typo3/sysext/backend/Tests/Functional/Template/Fixtures/RecordListSingleTable.html 8 additions, 6 deletions...s/Functional/Template/Fixtures/RecordListSingleTable.html
- typo3/sysext/backend/Tests/Functional/Template/Fixtures/RecordListSingleTableCopyToClipboard.html 49 additions, 44 deletions...mplate/Fixtures/RecordListSingleTableCopyToClipboard.html
- typo3/sysext/backend/Tests/Functional/Template/Fixtures/SpecialRouteIdentifier.html 11 additions, 7 deletions.../Functional/Template/Fixtures/SpecialRouteIdentifier.html
- typo3/sysext/backend/Tests/Functional/Template/Fixtures/SpecialRouteIdentifierWithArguments.html 11 additions, 7 deletions...emplate/Fixtures/SpecialRouteIdentifierWithArguments.html
- typo3/sysext/backend/Tests/Functional/Template/Fixtures/SpecialRouteIdentifierWithArgumentsCopyToClipboard.html 50 additions, 43 deletions...s/SpecialRouteIdentifierWithArgumentsCopyToClipboard.html
- typo3/sysext/beuser/Classes/Controller/PermissionController.php 2 additions, 1 deletion...sysext/beuser/Classes/Controller/PermissionController.php
- typo3/sysext/core/Documentation/Changelog/12.2/Feature-99806-IntroduceGenericButtonComponent.rst 32 additions, 0 deletions...og/12.2/Feature-99806-IntroduceGenericButtonComponent.rst
- typo3/sysext/core/Tests/Acceptance/Application/FileList/FileClipboardCest.php 2 additions, 2 deletions...sts/Acceptance/Application/FileList/FileClipboardCest.php
Please register or sign in to comment