70884[FEATURE] Introduce Bootstrap 5 compatible and accessible templates
Commit message
Review
-
Code review CR +2 Done
- waldhacker +2
- Björn Jacob +1
- Andreas Steiger +1
- Oliver Hader +1
-
Verified V +2 Done
- waldhacker +2
- Björn Jacob +1
- Andreas Steiger +1
- core-ci +1 CI
Issues 3
Files 62
- typo3/sysext/core/Documentation/Changelog/master/Feature-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates.rst9new+78 −0
- typo3/sysext/form/Classes/Domain/Condition/Functions/FormConditionFunctionsProvider.php+24 −0
- typo3/sysext/form/Classes/Domain/Model/FormDefinition.php+7 −1
- typo3/sysext/form/Configuration/Yaml/FormElements/AdvancedPassword.yaml+12 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/Checkbox.yaml+10 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/ContentElement.yaml+7 −2
- typo3/sysext/form/Configuration/Yaml/FormElements/Date.yaml+9 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/DatePicker.yaml+9 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/Email.yaml+9 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/Fieldset.yaml+8 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/FileUpload.yaml+9 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/Form.yaml+25 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/GridRow.yaml+8 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/Hidden.yaml3+6 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/Honeypot.yaml+7 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/ImageUpload.yaml+9 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/MultiCheckbox.yaml+13 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/MultiSelect.yaml+9 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/Number.yaml+9 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/Password.yaml+9 −0
Show 42 more files
- typo3/sysext/form/Configuration/Yaml/FormElements/RadioButton.yaml+13 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/SingleSelect.yaml+9 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/StaticText.yaml2+7 −2
- typo3/sysext/form/Configuration/Yaml/FormElements/SummaryPage.yaml+9 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/Telephone.yaml+9 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/Text.yaml+9 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/Textarea.yaml+8 −0
- typo3/sysext/form/Configuration/Yaml/FormElements/Url.yaml+9 −0
- typo3/sysext/form/Documentation/I/Config/configuration/Index.rst+1 −0
- typo3/sysext/form/Documentation/I/Config/proto/formElements/formElementTypes/Form/renderingOptions/templateVariant.rstnew+28 −0
- typo3/sysext/form/Documentation/I/Config/proto/formElements/formElementTypes/Form.rst+3 −0
- typo3/sysext/form/Resources/Private/Backend/Partials/FormEditor/Inspector/GridColumnViewPortConfigurationEditor.html+1 −1
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Field/Field.htmlnew+43 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Field/Required.htmlnew+3 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Form/Navigation.htmlnew+18 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/AdvancedPassword.htmlnew+57 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Checkbox.htmlnew+28 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/ContentElement.htmlnew+25 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Date.htmlnew+24 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/DatePicker.htmlnew+56 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Email.htmlnew+23 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Fieldset.htmlnew+12 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/FileUpload.htmlnew+31 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/GridRow.htmlnew+11 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Hidden.htmlnew+10 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Honeypot.htmlnew+10 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/ImageUpload.htmlnew+33 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/MultiCheckbox.htmlnew+44 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/MultiSelect.htmlnew+44 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Number.htmlnew+24 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Page.htmlnew+10 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Password.htmlnew+23 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/RadioButton.htmlnew+43 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/SingleSelect.htmlnew+41 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/StaticText.htmlnew+12 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/SummaryPage.htmlnew+52 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Telephone.htmlnew+24 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Text.htmlnew+23 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Textarea.htmlnew+25 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/UnknownElement.htmlnew+3 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Partials/Url.htmlnew+24 −0
- typo3/sysext/form/Resources/Private/FrontendVersion2/Templates/Form.htmlnew+21 −0
Review log 6077
Show 3952 earlier messages
-
rgropp uploaded patch set 1 09/03/21, 13:57
-
core-ci voted on patch set 1 V -1 09/03/21, 14:20 Core CI is not happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16187
-
Paul H commented on patch set 1 09/03/21, 14:46
Would you consider splitting the BS5/breakpoint changes from the a11y-related ones? It is harder to review and refine the a11y improvements. Regarding the additional breakpoints and form editor UX, do typical editors need so many options in the form editor? -
waldhacker uploaded patch set 2 09/03/21, 14:51
-
Paul H commented on patch set 2 09/03/21, 14:54
Ah, the YAML changes belong in https://review.typo3.org/c/Packages/TYPO3.CMS/+/70866/ -
core-ci voted on patch set 2 V -1 09/03/21, 15:20 Core CI is not happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16199
-
Björn Jacob commented on patch set 2 09/03/21, 21:24
Reply
Exactly, as soon as the other patch is merged, this one is smaller 😊 -
waldhacker commented on patch set 2 CR -1 09/04/21, 08:19
I'm afraid we can only include this with the launch of v12. The changes are too breaking and can therefore no longer be included in the current release cycle. -
waldhacker commented on patch set 2 09/04/21, 11:05
on it -
waldhacker uploaded patch set 3 09/04/21, 14:09
-
waldhacker updated the commit message in patch set 4 09/04/21, 14:14
-
waldhacker commented on patch set 4 09/04/21, 14:20
Reply
Sorry, now its bigger 🐨 -
core-ci voted on patch set 3 V +1 09/04/21, 14:30 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16251
-
core-ci voted on patch set 4 V +1 09/04/21, 14:32 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16252
-
Björn Jacob updated the commit message in patch set 5 09/04/21, 20:32
-
core-ci voted on patch set 5 V +1 09/04/21, 20:48 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16272
-
Björn Jacob commented on patch set 5 09/04/21, 21:15
Hidden.yaml:76Can be removed IMHO.StaticText.yaml:43Correct condition missing, or am I wrong? -
Björn Jacob uploaded patch set 6 09/04/21, 22:01
-
Björn Jacob commented on patch set 6 CR -1 09/04/21, 22:10
Not ready yet. I am working on the rsts and some questions are open. I am in dialog with Ralf. -
core-ci voted on patch set 6 V +1 09/04/21, 22:14 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16273
-
waldhacker uploaded patch set 7 09/05/21, 06:56
-
waldhacker commented on patch set 7 09/05/21, 07:00
Hidden.yaml:76ReplyI think it's ok to give integrators the ability to write a class to the element. Integrators may want to select the element e.g. via JavaScript based on the class.StaticText.yaml:43ReplyGood catch! -
waldhacker voted on patch set 7 CR -1 09/05/21, 07:00
-
core-ci voted on patch set 7 V +1 09/05/21, 07:13 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16278
-
waldhacker uploaded patch set 8 09/05/21, 08:22
-
waldhacker voted on patch set 8 CR -1 09/05/21, 08:23
-
core-ci voted on patch set 8 V +1 09/05/21, 08:40 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16280
-
waldhacker voted on patch set 8 CR 0 09/05/21, 08:42
-
Björn Jacob updated the commit message in patch set 9 09/05/21, 19:53
-
Björn Jacob uploaded patch set 10 09/05/21, 20:03
-
Björn Jacob voted on patch set 10 V +1 CR +1 09/05/21, 20:04
-
core-ci voted on patch set 9 V +1 09/05/21, 20:08 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16292
-
core-ci voted on patch set 10 V +1 09/05/21, 20:18 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16293
-
Björn Jacob uploaded patch set 11 09/05/21, 20:39
-
Björn Jacob voted on patch set 11 V +1 CR +1 09/05/21, 20:39
-
core-ci voted on patch set 11 V +1 09/05/21, 20:56 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16295
-
waldhacker commented on patch set 12 09/06/21, 06:40
Published edit on patch set 11. -
Björn Jacob voted on patch set 12 V +1 CR +1 09/06/21, 06:56
-
core-ci voted on patch set 12 V +1 09/06/21, 07:07 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16300
-
waldhacker voted on patch set 12 V +1 CR +1 09/06/21, 07:16
-
waldhacker uploaded patch set 13 09/06/21, 08:56
-
rgropp voted on patch set 12 V +1 CR +1 09/06/21, 09:12
-
core-ci voted on patch set 13 V +1 09/06/21, 09:13 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16312
-
rgropp voted on patch set 13 V +1 CR +1 09/06/21, 09:13
-
waldhacker voted on patch set 13 V +1 CR +1 09/06/21, 09:13
-
Björn Jacob voted on patch set 13 V +1 CR +1 09/06/21, 09:14
-
Oli Bartsch commented on patch set 13 CR -1 09/06/21, 10:17
RST files have to be moved to 11.4/ since https://review.typo3.org/c/Packages/TYPO3.CMS/+/70888/ got merged.Deprecation-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates:33I don't use bootstrap in frontend. EXT:form does also not provide the necessary stylesheets for the classes, which are set by default in the configuration. If I get the patch right, this now means, to prevent deprecation entires in v11, I have to overwrite each and every field to use my custom framework classes again, right?Feature-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates.rst:18I don't think it's a good idea to use a version number here. Do we rename them again after bootstrap 6 release? Reminds me of customer projects having "Relaunch2018/", "Relaunch2020/", "NewLayout123" as directory names. -
Tobias Siegler voted on patch set 13 V +1 CR +1 09/06/21, 10:18
-
waldhacker commented on patch set 13 09/06/21, 10:27
Deprecation-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates:33ReplyThe previous templates were also aligned to bootstrap 3 in terms of classes, regardless of whether bootstrap is used in the frontend or not. We can also remove the deprecation here, but we wanted to use the new templates as default in v12 because they offer better accessibility. Do you have any idea how we could do this without deprecation?Feature-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates.rst:18ReplyWe can also use a different naming here. The idea to call it bootstrap5 was exactly that we don't need to use "new" or something like that. If at some point a new template variant is implemented in ext:from, then we could better switch / distinguish based on the explicit namings. Do you have a suggestion for a better naming? -
Björn Jacob commented on patch set 13 09/06/21, 10:40
Deprecation-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates:33ReplyNeither the form framework nor the TYPO3 core provide any CSS or JS for the frontend when it comes to FE frameworks. Since the birth of the form framework, we provide templates which are Bootstrap 3 ready. Now, we are switching to Bootstrap 5. If you want to use different classes, adapt the config and the templates accordingly. That is the concept since ever. We don't touch this. No change in functionality. I totally support the current solution of deprecating the old templates for v12. The new templates are highly optimized regarding structure and accessibility. And you don't need to overwrite the templates anymore if you just want to add some more classes or change them etc.Feature-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates.rst:18ReplyThe name is IMHO perfect. It describes what it does. Shipping Bootstrap 5 ready templates. Nothing else. And yes: if there is a Bootstrap 6, the changes could be quite big which justifies having new templates in a new folder. -
Oli Bartsch commented on patch set 13 09/06/21, 12:09
Deprecation-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates:33ReplyPreviously some bootstrap related classes were "hardcoded" in the templates, while by default, "elementClassAttribute" was not set for most of the field types. So, to be able to define custom framework classes (and to do changes to markup structur), templates got overriden. With this change, devs are now forced to set "templateVariant: bootstrap5" even if they do not use bootstrap. Furthermore does this _activate_ the new variant and the bootstrap5 related classes are applied. Devs therefore either have to rewrite the templates again or otherwise have to override each an every field in the configuration to omit the bootstrap5 classes.Feature-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates.rst:18ReplyWon't block this, however still don't see why we have to name the directory this way. I mean, non of the templates use bootstrap classes. They just contain scaffolding, while the attributes get filled by variables. In case those templates only work when assigning bootstrap5 related classes to the variables, this would be another reason to not deprecate the old behaviour. -
waldhacker commented on patch set 13 09/06/21, 12:13
Deprecation-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates:33ReplyMaybe we can omit the deprecation and just run both template variants in parallel while the "legacy" templates are still the default?
-
waldhacker uploaded patch set 14 09/06/21, 12:22
-
waldhacker commented on patch set 14 09/06/21, 12:30
Deprecation-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates:33ReplyI have removed the deprecation so that from now on both template variants are deliveredFeature-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates.rst:18ReplyOk but do you have any idea how to distinguish "new stuff" from "old stuff" in terms of naming without using something like "Ng" or "New"? I can't think of anything useful right now.... -
core-ci voted on patch set 14 V +1 09/06/21, 12:37 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16318
-
Oli Bartsch commented on patch set 14 09/06/21, 13:01
Deprecation-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates:33ReplyAll right, feels better now.Feature-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates.rst:18ReplyDon't have any idea currently, sorry. Maybe some term which describes the improvements, referring to a11y, "new" grid and clean templates (no more "hardcoded" classes). -
waldhacker commented on patch set 14 09/06/21, 13:21
Feature-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates.rst:18ReplyI think then the only thing left is some kind of versioning.... something like "version2"... what do you think? -
waldhacker uploaded patch set 15 09/06/21, 13:46
-
waldhacker commented on patch set 15 09/06/21, 13:48
Feature-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates.rst:18ReplyI have renamed the stuff from `legacy` / `bootstrap5` to `version1` / `version2`. -
core-ci voted on patch set 15 V +1 09/06/21, 14:11 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16327
-
waldhacker voted on patch set 15 V +1 CR +1 09/06/21, 14:11
-
Björn Jacob voted on patch set 15 V +1 CR +1 09/06/21, 14:12
-
Tobias Siegler voted on patch set 15 V +1 CR +1 09/06/21, 14:48
-
Björn Jacob commented on patch set 15 09/24/21, 10:10
Reply
DoneFeature-94868-IntroduceBootstrap5CompatibleAndAccessibleTemplates.rst:18ReplyDoneHidden.yaml:76ReplyDone -
Oliver Hader commented on patch set 15 09/27/21, 17:53
The change concerning configuration options has been extracted to https://review.typo3.org/c/Packages/TYPO3.CMS/+/71314 - which makes this change smaller a little bit. -
Benni Mack uploaded patch set 16 09/28/21, 09:17
-
rgropp uploaded patch set 17 09/29/21, 08:30
-
core-ci voted on patch set 17 V +1 09/29/21, 08:43 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/17299
-
Björn Jacob uploaded patch set 18 09/30/21, 16:33
-
core-ci voted on patch set 18 V +1 09/30/21, 16:48 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/17360
-
Björn Jacob voted on patch set 18 V +1 CR +1 09/30/21, 17:27
-
Andreas Steiger commented on patch set 18 V +1 CR +1 10/01/21, 12:44
really, really nice! -
Andreas Steiger commented on patch set 18 10/01/21, 12:46
Reply
Done -
Oliver Hader voted on patch set 18 CR +1 10/01/21, 13:12
-
Oliver Hader commented on patch set 18 10/01/21, 13:13
Please go ahead and merge it -
waldhacker voted on patch set 18 V +2 CR +2 10/01/21, 13:31
-
waldhacker merged patch set 19 10/01/21, 13:33