Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 1d8fc16

Browse files
Robert MesserleThomasBurleson
authored andcommitted
fix(tabs): fixes background flicker in iOS Safari
closes #6290 Closes #7076
1 parent f9f893a commit 1d8fc16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/tabs/tabs.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ md-tabs {
7575
md-tabs-wrapper {
7676
display: block;
7777
position: relative;
78+
// transform is needed for iOS Safari to prevent content from disappearing on scroll
79+
transform: translate3d(0, 0, 0);
7880
md-prev-button, md-next-button {
7981
height: 100%;
8082
width: $tabs-paginator-width;
@@ -187,6 +189,8 @@ md-tab-content {
187189
bottom: 0;
188190
transition: transform $swift-ease-in-out-duration $swift-ease-in-out-timing-function;
189191
overflow: auto;
192+
// transform is needed for iOS Safari to prevent content from disappearing on scroll
193+
transform: translate3d(0, 0, 0);
190194
&.md-no-scroll {
191195
bottom: auto;
192196
overflow: hidden;

0 commit comments

Comments
 (0)