diff --git a/goldens/material/tabs/index.api.md b/goldens/material/tabs/index.api.md index 0300c84ba53f..a8c203df0a99 100644 --- a/goldens/material/tabs/index.api.md +++ b/goldens/material/tabs/index.api.md @@ -247,7 +247,7 @@ export class MatTabGroup implements AfterViewInit, AfterContentInit, AfterConten get animationDuration(): string; set animationDuration(value: string | number); // (undocumented) - _animationMode: "NoopAnimations" | "BrowserAnimations" | null; + protected _animationsDisabled(): boolean; ariaLabel: string; ariaLabelledby: string; // @deprecated diff --git a/src/material/tabs/tab-group.html b/src/material/tabs/tab-group.html index 2d0f433eebb5..2db906b31bfb 100644 --- a/src/material/tabs/tab-group.html +++ b/src/material/tabs/tab-group.html @@ -65,7 +65,7 @@
@for (tab of _tabs; track tab;) { body._setActiveClass(i === this._selectedIndex)); } } + + protected _animationsDisabled(): boolean { + return ( + this._diAnimationsDisabled || + this.animationDuration === '0' || + this.animationDuration === '0ms' + ); + } } /** A simple change event emitted on focus or selection changes. */