Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion packages/0/src/components/Portal/Portal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@
}

export interface PortalSlotProps {
/** Calculated z-index from useStack */
/**
* Calculated z-index from useStack.
*
* @remarks
* Must be applied to a **positioned** element (`position: relative`, `absolute`,
* `fixed`, or `sticky`) to create a stacking context. Applying it to a
* `position: static` element has no effect.
*/
zIndex: number
/** Close this portal (unselects from stack) */
close: () => void
Expand Down
4 changes: 2 additions & 2 deletions packages/0/src/components/Snackbar/SnackbarPortal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
zIndex: number
/** Attributes to bind to the portal element */
attrs: {
style: { zIndex: number }
style: { position: 'relative', zIndex: number }
}
}
</script>
Expand All @@ -57,7 +57,7 @@
return {
zIndex,
attrs: {
style: { zIndex },
style: { position: 'relative' as const, zIndex },
},
}
}
Expand Down
Loading