Skip to content

Commit f35a314

Browse files
devversionjosephperrott
authored andcommitted
fix(tabs): ripple overflow in internet explorer (#12036)
1 parent 777b3e7 commit f35a314

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/tabs/tab-header.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,11 @@ export class MatTabHeader extends _MatTabHeaderMixinBase
296296
const scrollDistance = this.scrollDistance;
297297
const translateX = this._getLayoutDirection() === 'ltr' ? -scrollDistance : scrollDistance;
298298

299-
this._tabList.nativeElement.style.transform = `translate3d(${translateX}px, 0, 0)`;
299+
// Don't use `translate3d` here because we don't want to create a new layer. A new layer
300+
// seems to cause flickering and overflow in Internet Explorer. For example, the ink bar
301+
// and ripples will exceed the boundaries of the visible tab bar.
302+
// See: https://github.com/angular/material2/issues/10276
303+
this._tabList.nativeElement.style.transform = `translateX(${translateX}px)`;
300304
}
301305

302306
/** Sets the distance in pixels that the tab header should be transformed in the X-axis. */

0 commit comments

Comments
 (0)