Problem/Motivation
Follow-up from #3029800-3: Fix disabled vertical margin collapsing for hidden title webform:
This also affects webform flexbox in nested flexbox layouts.
In webform.element.flexbox.css .form-item's margin is reset.
This is becoming a problem and we need to fix it.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | webform-element-flexbox-bottom-margin-reset-problem-3045912-4.patch | 2.84 KB | pivica |
| #4 | interdiff-3045912-3-4.txt | 1.05 KB | pivica |
Comments
Comment #2
pivica commentedHere is a patch.
Comment #3
pivica commentedFound some additional problems while trying to improve this:
- We are adding a margin-top to form-actions. This is not consistent with a general Bootstrap guideline that we should set only bottom margin to elements, and this can also create regressions and unexpected behaviours.
- Captcha element is not using form-group and form-item classes. This was probably a reason why we added margin-top to form actions in the first place.
Comment #4
pivica commentedImproved bottom margin reset.
Comment #6
pivica commentedCommitted.