Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When nesting horizontal tabs inside vertical tabs and then viewing it with core's Seven admin theme the label of the horizontal tab is being displayed despite the field_group CSS in place to hide it.
This causes broken looking output.
Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1945848-field-group-nested-fieldset-unwanted-labels.patch | 602 bytes | Dave Reid |
#1 | field_group-1945848-01.patch | 819 bytes | jamsilver |
Comments
Comment #1
jamsilver CreditAttribution: jamsilver commentedIt's simply because Seven happens to have a CSS selector display:block-ing it which has a higher specificity.
It's simple enough to fix this in field_group by using a selector with two classes in it instead of one =)
I have attached a patch which does the trick. This patch was made against the 7.x-1.x branch head.
Before the fix:
After the fix:
Comment #2
Dave ReidI'm actually having this same problem with horizontal tabs inside horizontal tabs. Here is what fixed it for me.
Comment #3
Dave ReidMarked #1858096: Horizontal tabs within Vertical tabs as a duplicate of this issue.
Comment #4
thmnhat CreditAttribution: thmnhat commentedFixed for me
Comment #5
nils.destoop CreditAttribution: nils.destoop commentedCommitted to dev
Comment #6
nils.destoop CreditAttribution: nils.destoop commentedSetting back to reviewed and tested by the community, as pushing to git is currently disabled for drupal projects.
Comment #7
nils.destoop CreditAttribution: nils.destoop commentedpushed to dev