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.

Comments

pivica created an issue. See original summary.

pivica’s picture

Here is a patch.

pivica’s picture

Status: Active » Needs review
StatusFileSize
new2.66 KB
new841 bytes

Found 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.

pivica’s picture

Improved bottom margin reset.

  • pivica committed 9007ab6 on 8.x-1.x
    Issue #3045912 by pivica: Webform element flexbox css resetting bottom...
pivica’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.