Skip to content

Commit

Permalink
fix: zIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakeii committed May 3, 2024
1 parent 3e34f26 commit 5dbda09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/Popdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
class="content {contentClass}"
bind:this={$content}
style:transform={$contentTransformStyle}
style:z-index={zIndex}
style:--z-index={zIndex}
use:portal={target}
>
<slot name="content" />
Expand All @@ -70,5 +70,6 @@
position: absolute;
top: 0;
left: 0;
z-index: var(--z-index, 100);
}
</style>

0 comments on commit 5dbda09

Please sign in to comment.