Skip to content

Commit

Permalink
Expose z-index css var (zerodevx#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Prinzhorn authored Mar 2, 2022
1 parent 281f95d commit 9c26c5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ In general, use CSS variables - the following (self-explanatory) vars are expose
right: var(--toastContainerRight, 2rem);
bottom: var(--toastContainerBottom, auto);
left: var(--toastContainerLeft, auto);
z-index: var(--toastContainerZIndex, 9999);
}

._toastItem {
Expand Down
2 changes: 1 addition & 1 deletion src/SvelteToast.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const getCss = (theme) => Object.keys(theme).reduce((a, c) => `${a}${c}:${theme[
padding: 0;
list-style-type: none;
pointer-events: none;
z-index: 9999;
z-index: var(--toastContainerZIndex, 9999);
}
</style>

Expand Down

0 comments on commit 9c26c5f

Please sign in to comment.