Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix z-index overlay

adilson524aac5ac991
diff --git a/frontend/src/components/v3/generic/AlertDialog/AlertDialog.tsx b/frontend/src/components/v3/generic/AlertDialog/AlertDialog.tsx
index ac0b0403b4..ef15619c1e 100644
--- a/frontend/src/components/v3/generic/AlertDialog/AlertDialog.tsx
+++ b/frontend/src/components/v3/generic/AlertDialog/AlertDialog.tsx
@@ -39,15 +39,13 @@ function AlertDialogOverlay({
function AlertDialogContent({
className,
size = "default",
- overlayClassName,
...props
}: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
size?: "default" | "sm";
- overlayClassName?: string;
}) {
return (
<AlertDialogPortal>
- <AlertDialogOverlay className={overlayClassName} />
+ <AlertDialogOverlay />
<AlertDialogPrimitive.Content
data-slot="alert-dialog-content"
data-size={size}
diff --git a/frontend/src/components/v3/generic/Sheet/Sheet.tsx b/frontend/src/components/v3/generic/Sheet/Sheet.tsx
index c871e8e7d5..2fd21e61cd 100644
--- a/frontend/src/components/v3/generic/Sheet/Sheet.tsx
+++ b/frontend/src/components/v3/generic/Sheet/Sheet.tsx
@@ -45,15 +45,13 @@ function SheetContent({
children,
side = "right",
onPointerDownOutside,
- overlayClassName,
...props
}: React.ComponentProps<typeof SheetPrimitive.Content> & {
side?: "top" | "right" | "bottom" | "left";
- overlayClassName?: string;
}) {
return (
<SheetPortal>
- <SheetOverlay className={overlayClassName} />
+ <SheetOverlay />
<SheetPrimitive.Content
data-slot="sheet-content"
onPointerDownOutside={(e) => {
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsx
index d02b648e53..b7fbee63cf 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsx
@@ -81,12 +81,7 @@ export const AddAppConnectionModal = ({
return (
<>
<Sheet open={isOpen} onOpenChange={handleSheetOpenChange}>
- <SheetContent
- // z-[70] keeps this sheet above legacy v2 modals (z-[60]) that open it,
- // e.g. the secret rotation Create/Edit modal.
- className="z-[70] flex h-full max-h-full flex-col gap-y-0 sm:max-w-2xl"
- overlayClassName="z-[70]"
- >
+ <SheetContent className="flex h-full max-h-full flex-col gap-y-0 sm:max-w-2xl">
<SheetHeader className="border-b">
{selectedApp ? (
<>
@@ -132,7 +127,7 @@ export const AddAppConnectionModal = ({
</Sheet>
<AlertDialog open={confirmDiscardOpen} onOpenChange={setConfirmDiscardOpen}>
- <AlertDialogContent className="z-[80]" overlayClassName="z-[80]">
+ <AlertDialogContent>
<AlertDialogHeader>
<AlertDialogMedia>
<AlertTriangleIcon />
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx
index 1ed66074d3..934da72374 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx
@@ -347,8 +347,7 @@ export const GitHubAppSelector = ({
e.preventDefault();
containerRef.current?.focus({ preventScroll: true });
}}
- className="z-[80] max-w-xl"
- overlayClassName="z-[80]"
+ className="max-w-xl"
>
<DialogHeader>
<DialogTitle>Manage GitHub Apps</DialogTitle>
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/PlatformManagedConfirmationModal.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/PlatformManagedConfirmationModal.tsx
index bc61c22e21..e249a42a0f 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/PlatformManagedConfirmationModal.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/PlatformManagedConfirmationModal.tsx
@@ -21,7 +21,7 @@ type Props = {
export const PlatformManagedConfirmationModal = ({ isOpen, onOpenChange, onConfirm }: Props) => {
return (
<AlertDialog open={isOpen} onOpenChange={onOpenChange}>
- <AlertDialogContent className="z-[80]" overlayClassName="z-[80]">
+ <AlertDialogContent>
<AlertDialogHeader>
<AlertDialogMedia>
<AlertTriangleIcon />