Skip to content

Commit 47c4b62

Browse files
authored
fix: add active attribute along with mat-tab-link (#894)
1 parent 47f4f31 commit 47c4b62

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

projects/components/src/tabs/navigable/navigable-tab-group.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ import { NavigableTabComponent } from './navigable-tab.component';
1515
<ng-container *ngFor="let tab of this.tabs">
1616
<ng-container *ngIf="!tab.hidden">
1717
<div class="tab-button" *htIfFeature="tab.featureFlags | htFeature as featureState">
18-
<ht-link mat-tab-link [paramsOrUrl]="buildNavParamsForTab | htMemoize: tab" class="tab-link">
18+
<ht-link
19+
mat-tab-link
20+
[active]="activeTab === tab"
21+
[paramsOrUrl]="buildNavParamsForTab | htMemoize: tab"
22+
class="tab-link"
23+
>
1924
<ng-container *ngTemplateOutlet="tab.content"></ng-container>
2025
<span *ngIf="featureState === '${FeatureState.Preview}'" class="soon-container">
2126
<span class="soon">SOON</span>

0 commit comments

Comments
 (0)