Skip to content

Commit

Permalink
[ACS-6140] - search-tab-content does not show when changing tab multi…
Browse files Browse the repository at this point in the history
…ple times (#9332)
  • Loading branch information
dominikiwanekhyland authored Feb 13, 2024
1 parent 8df2113 commit 378b125
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<mat-tab-group (selectedIndexChange)="onTabIndexChanged($event)">
<mat-tab *ngFor="let tabContent of tabsContents; let i = index"
[labelClass]='selectedIndex === i ? "adf-search-tab-label-active" : ""'
[bodyClass]='selectedIndex === i ? "adf-search-tab-content-active" : ""'
label="{{tabContent.name | translate}}">
<ng-container *ngTemplateOutlet="tabContent.templateRef"></ng-container>
</mat-tab>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@ adf-search-filter-tabbed {
.adf-search-tab-label-active {
border-bottom: 2px solid var(--theme-primary-color);
}

// The important tag is used here as a workaround for a bug in angular material, when MatTabs are used in conjunction with MatMenu
// https://github.com/angular/components/issues/27426
.adf-search-tab-content-active {
& > div {
visibility: visible !important;
display: block !important;
}
}
}

0 comments on commit 378b125

Please sign in to comment.