When switching between different vertical tabs, the margin between the upper end of the content area and the actual content is different depending on whether there is an input element with or without a label inside. This looks and feels odd and buggy.

Screenshot and patch that fixes this attached.

Comments

reglogge’s picture

StatusFileSize
new559 bytes

This is probably more general and also limits the padding: 0 to only the first div within the pane in case some contrib module adds more divs to a pane.

Jeff Burnz’s picture

This looks great, :first-child is fine by me, leaves a small visual inconsistency in IE6 which is no big deal.

I'm thinking it looks better with some padding top - to give a bit of breathing room between the top border and first form item - maybe 10 or 15 pixels? We have a big gutter to the left so I think it looks a little cramped with no top padding.

reglogge’s picture

StatusFileSize
new568 bytes

Here's the patch again with 10px padding-top. I had to add a more specific declaration of first-child, since otherwise the radios in the comment settings (which are in their own div) would have inherited the padding and started jumping again.

On my IE6 I still see some jumping, and a very big margin on top of the fieldset "Revision information" on node/add - but this is not introduced by this patch. I won't file any IE6 issues though, as long as the functionality is preserved, I don't care about how it looks there.

bleen’s picture

why not

padding-top: 0;

?

reglogge’s picture

@bleen: I don't understand your question. Do you mean to suggest that padding-top: 0 would be better than 10px?

Jeff Burnz’s picture

StatusFileSize
new113.74 KB
new580 bytes

What if we zero out the padding and add 5px top padding to the fieldset?

@bleen - we need a bit of room at the top otherwise the first form item runs to close to the top border.

seven-vertical-tabs-padding.png

bleen’s picture

sorry .... I meant padding-top: 10px; instead of padding: 10px 0 0;

Jeff Burnz’s picture

Status: Needs review » Needs work

Hang on, no let NOT do what I proposed in #6, pretty sure that will create a regression for IE7 and create weird mysterious padding/margin when the last tab is selected...

Go back to #3, can we change the padding-top to 5px, account for bleens comment in #7 and we're done.

reglogge’s picture

Status: Needs work » Needs review
StatusFileSize
new567 bytes

Re 8: Done and done. This patch is based on #3 with the padding-top set to 5px

Jeff Burnz’s picture

Status: Needs review » Reviewed & tested by the community

RTBC, this is ready - been looking at this all the way through and for sure this brings a nice consistency.

bleen’s picture

RTBC++

sun’s picture

Status: Reviewed & tested by the community » Needs review
+++ themes/seven/vertical-tabs.css	27 Sep 2010 12:47:44 -0000
@@ -69,3 +69,6 @@ div.vertical-tabs .vertical-tabs-panes {
+.vertical-tabs-pane .fieldset-wrapper > div:first-child {

You realize that this does not work for IE6?

Note that I'm the last one who wants to support IE6, but the community thinks differently.

Powered by Dreditor.

bleen’s picture

Status: Needs review » Reviewed & tested by the community

the IE6 issue was discussed in #2 & #3 and it was deemed acceptable that there will be a slight visual inconsistency on the dying (for the love of everything holy, die all ready) browser

Jeff Burnz’s picture

We've taken the approach to not break things for IE6, but small visual inconsistencies like this are OK. This would also be the most minor thing to quibble over regarding support for IE in Bartik - for one it lacks rounded corners, transparencies, gradients etc - all the nice design attributes that make "the design"... something I am not exactly thrilled about to be frank.

sun’s picture

Version: 7.x-dev » 8.x-dev

Although badly needed, this is D8 material according to the rules (I had to learn today).

Jeff Burnz’s picture

Version: 8.x-dev » 7.x-dev

D7 please, even if we don't get this in for RC or even release it could go in a point release.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

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