After updating to Drupal 8.6.x all horizontal tab content is wrapped by a border.
This was because there was a change in the Seven theme core/themes/seven/css/components/details.css.
.seven-details {
margin-top: 1em;
margin-bottom: 1em;
background-color: #fcfcfa;
border: 1px solid #bfbfbf;
border-radius: 3px;
}
We just need to make a small change in formatters/tabs/horizontal-tabs.css
horizontal-tabs-panes .horizontal-tabs-pane {
padding: 0 1em;
border: 0;
}
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | interdiff_3-8.txt | 335 bytes | niklan |
| #9 | horizontal-tab-content-detail-border-3012461-9.patch | 434 bytes | niklan |
| #3 | horizontal-tab-content-detail-border-3012461.patch | 380 bytes | partdigital |
| border.png | 61.1 KB | partdigital |
Comments
Comment #2
partdigital commentedComment #3
partdigital commentedComment #4
tessa bakkerThanks for the patch!
Tested with Seven en horizontal tabs in Drupal 8.6
Comment #5
mahtab_alam commentedComment #6
tessa bakker@mahtab_alam Why the need for a new patch?
I removed your patch for the list now, if it's still needed, please explain why and change the status to 'Needs review'.
Comment #7
partdigital commented@Tess Bakker, it looks @mahtab_alam has been active in the Field Group issue queue and made a bunch of patches with nominal changes. I suspect to pad his profile with contributions.
Comment #8
partdigital commentedComment #9
niklan+1 for RTBC.
I think we also need to remove background-color set by
.seven-details, because this looks out of place.I also think we must unset padding for
.horizontal-tabs-panes .horizontal-tabs-pane, because we already have margins from.seven-detailsand paddings from.seven-details__wrapperwhich do the same thing.Comment #10
tessa bakkerComment #12
nils.destoop commentedThx for the patch, I committed it to dev