Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Vertical tabs border #1140

Merged
merged 11 commits into from
Oct 3, 2017
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ describe('Vertical tabSet', () => {
return SkyVisualTest.setupTest('vertical-tabs', 480)
.then(() => {

const showTabsButton = element(by.css('.sky-vertical-tabset-show-tabs-btn'));
const showTabsButton =
element(by.css('#screenshot-vertical-tabset .sky-vertical-tabset-show-tabs-btn'));
browser.wait(function() { return browser.isElementPresent(showTabsButton); }, 8000);

// show tabs
Expand All @@ -66,7 +67,8 @@ describe('Vertical tabSet', () => {
return SkyVisualTest.setupTest('vertical-tabs', 480)
.then(() => {

const showTabsButton = element(by.css('.sky-vertical-tabset-show-tabs-btn'));
const showTabsButton =
element(by.css('#screenshot-vertical-tabset .sky-vertical-tabset-show-tabs-btn'));
browser.wait(function() { return browser.isElementPresent(showTabsButton); }, 8000);

// show tabs
Expand Down
40 changes: 21 additions & 19 deletions src/app/components/vertical-tabs/vertical-tabs-demo.component.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
<sky-vertical-tabset
showTabsText="Tab list"
(activeChange)="tabChanged($event)"
>
<sky-vertical-tabset-group
*ngFor="let group of groups"
[groupHeading]="group.heading"
[open]="group.isOpen"
[disabled]="group.isDisabled"
<div style="height: 40vh">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide more information around this inline style?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying to show it would take up the full height of the parent div.

<sky-vertical-tabset
showTabsText="Tab list"
(activeChange)="tabChanged($event)"
>
<sky-vertical-tab
*ngFor="let tab of group.subTabs"
[active]="tab.active"
[tabHeading]="tab.tabHeading"
[tabHeaderCount]="tab.tabHeaderCount"
[disabled]="tab.disabled"
<sky-vertical-tabset-group
*ngFor="let group of groups"
[groupHeading]="group.heading"
[open]="group.isOpen"
[disabled]="group.isDisabled"
>
{{ tab.content }}
</sky-vertical-tab>
</sky-vertical-tabset-group>
</sky-vertical-tabset>
<sky-vertical-tab
*ngFor="let tab of group.subTabs"
[active]="tab.active"
[tabHeading]="tab.tabHeading"
[tabHeaderCount]="tab.tabHeaderCount"
[disabled]="tab.disabled"
>
{{ tab.content }}
</sky-vertical-tab>
</sky-vertical-tabset-group>
</sky-vertical-tabset>
</div>

<h3>Without groups</h3>
<sky-vertical-tabset (activeChange)="tabChanged($event)">
Expand Down
3 changes: 2 additions & 1 deletion src/modules/vertical-tabset/vertical-tabset.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@media (min-width: $sky-screen-sm-min) {
.sky-vertical-tabset {
display: flex;
max-height: 98vh;
height: 100%;
}
}

Expand All @@ -20,4 +20,5 @@
.sky-vertical-tabset-group-container {
flex-basis: 25%;
overflow-y: auto;
@include sky-border(dark, right);
}