I'm experiencing an issue that is causing <legend> to be rendered above other fields contained within the <fieldset> when the <fieldset> is contained within a vertical tab pane.

The padding defined by the following selector in the CSS for the Material skin:

body.adminimal-skin-material fieldset {
  ...
  padding-top: 42px;
  ...
}

is overridden by the following selector in the CSS for vertical tabs:

div.vertical-tabs .field-group-tab fieldset {
  ...
  padding: 12px;
  ...
}

I have resolved this by adding the following selector to material.css:

body.adminimal-skin-material .vertical-tabs-panes fieldset {
  padding-top: 42px;
}

The following screenshots show the issue and the result of the fix.

Fieldset legend overlapping field:
Fieldset legend overlapping field

Fix applied:
Padding correction

#2551295: [Material skin] fieldset and legend glitch may be related, but it's unclear if the <fieldset> was contained within a vertical tab pane in that issue report.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

matt.elkins created an issue. See original summary.

matt.elkins’s picture

matt.elkins’s picture

Status: Active » Needs review
giupenni’s picture

#2 works fine

tanc’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed patch applies against 7.x-1.24 with an offset of 1 line. The patch fixes the legend positioning issue for me.

andrey.troeglazov’s picture

Assigned: Unassigned » andrey.troeglazov
Issue tags: +Adminimal Release 7-1.25

  • matt.elkins authored 1563632 on 7.x-1.x
    Issue #2718955 by matt.elkins, giupenni, tanc, andrey.troeglazov:...
andrey.troeglazov’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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