#105459wrong structural order of checkbox and radiobutton elements in ext:form Bootstrap 5 templates (FrontendVersion2)
Description
The default ext:form Bootstrap 5 templates(FrontentVersion2) have the wrong order of elements in the partials which breaks the style when using Botstrap 5 and have to be rewritten by an integrator.
The current ext:form Bootstrap 5 partials use <input> elements within a
From the Bootstrap 5 “Checks and radios” documentation: https://getbootstrap.com/docs/5.3/forms/checks-radios/#approach
Structurally, our <input>s and <label>s are sibling elements as opposed to an <input> within a <label>. This is slightly more verbose as you must specify id and for attributes to relate the <input> and <label>.
This is an issue since TYPO3 11.5 and is still an issue in the current main-branch
For example:
https://github.com/TYPO3-CMS/form/blob/main/Resources/Private/FrontendVersion2/Partials/Checkbox.html#L13
https://github.com/TYPO3-CMS/form/blob/main/Resources/Private/FrontendVersion2/Partials/MultiCheckbox.html#L17
https://github.com/TYPO3-CMS/form/blob/main/Resources/Private/FrontendVersion2/Partials/RadioButton.html#L17
Reviews 1
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". The changes above were merged or abandoned: read them before you start. How to create a patch
- Commit message
-
[BUGFIX] wrong structural order of checkbox and radiobutton elements in ext:form Bootstrap 5 templates (FrontendVersion2) Resolves: #105459 Releases: main
History 26
-
Gerrit Code Review pushed patch set 1 for main to change 90063 status
NewUnder Review <span data-processor="relativetime" data-value="2025-07-14T12:42:43+00:00" > 07/14/25, 12:42 </span> -
Gerrit Code Review pushed patch set 2 for main to change 90063 <span data-processor="relativetime" data-value="2025-07-14T12:49:38+00:00" > 07/14/25, 12:49 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 90063 <span data-processor="relativetime" data-value="2025-07-14T14:51:52+00:00" > 07/14/25, 14:51 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 90063 <span data-processor="relativetime" data-value="2026-04-22T06:33:30+00:00" > 04/22/26, 06:33 </span>
-
Benni Mack changed Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2026-08-06T16:02:26+00:00" > 08/06/26, 16:02 </span>
The labelClassAttribute has also the value form-check-wrapping-label defined but this is nowhere used or defined as far as I can see.
There seems to be no CSS (either custom or Bootstrap 5) so this can be removed I would say.