[4.0] Flex based control-group fields#27684
Conversation
I thought Joomla! 4 use scss 😋 |
|
@brianteeman Do you know of any reason why the switcher has a |
|
Switcher html... |
|
Yes. It was the only way to achieve the correct accessibility. But without checking the original pr I don't remember more than that |
|
Does that mean only the switcher has the correct accessible html? If so then we can probably close this until all other fields are brought up to speed. Considering the switcher html, this PR would be quite different. |
|
switcher is a fieldset and a fieldset requires a legend |
|
@ciar4n - The switcher is like this because you can't associate a label with multiple inputs...only a single input. The only other form fields I can think of that may need checking are checkbox/radio....but only when using multiple. |
|
Ok thank you. I'm guessing we can't just move the |
|
I think it's being used incorrectly so that the Instead the |
|
give me two seconds to check that. my memory is failing me but there must have been a reason I did it that way |
|
changing the sr-only to being on the legend instead of the label seems to be ok. not sure I understand the d-none comment |
|
@brianteeman Form fields in Joomla have a label to the left of the field (220px in width or somthing). This isn't the case with the switcher. Instead it's to the right hand side. |
|
my brain isnt in gear sorry. The label to the right is the label for the value of the radio = eg yes/no why I chose to hide the label and not the the legend is something I dont remember and looking at the original pr doesnt help me |
|
corrected last comment |
|
I've moved the |
|
Looks good!! Thank you. |
|
Anyone tested rtl ? |
Yes, looks fine. |
@Quy Top margin removed. |
|
I have tested this item ✅ successfully on e476392 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27684. |
|
Works fine here but one question: @ciar4n |
|
Outside the scope of this PR but as a quick fix I have added the |
|
We have a PR for the permissions already see #27670 |
|
@ciar4n add in Before patchAfter patch |
|
@infograf768 I'll leave it for a separate PR. As mentioned there is a PR for the permissions already. This PR is for the field |
|
This proposal above does not concerns Permissions, but the Text Filters. |
|
I have tested both Permissions PR and this PR. |
|
Tks. |
|
Thank you for the tests! |
* Flex fields * add form-vertical class * switcher * full width note * reduce label padding * Update switcher.scss * increase vertical spacing between fields * remove top margin from first field * add table-responsive class to global filters Co-authored-by: infograf768 <infografjms@gmail.com>







Pull Request for Issue #27558, #27681, #27676 #27664 .
Summary of Changes
Moves field control-groups to flex.
form-verticalclassSimply put, with this PR, label/fields will become container aware, moving from vertical to horizontal aligned if the field is reduced to less than 210px. I have also enabled the
form-verticalclass. The addition of this class and the field will always display vertically. Thefields-no-marginhas been removed completely.Edit: Any field in a multi-column layout, displays in a vertical format regardless of the space available to it. This was always the case.
Testing Instructions
Apply this patch and run
node build.js --compile-cssfor updating the changed SCSS. Check fields display correctly.Documentation Changes Required