Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
fix(Overlay): fixed index
Browse files Browse the repository at this point in the history
  • Loading branch information
TheComputerM committed Sep 23, 2020
1 parent 557e279 commit e352b7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
right: 0;
bottom: 0;
pointer-events: auto;
z-index: var(--s-overlay-index);

&.absolute {
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { fade } from 'svelte/transition';
import Style from '../../internal/Style';
import BackgroundColor from '../../internal/BackgroundColor';
let klass = '';
export let active = true;
Expand All @@ -22,11 +22,8 @@
class="s-overlay {klass}"
class:absolute
on:click
use:Style={{ 'overlay-index': index }}
{style}>
<div
class="s-overlay__scrim"
style="opacity:{opacity};background-color:{color};border-color:{color}" />
style="z-index:{index};{style}">
<div class="s-overlay__scrim" use:BackgroundColor={color} style="opacity:{opacity}" />
<div class="s-overlay__content">
<slot />
</div>
Expand Down

0 comments on commit e352b7a

Please sign in to comment.