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

Commit 19c11fd

Browse files
author
Robert Messerle
committed
fix(tabs): workaround for ngAnimate issue with ngClass
active tab was being hidden due to an ngAnimate issue, this prevents that bug from occurring but does not fix the underlying cause
1 parent de5237f commit 19c11fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/tabs/tabs.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ md-tab-content {
194194
&.ng-leave, &.md-no-transition {
195195
transition: none;
196196
}
197-
&.md-left {
197+
&.md-left:not(.md-active) {
198198
transform: translateX(-100%);
199199
animation: 2 * $swift-ease-in-out-duration md-tab-content-hide;
200200
opacity: 0;
@@ -204,7 +204,7 @@ md-tab-content {
204204
visibility: hidden;
205205
}
206206
}
207-
&.md-right {
207+
&.md-right:not(.md-active) {
208208
transform: translateX(100%);
209209
animation: 2 * $swift-ease-in-out-duration md-tab-content-hide;
210210
opacity: 0;

0 commit comments

Comments
 (0)