From 19c11fddec71a497e8a615f5a42f672176afe54b Mon Sep 17 00:00:00 2001 From: Robert Messerle Date: Thu, 17 Dec 2015 14:58:16 -0800 Subject: [PATCH] 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 --- src/components/tabs/tabs.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tabs/tabs.scss b/src/components/tabs/tabs.scss index 69373fddedf..92ad178d374 100644 --- a/src/components/tabs/tabs.scss +++ b/src/components/tabs/tabs.scss @@ -194,7 +194,7 @@ md-tab-content { &.ng-leave, &.md-no-transition { transition: none; } - &.md-left { + &.md-left:not(.md-active) { transform: translateX(-100%); animation: 2 * $swift-ease-in-out-duration md-tab-content-hide; opacity: 0; @@ -204,7 +204,7 @@ md-tab-content { visibility: hidden; } } - &.md-right { + &.md-right:not(.md-active) { transform: translateX(100%); animation: 2 * $swift-ease-in-out-duration md-tab-content-hide; opacity: 0;