Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pivica created an issue. See original summary.

pivica’s picture

Here is a patch.

sasanikolic’s picture

+++ b/themes/bs_bootstrap/sass/components/partials/_forms.scss
@@ -27,6 +27,18 @@ label {
+        &.form-group .form-group:last-child {

This caused some mobile margin issues between elements inside a flexbox. We should probably use a sibling selector for the form groups there.

sasanikolic’s picture

Here is a patch with the proposed improvement.

pivica’s picture

Status: Needs review » Needs work

Looks good, can we please add some commentary explaining exactly why we added sibling selector there? I think the issue is not exactly for mobile here but the issue is that that selector is expecting sibling .form-group elements and webform flex is wrapping .form-group in flexbox wrappers which are messing this selector goal to only reset last .form-group margin-bottom. And then because this margin reset is applied for all form-group elements then you get the issue for mobile also.

sasanikolic’s picture

This patch adds the comment as suggested.

  • pivica committed 7b3ad56 on 8.x-1.x
    Issue #3130069 by sasanikolic, pivica: Improve form vertical grid layout
    
pivica’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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