Primary tab links loose paddding when in active trail

Manuel Garcia - September 5, 2009 - 10:46
Project:Drupal
Version:7.x-dev
Component:Seven theme
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs work
Description

Situation:

You are in a secondary tab menu item, like for example /admin/structure/node-type/article/display/search , and the active primary tab, which in this case would be "Display fields", looses the padding on the a element. This is due to the a loosing the class "active".

See attached screenshot to see the problem.

Proposed fix:

Just with css, we could use the li.active a so that the a stil gets the padding even if the a itself isn't getting the active class.

I attach a patch that gets this change in, not very experienced creating patches using diff, so I hope it came out ok =)

AttachmentSizeStatusTest resultOperations
style.patch424 bytesIdleFailed: Failed to install HEAD.View details | Re-test
seven.png7.26 KBIgnoredNoneNone

#1

System Message - September 5, 2009 - 10:55
Status:needs review» needs work

The last submitted patch failed testing.

#2

Manuel Garcia - September 5, 2009 - 11:03
Status:needs work» needs review

Hummm patch is applying fine from my drupal root install... :X

#3

arianek - October 17, 2009 - 22:41
Status:needs review» duplicate

It looks like this has been fixed already - see screenshot. Marking as duplicate.

AttachmentSizeStatusTest resultOperations
tabpadding.jpg21.29 KBIgnoredNoneNone

#4

Manuel Garcia - October 19, 2009 - 12:08

I'm not sure it's the same issue, but i grabbed head this morning, and while browsing around testing out the fields for users, I came upon this again, see the attached screenshot.

It seems that reset.css line 10 is affecting the padding of these active tabs, see on screenshot 2 that i disable that padding reset and the tab displays correctly.

I have applied the patch and the problem goes away, though not sure what changes have been made since i wrote this small patch.

AttachmentSizeStatusTest resultOperations
activetab-padding.png131.23 KBIgnoredNoneNone
activetab-padding-2.png131.39 KBIgnoredNoneNone

#5

Manuel Garcia - November 8, 2009 - 19:16
Status:duplicate» needs review

The above no longer is happening, however I see the issue now if you are in one of the menu items from the secondary tabs, but not the first one.

So it happens in /admin/appearance/settings/garland, but not in /admin/appearance/settings/

See attached screenshot, in ff 3.0.15 on ubuntu.

I don't know why this is happening only in the second/third/etc links in the secondary tabs, and not in the first one. The markup is the same afik. Either way, the patch solves the problem.

AttachmentSizeStatusTest resultOperations
drupal-569102.patch518 bytesIdleFailed: 14682 passes, 9 fails, 336 exceptionsView details | Re-test
loose-padding.png7.79 KBIgnoredNoneNone

#6

System Message - November 8, 2009 - 20:00
Status:needs review» needs work

The last submitted patch failed testing.

 
 

Drupal is a registered trademark of Dries Buytaert.