From 257f5cd38bcb349b54080b96a92a1c0010a3ea01 Mon Sep 17 00:00:00 2001 From: Bruno Alves de Faria Date: Wed, 22 Jun 2016 10:03:43 -0300 Subject: [PATCH] LT-251: Fixing quick switch z-index when overlay is animating --- .../studySeriesQuickSwitch/studySeriesQuickSwitch.styl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Packages/lesiontracker/client/components/studySeriesQuickSwitch/studySeriesQuickSwitch.styl b/Packages/lesiontracker/client/components/studySeriesQuickSwitch/studySeriesQuickSwitch.styl index 5fed7d44c..f135f38f1 100644 --- a/Packages/lesiontracker/client/components/studySeriesQuickSwitch/studySeriesQuickSwitch.styl +++ b/Packages/lesiontracker/client/components/studySeriesQuickSwitch/studySeriesQuickSwitch.styl @@ -19,7 +19,8 @@ $seriesSpacing = 2px left: 50% &.overlay .quickSwitch - z-index: 1 + transition(z-index 0s linear 0s) + z-index: 3 &:before background-color: $primaryBackgroundColor @@ -32,7 +33,7 @@ $seriesSpacing = 2px top: 0 transition(opacity 0.3s ease\, visibility 0s linear 0.3s) visibility: hidden - z-index: 1 + z-index: 2 &.overlay:before opacity: 0.8 @@ -41,6 +42,8 @@ $seriesSpacing = 2px .quickSwitch position: relative + transition(z-index 0s linear 0.3s) + z-index: 1 .switchSection display: inline-block