90594[!!!][TASK] Migrate Modal component from Bootstrap to native dialog
Commit message
Review
-
Code review CR +2 Done
- Benjamin Kott +2
- Benjamin Franzke +1
- Oli Bartsch +1
-
Verified V +2 Done
- Benjamin Kott +2
- Benjamin Franzke +1
- Oli Bartsch +1
- core-ci +1 CI
Issues 1
Files 38
- Build/Sources/Sass/component/_modal.scss+231 −243
- Build/Sources/TypeScript/backend/modal.ts10+105 −78
- Build/Sources/TypeScript/backend/multi-step-wizard.ts+52 −52
- Build/Sources/TypeScript/backend/record-download-button.ts+1 −2
- Build/Sources/TypeScript/filelist/file-delete.ts+1 −1
- Build/Sources/TypeScript/form/backend/form-manager/view-model.ts+28 −67
- typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php+3 −3
- typo3/sysext/backend/Resources/Private/Partials/PageLayout/RecordDefault/Header.html+1 −1
- typo3/sysext/backend/Resources/Private/Templates/Page/SortSubPages.html+6 −6
- typo3/sysext/backend/Resources/Public/Css/backend.css+44 −39
- typo3/sysext/backend/Resources/Public/JavaScript/modal.js+1 −1
- typo3/sysext/backend/Resources/Public/JavaScript/multi-step-wizard.js+1 −1
- typo3/sysext/backend/Resources/Public/JavaScript/record-download-button.js+1 −1
- typo3/sysext/beuser/Resources/Private/Partials/BackendUser/PaginatedList.html+2 −2
- typo3/sysext/beuser/Resources/Private/Partials/BackendUserGroup/PaginatedList.html+1 −1
- typo3/sysext/beuser/Resources/Private/Partials/Filemount/PaginatedList.html+1 −1
- typo3/sysext/beuser/Resources/Private/Templates/BackendUser/Online.html+1 −1
- typo3/sysext/core/Documentation/Changelog/14.0/Breaking-107443-MigrateModalComponentFromBootstrapToNativeDialog.rst6new+197 −0
- typo3/sysext/core/Tests/Acceptance/Application/FileList/FileOperationsCest.php+1 −1
- typo3/sysext/core/Tests/Acceptance/Application/FormEngine/FalMetadataCest.php+2 −2
Show 18 more files
- typo3/sysext/core/Tests/Acceptance/Application/FormEngine/InlineContentElementLocalizeSynchronizeCest.php+2 −2
- typo3/sysext/core/Tests/Acceptance/Application/InstallTool/AbstractCest.php+2 −2
- typo3/sysext/core/Tests/Acceptance/Application/InstallTool/EnvironmentCest.php+1 −1
- typo3/sysext/core/Tests/Acceptance/Application/InstallTool/MaintenanceCest.php+11 −11
- typo3/sysext/core/Tests/Acceptance/Application/InstallTool/SettingsCest.php+4 −5
- typo3/sysext/core/Tests/Acceptance/Application/RecordList/RecordDownloadCest.php+1 −1
- typo3/sysext/core/Tests/Acceptance/Application/RecordList/RecordDownloadWithPresetCest.php+2 −2
- typo3/sysext/core/Tests/Acceptance/Application/Scheduler/SchedulerTaskWizardCest.php+1 −1
- typo3/sysext/core/Tests/Acceptance/Support/Helper/ModalDialog.php+2 −2
- typo3/sysext/filelist/Classes/FileList.php+1 −1
- typo3/sysext/filelist/Resources/Public/JavaScript/file-delete.js+1 −1
- typo3/sysext/form/Resources/Public/JavaScript/backend/form-manager/view-model.js+1 −1
- typo3/sysext/reactions/Resources/Private/Templates/Management/Overview.html+1 −1
- typo3/sysext/redirects/Resources/Private/Templates/Management/Overview.html+2 −2
- typo3/sysext/scheduler/Resources/Private/Partials/GroupUnusedList.html+1 −1
- typo3/sysext/scheduler/Resources/Private/Partials/TaskList.html+3 −3
- typo3/sysext/setup/Classes/Controller/SetupModuleController.php+1 −1
- typo3/sysext/webhooks/Resources/Private/Templates/Management/Overview.html+1 −1
Review log 3148
Show 1323 earlier messages
-
Andreas Nedbal uploaded patch set 1 09/08/25, 09:59
-
Andreas Nedbal marked it work in progress 09/08/25, 09:59
-
core-ci voted on patch set 1 V -1 09/08/25, 10:07 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/84614
-
Benjamin Kott marked it ready for review 10/17/25, 09:51
-
Benjamin Kott uploaded patch set 2
V -110/17/25, 10:01 -
core-ci voted on patch set 2 V -1 10/17/25, 10:13 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/86887
-
Benjamin Kott uploaded patch set 3
V -110/17/25, 13:16 -
core-ci voted on patch set 3 V -1 10/17/25, 13:30 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/86903
-
Benjamin Kott uploaded patch set 4
V -110/17/25, 14:00 -
core-ci voted on patch set 4 V -1 10/17/25, 14:19 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/86912
-
Benjamin Kott uploaded patch set 5
V -110/21/25, 09:00 -
Benjamin Kott uploaded patch set 6 10/21/25, 09:07
-
core-ci voted on patch set 5 V -1 10/21/25, 09:14 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87155
-
core-ci voted on patch set 6 V -1 10/21/25, 09:21 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87156
-
Benjamin Kott uploaded patch set 7
V -110/21/25, 09:27 -
core-ci voted on patch set 7 V -1 10/21/25, 09:41 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87158
-
Benjamin Kott uploaded patch set 8
V -110/21/25, 10:16 -
Benjamin Kott uploaded patch set 9 10/21/25, 10:23
-
core-ci voted on patch set 8 V -1 10/21/25, 10:36 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87161
-
core-ci voted on patch set 9 V -1 10/21/25, 10:39 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87164
-
Benjamin Kott uploaded patch set 10
V -110/21/25, 10:48 -
core-ci voted on patch set 10 V -1 10/21/25, 10:56 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87168
-
Benjamin Kott uploaded patch set 11
V -110/21/25, 10:58
-
Benjamin Kott uploaded patch set 12 10/21/25, 10:59
-
Benjamin Kott uploaded patch set 13 10/21/25, 11:07
-
core-ci voted on patch set 11 V -1 10/21/25, 11:08 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87169
-
core-ci voted on patch set 12 V -1 10/21/25, 11:12 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87170
-
core-ci voted on patch set 13 V -1 10/21/25, 11:20 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87172
-
Benjamin Kott uploaded patch set 14
V -110/21/25, 12:10 -
core-ci voted on patch set 14 V +1 10/21/25, 12:20 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87181
-
Benjamin Kott voted on patch set 14 CR +1 V +1 10/21/25, 12:25
-
Benjamin Franzke commented on patch set 14 10/21/25, 20:27
modal.ts:185Even with `<dialog>` we need to add `aria-labelledby="id-of-header"` or even easier (avoids generating an ID) `aria-label="${this.modalTitle}"` in order to add an accessible name to the dialog. …but that can be done with a separate change and is actually unrelated to the `<dialog>` topic. -
Benjamin Franzke uploaded patch set 15
CR +1V +110/22/25, 05:51 -
Benjamin Franzke commented on patch set 15 10/22/25, 05:51
modal.ts:126ReplyMigrated to transitionend.modal.ts:136This event must be triggered once the modal is fully shown. That means we need to await transitionend. Done.modal.ts:157This should have triggered a temporary state and a re-render, but we're actually better off with using browsers `.animate()` directly. Done.modal.ts:185Replyadded now anyway.modal.ts:509`dataset.bsContent` was/is still used by our codebase (this patch missed ~24 usages). I've now migrated those to `data-content` in patchset 15, but I wonder if we should just keep supporting this attribute for those who already combined `.t3js-modal-trigger` with `data-bs-content`? It is low effort for us and avoids breaking markup triggers which don't care at all, what technical implementation is used and just used the markup that TYPO3 used itself. `data-content` instead of `data-bs-content` has not even been documented on https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Backend/JavaScript/Modules/Modals.html#data-attributes => I've decided to keep `data-bs-content` supported. Let's discuss if you do not agree ;)lit-helper.ts:74Why was this change needed? It would filter classes that do not evaluate to "true", which is a pretty ugly and non-strict way instead of using proper and descriptive callback like `(value) => value !== ''` – but we actually do not need that. I removed that, please readd with explanation why we should do this, if really needed. -
core-ci voted on patch set 15 V +1 10/22/25, 06:00 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87216
-
Benjamin Kott uploaded patch set 16
CR +1V +110/22/25, 06:41 -
core-ci voted on patch set 16 V +1 10/22/25, 06:49 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87218
-
Benjamin Kott commented on patch set 16 10/22/25, 06:51
modal.ts:509ReplyI've removed it again, as we had previously options to not use it. The signal should be clear here, we are dropping bootstrap and should not support fallbacks if we already have options available also in previous versions that would allow to not use the bootstrap data attributes. -
Garvin Hicking commented on patch set 16 10/22/25, 07:31
Breaking-107443-MigrateModalComponentFromBootstrapToNativeDialog.rst:35```suggestion Extensions using :js:`data-bs-toggle="modal"`, :js:`data-bs-content="..."` or :js:`data-bs-target` attributes to ```Breaking-107443-MigrateModalComponentFromBootstrapToNativeDialog.rst:48```suggestion - Use :js:`data-bs-toggle="modal"` attributes to trigger modals - Use :js:`data-bs-content="..."` attributes to set modal contents ```Breaking-107443-MigrateModalComponentFromBootstrapToNativeDialog.rst:181```suggestion .. note:: Note that using the attribute "data-content" instead of "data-bs-content" allows compatibility for TYPO3 v12, v13 and v14. Or use the JavaScript API directly: ``` -
Benjamin Franzke commented on patch set 16 CR -1 10/22/25, 08:03
modal.ts:509ReplyBut we didn't migrate our own usages (we had 24 leftovers) and it is super hard to detect for developers, given that a silent Fallback to a generic label is in place. I agree that this sucks, but should not break this directly, a console.error does not hurt. or at least add it but ignore the content, but let's not be silent. I am against this as is. -
Benjamin Franzke uploaded patch set 17
CR -1V +110/22/25, 08:35 -
Benjamin Franzke commented on patch set 17 10/22/25, 08:35
modal.ts:509ReplyAdded a `console.error` but kept the removal. I think this helps developers and satisfies your (understandable) cleanup demand.Breaking-107443-MigrateModalComponentFromBootstrapToNativeDialog.rst:35ReplyDoneBreaking-107443-MigrateModalComponentFromBootstrapToNativeDialog.rst:48ReplyDoneBreaking-107443-MigrateModalComponentFromBootstrapToNativeDialog.rst:181ReplyTYPO3 v12 also supported data-content, this is actually not needed. -
core-ci voted on patch set 17 V +1 10/22/25, 08:45 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87220
-
Benjamin Franzke voted on patch set 17 CR +1 V +1 10/22/25, 08:57
-
Oli Bartsch voted on patch set 17 CR +1 V +1 10/22/25, 09:01
-
Benjamin Kott voted on patch set 17 CR +2 V +2 10/22/25, 10:16
-
Benjamin Kott merged patch set 18 10/22/25, 10:16
-
Garvin Hicking commented on patch set 18 12/15/25, 15:37
Please check out https://forge.typo3.org/issues/108488 which seems to be an issue related to this change? A patch is pending already: https://review.typo3.org/c/Packages/TYPO3.CMS/+/92124
modal.ts:126