Skip to content

Commit fa88971

Browse files
committed
refactor: minor fixes
1 parent 501c0dd commit fa88971

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/app/views/base/tabs/tabs.component.html

+6-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</a>
2323
</c-nav-item>
2424
<c-nav-item>
25-
<a [cTabContent]="tabContent1" [routerLink] [tabPaneIdx]="2" cNavLink>
25+
<a [cTabContent]="tabContent1" [routerLink] [tabPaneIdx]="2" cNavLink [disabled]="tabContent1.activeTabPaneIdx < 1">
2626
<svg cIcon class="me-2" name="cilCode"></svg>
2727
Contact
2828
</a>
@@ -39,10 +39,11 @@
3939
tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the
4040
content visibility and styling. You can use it with tabs, pills, and any other .nav-powered navigation.
4141
</c-tab-pane>
42-
<!-- intentionally commented out - disables third nav-item! -->
43-
<!-- <c-tab-pane class="p-3 preview" role="tabpanel" >-->
44-
<!-- This is some placeholder content the <strong>Contact</strong> tab's associated content. Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling. You can use it with tabs, pills, and any other .nav-powered navigation.-->
45-
<!-- </c-tab-pane>-->
42+
<c-tab-pane class="p-3 preview" role="tabpanel" *ngIf="tabContent1.activeTabPaneIdx > 0">
43+
This is some placeholder content the <strong>Contact</strong> tab's associated content. Clicking another
44+
tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the
45+
content visibility and styling. You can use it with tabs, pills, and any other .nav-powered navigation.
46+
</c-tab-pane>
4647
</c-tab-content>
4748
</c-card-body>
4849
</c-card>

src/scss/styles.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ $enable-ltr: true;
66
$enable-rtl: true;
77

88
// Import styles with default layout.
9-
@import "~@coreui/coreui/scss/coreui";
9+
@import "@coreui/coreui/scss/coreui";
1010

1111
// Import Chart.js custom tooltips styles
12-
@import "~@coreui/chartjs/scss/coreui-chartjs";
12+
@import "@coreui/chartjs/scss/coreui-chartjs";
1313

1414
// perfect scrollbar theming for use with [perfectScrollbar] directive
1515
//@import '~perfect-scrollbar/css/perfect-scrollbar.css';

0 commit comments

Comments
 (0)