Skip to content

Commit 6e865b7

Browse files
authored
fix(tabs): fix accidentally setting top instead of width after removing Renderer use (#8602)
1 parent 4dd8a31 commit 6e865b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/tabs/ink-bar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ export class MatInkBar {
5959
const inkBar: HTMLElement = this._elementRef.nativeElement;
6060

6161
inkBar.style.left = element ? (element.offsetLeft || 0) + 'px' : '0';
62-
inkBar.style.top = element ? (element.offsetWidth || 0) + 'px' : '0';
62+
inkBar.style.width = element ? (element.offsetWidth || 0) + 'px' : '0';
6363
}
6464
}

0 commit comments

Comments
 (0)