Closed brianteeman closed 5 years ago
The whole switcher thing has a more "generic" problem.
Joomla! gives all labels 220px margin-left. Therefore we have to set margin-left: -220px
for the switcher, in some cases and 0
in some other cases (depending if label + field are in one line or not). So at the moment we have to visit every switcher and decide, what we have to set.
A better solution would be:
Default should be vertical I guess.
I think the solution is "easier" than expected.
We have to remove all this "customizing" from the template itself and let the switcher do its -220px magic. But if we want to remove it (= labels are over the input) we just have to set .form-no-margin
to one of the parent elements.
I did say before that the switcher css should not be "customised" in the template :)
Before adding further to this CSS, it should be changed to flex. The current control-group
CSS is very dated (IE10?). Flex resolves a lot of these issues out of the box.... its a perfect use case for flex... less CSS... not a hack (currently floating a label to remove from page flow and then adding a left margin to inline field... its weird).
I think, the switcher has a few issues especially regarding this .col-md-9 .switcher__legend, .col-md-12 .switcher__legend
code. But I removed most of the CSS code from the template, regarding the switcher.
I agree with @ciar4n about becoming flex, but I think this should be done in the core repo, because it's much more than the edit screens.
Closed as resolved for now
Steps to reproduce the issue
example page administrator/index.php?option=com_fields&view=field&layout=edit&context=com_users.user
Expected result
Actual result
Additional comments
This is caused by
The code can be found in
administrator\templates\atum\scss\blocks\_edit.scss _edit.css
I didn't fix this myself as I am unsure if you did this to address something specific and I just found an unintentional consequence or if its simply a bug