Skip to content

Commit 943395e

Browse files
crisbetoandrewseguin
authored andcommitted
perf(tabs): avoid repainting while scrolling (#7889)
Along the same lines as #7721, #7719 and #6890 the tab body currently repaints on scroll.
1 parent 9a05ecd commit 943395e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/tabs/tab-body.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
@import '../core/style/vendor-prefixes';
2+
13
.mat-tab-body-content {
4+
// Avoids repainting while scrolling.
5+
@include backface-visibility(hidden);
26
height: 100%;
37
overflow: auto;
48

0 commit comments

Comments
 (0)