Skip to content

Commit ad657bb

Browse files
crisbetoandrewseguin
authored andcommitted
refactor(tabs): expose _activeLinkChanged and _activeLinkElement as protected properties (#10940)
In #9701 we made the `_activeLinkChanged` and `_activeLinkElement` properties private which makes them inaccessible when extending. These changes switch them to be protected. Fixes #10939.
1 parent be22e81 commit ad657bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/tabs/tab-nav-bar/tab-nav-bar.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export class MatTabNav extends _MatTabNavMixinBase implements AfterContentInit,
124124
*/
125125
updateActiveLink(element: ElementRef) {
126126
// Note: keeping the `element` for backwards-compat, but isn't being used for anything.
127+
// @deletion-target 7.0.0
127128
this._activeLinkChanged = !!element;
128129
this._changeDetectorRef.markForCheck();
129130
}
@@ -200,10 +201,10 @@ export class MatTabLink extends _MatTabLinkMixinBase
200201
implements OnDestroy, CanDisable, CanDisableRipple, HasTabIndex, RippleTarget {
201202

202203
/** Whether the tab link is active or not. */
203-
private _isActive: boolean = false;
204+
protected _isActive: boolean = false;
204205

205206
/** Reference to the RippleRenderer for the tab-link. */
206-
private _tabLinkRipple: RippleRenderer;
207+
protected _tabLinkRipple: RippleRenderer;
207208

208209
/** Whether the link is active. */
209210
@Input()

0 commit comments

Comments
 (0)