e.g. admin/structure/types/add

The whole vertical tabs area changes size every time the active tab is changed. This is really irritating for various reasons.

  • Scroll to the bottom of the page. Clicking on a tab that has a fields area that has a smaller height than the current tab causes the window to scroll. The user must then take a few seconds to work out what the hell happened. The tabs are no longer in the same place, making it harder to flick through them.
  • Changing from a big one to a small one and then back to a big one means the lower part is no longer in the visible area of the page.

I think height of a vertical tab area should be as big as it needs to be for the largest tab and not change at all when the active tab is changed.

Also, I think the vertical line should be the full height of the box (excluding the padding, as per the top). It looks slightly weird when you first see it sitting there out by itself.

Comments

wapnik’s picture

Status: Active » Needs review
StatusFileSize
new1.33 KB

Same in the other themes as well. In my opinion, get it to work the way having the tab menu height the same as the biggest tab pane, even if the biggest one is display:none, would require some javascript, and i'm not shure if this is what we want.

At least, i've provided the vertical line.

jbrown’s picture

Status: Needs review » Needs work

Thanks.

Setting back to needs work as it doesn't solve the problem.

manuel garcia’s picture

Status: Needs work » Needs review
StatusFileSize
new1.33 KB

The only way about doing this is through JS.

I've created a patch that makes the fieldsets all the same height, as well as the ul for the tabs, so we can style it properly in seven. see #896828: Vertical tabs - no visual connection between the active tab and its content

Jeff Burnz’s picture

Status: Needs review » Needs work
StatusFileSize
new69.42 KB

In overlay I'm getting height: 0px;

This is really the way forward though, would make styling this so much easier.

manuel garcia’s picture

That's weird... only happen when adding content it seems, or at least in admin/structure/types/manage/article it doesn't happen (where i was testing it). Working on it...

manuel garcia’s picture

OK well, my patch is definitely not good enough.

Vertical tabs js is complex, and I have a hard time figuring out when happens what, not to mention that fieldsets are being rendered prior to vertical tabs, and that's why we are getting 0 heights apparently...

We definitely need help from one of the JS gurus in the community.

manuel garcia’s picture

Also, I didn't mention this but my patch also doesn't account for the case when the tabs on the left total height is higher than any of the content they show, and thus the content should get that height assigned.

Jeff Burnz’s picture

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

This could get backported in a point release, however I do not think we have the time to fix this in D7, really important fix IMO, but a bit too late for D7. While I agree its a bug (a UX bug) its not critical etc or breaking anything atm.

fietserwin’s picture

lewisnyman’s picture

Issue tags: +JavaScript, +Usability

This needs input from the UX team and the Javascript team

Bojhan’s picture

Issue summary: View changes
Status: Needs work » Closed (works as designed)

Discussed this with Lewis.

This is sadly how its supposed to work. I've rarely heard any complaints about it and the solution almost always requires a very long pane. Which is extremely inconvenient especially when you have long field sets.

anybody’s picture

Version: 8.0.x-dev » 11.x-dev
Issue tags: -JavaScript +JavaScript, +UX

We just ran into this in a ux review on entity forms and this is really irritating for users. So I'd vote to reopen this please and agree the UX team should take a look at the vertical tabs implementation and best practices.

The page even jumps to top when clicking a vertical tab, so you entirely lose focus.

Update: The same happens with vertical tabs, as the page height is different... and if it's short, the page jumps up!