Skip to content

Commit 48fad96

Browse files
committed
fix(ngx-material-pages): ng-deep will not affect external tabs
1 parent 2cd576e commit 48fad96

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/module/components/ngx-material-pages/ngx-material-pages.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</mat-toolbar>
2222
<div class="demo-sidenav-content main-container">
2323

24-
<mat-tab-group [selectedIndex]="index" style="min-height: 15vh;">
24+
<mat-tab-group [selectedIndex]="index" style="min-height: 15vh;" class="hide-deep">
2525
<button mat-fab color="warn" (click)="previous()">
2626
<mat-icon>location</mat-icon>
2727
</button>

src/module/components/ngx-material-pages/ngx-material-pages.component.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
::ng-deep .mat-tab-label-container {
2-
display: none !important;
1+
.hide-deep {
2+
::ng-deep .mat-tab-label-container {
3+
display: none !important;
4+
}
35
}
46

57
.navigation-buttons {

0 commit comments

Comments
 (0)