I couldn't find any classes/IDs to use to make the list styles breaking the vertical tabs in #1 more specific. I tried to change the styles in #1 to only target 'Frontend Bartik' but not kick in on 'Admin theme' Bartik and there is nothing available.

I agree that adding an overriding selector and styles to fix this is easiest option here, seeing as Bartik itself is causing the issue.

The patch still applies cleanly, the code standards are fine and it fixes the issue. So I'm setting this to RTBC.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KeyboardCowboy’s picture

The specific issue is that there are 2 CSS declarations in core/themes/bartik.css/style.css that are overriding core/misc/vertical-tabs.css

.region-content ul, .region-content ol {
    margin: 1em 0;
    padding: 0 0 0.25em 15px;
}
.block ol, .block ul {
    margin: 0;
    padding: 0 0 0.25em 1em;
}

are both overriding

.vertical-tabs-list {
    border-top: 1px solid #CCCCCC;
    float: left;
    list-style: none outside none;
    margin: -1px 0 -1px -15em;
    padding: 0;
    width: 15em;
}

Attached is a patch to redefine ul.vertical-tabs-list with the proper margin and padding, though I believe the best fix is to not override it in the first place. Since these are such wide sweeping declarations I'm hesitant to start altering them without some additional input.

Anonymous’s picture

Still present in alpha 7.

InternetDevels’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
29.74 KB
431 bytes

Hi, previous patch can't be applied. Attached another patch ;)

emma.maria’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

As CSS in Bartik is causing this issue because of the top open selectors stated in #1 the reset added in #3 seems to be the easiest solution that fixes the issue with only

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed d98e9cb and pushed to 8.x. Thanks!

  • Commit d98e9cb on 8.x by alexpott:
    Issue #2003766 by InternetDevels, KeyboardCowboy: Fixed Vertical tabs...

Status: Fixed » Closed (fixed)

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