Commit 9117e5f
authored
[4.0] Update buttons.php layout to latest Bootstrap 5 markup, also added LEGEND markup (#32367)
* Update buttons.php
Updated layout file according to Bootstrap 5 new markup
* the `active` class no longer required for the label
* the `<input>` is no longer inside the `<label>` element
* the new markup requires no `bootstrap.Button` plugin functionality anymore
Details on the updated markup
https://getbootstrap.com/docs/5.0/components/button-group/#checkbox-and-radio-button-groups
* Update buttons.php
Regarding #32367 (comment)
* Update buttons.php
LoL typo
* Update buttons.php
Changes:
* Reverting to previous as explained [here](#32367 (comment)), now `class="btn-group btn-group-yesno"` is necessary to create a switcher with `type="Radio"` field with the `buttons` layout
* added `<legend>` as mentioned [here](#32367 (comment))
* both `.switcher__legend` and the new `radio__legend` additional styling is irrelevant since both elements use `.visually-hidden`, the `.switcher__legend` is now redundant
* Update buttons.php1 parent 5bacf58 commit 9117e5f
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
107 | | - | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| |||
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| 121 | + | |
119 | 122 | | |
120 | | - | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
0 commit comments