Skip to content

Commit 9c26c5f

Browse files
authored
Expose z-index css var (#40)
1 parent 281f95d commit 9c26c5f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ In general, use CSS variables - the following (self-explanatory) vars are expose
138138
right: var(--toastContainerRight, 2rem);
139139
bottom: var(--toastContainerBottom, auto);
140140
left: var(--toastContainerLeft, auto);
141+
z-index: var(--toastContainerZIndex, 9999);
141142
}
142143

143144
._toastItem {

src/SvelteToast.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const getCss = (theme) => Object.keys(theme).reduce((a, c) => `${a}${c}:${theme[
2626
padding: 0;
2727
list-style-type: none;
2828
pointer-events: none;
29-
z-index: 9999;
29+
z-index: var(--toastContainerZIndex, 9999);
3030
}
3131
</style>
3232

0 commit comments

Comments
 (0)