Skip to content

Commit

Permalink
fix(Modal): remove z-index transition (#4777)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhassel authored and asudoh committed Nov 27, 2019
1 parent 28a39b9 commit 9422c7a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/components/src/components/modal/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
right: 0;
bottom: 0;
left: 0;
z-index: z('hidden');
z-index: z('modal');
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -38,19 +38,16 @@
visibility: hidden;
transition: background-color $duration--slow-02 motion(exit, expressive),
opacity $duration--moderate-02 motion(exit, expressive),
z-index $duration--slow-02 motion(exit, expressive),
visibility $duration--moderate-02 motion(exit, expressive);
visibility 0ms linear $duration--moderate-02;

&.is-visible {
z-index: z('modal');
visibility: visible;
opacity: 1;
background-color: $overlay-01;
transition: background-color $duration--slow-02
motion(entrance, expressive),
opacity $duration--moderate-02 motion(entrance, expressive),
z-index $duration--slow-02 motion(entrance, expressive),
visibility $duration--moderate-02 motion(entrance, expressive);
visibility 0ms linear;
}

.#{$prefix}--text-input,
Expand Down

0 comments on commit 9422c7a

Please sign in to comment.