Skip to content

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

fix: drop modal z index for those that inline app connection to prevent inproper hierarchy

Scott Wilson693f0d47f516
diff --git a/frontend/src/components/pki-syncs/CreatePkiSyncModal.tsx b/frontend/src/components/pki-syncs/CreatePkiSyncModal.tsx
index 2d983973b1..4eb72b5b76 100644
--- a/frontend/src/components/pki-syncs/CreatePkiSyncModal.tsx
+++ b/frontend/src/components/pki-syncs/CreatePkiSyncModal.tsx
@@ -66,7 +66,10 @@ export const CreatePkiSyncModal = ({
onOpenChange(isOpen);
}}
>
+ {/* Sit below the v3 overlay layer (z-50) so the inline "Create Connection" Sheet and its v3
+ Select menus stack above this modal instead of being buried behind it. */}
<ModalContent
+ overlayClassName="z-40"
title={
selectedSync ? (
<PkiSyncModalHeader isConfigured={false} destination={selectedSync} />
@@ -74,7 +77,7 @@ export const CreatePkiSyncModal = ({
"Add Sync"
)
}
- className="max-w-3xl"
+ className="z-40 max-w-3xl"
bodyClassName={selectedSync ? "overflow-visible" : undefined}
subTitle={
selectedSync ? undefined : "Select a third-party service to sync certificates to."
diff --git a/frontend/src/components/pki-syncs/EditPkiSyncModal.tsx b/frontend/src/components/pki-syncs/EditPkiSyncModal.tsx
index 0fe3dabe60..71db686a75 100644
--- a/frontend/src/components/pki-syncs/EditPkiSyncModal.tsx
+++ b/frontend/src/components/pki-syncs/EditPkiSyncModal.tsx
@@ -15,11 +15,14 @@ type Props = {
export const EditPkiSyncModal = ({ pkiSync, onOpenChange, fields, ...props }: Props) => {
if (!pkiSync) return null;
- const modalClassName = fields === PkiSyncEditFields.Mappings ? "max-w-4xl" : "max-w-2xl";
+ // z-40 keeps this modal below the v3 overlay layer (z-50) so the inline "Create Connection" Sheet
+ // and its v3 Select menus stack above it instead of being buried behind it.
+ const modalClassName = fields === PkiSyncEditFields.Mappings ? "z-40 max-w-4xl" : "z-40 max-w-2xl";
return (
<Modal {...props} onOpenChange={onOpenChange}>
<ModalContent
+ overlayClassName="z-40"
title={<PkiSyncModalHeader isConfigured destination={pkiSync.destination} />}
className={modalClassName}
bodyClassName="overflow-visible"
diff --git a/frontend/src/components/secret-rotations-v2/CreateSecretRotationV2Modal.tsx b/frontend/src/components/secret-rotations-v2/CreateSecretRotationV2Modal.tsx
index ceafc951ab..42fcf57966 100644
--- a/frontend/src/components/secret-rotations-v2/CreateSecretRotationV2Modal.tsx
+++ b/frontend/src/components/secret-rotations-v2/CreateSecretRotationV2Modal.tsx
@@ -109,7 +109,10 @@ export const CreateSecretRotationV2Modal = ({ onOpenChange, isOpen, ...props }:
onOpenChange(open);
}}
>
+ {/* Sit below the v3 overlay layer (z-50) so the inline "Create Connection" Sheet and its v3
+ Select menus stack above this modal instead of being buried behind it. */}
<ModalContent
+ overlayClassName="z-40"
title={
selectedRotation ? (
<SecretRotationV2ModalHeader isConfigured={false} type={selectedRotation} />
@@ -120,7 +123,7 @@ export const CreateSecretRotationV2Modal = ({ onOpenChange, isOpen, ...props }:
</div>
)
}
- className={selectedRotation ? "max-w-2xl" : "max-w-3xl"}
+ className={selectedRotation ? "z-40 max-w-2xl" : "z-40 max-w-3xl"}
subTitle={
selectedRotation ? undefined : "Select a provider to create a secret rotation for."
}
diff --git a/frontend/src/components/secret-scanning/CreateSecretScanningDataSourceModal.tsx b/frontend/src/components/secret-scanning/CreateSecretScanningDataSourceModal.tsx
index ac8c9dc24d..bc8507e16d 100644
--- a/frontend/src/components/secret-scanning/CreateSecretScanningDataSourceModal.tsx
+++ b/frontend/src/components/secret-scanning/CreateSecretScanningDataSourceModal.tsx
@@ -102,7 +102,10 @@ export const CreateSecretScanningDataSourceModal = ({ onOpenChange, isOpen, ...p
onOpenChange(open);
}}
>
+ {/* Sit below the v3 overlay layer (z-50) so the inline "Create Connection" Sheet and its v3
+ Select menus stack above this modal instead of being buried behind it. */}
<ModalContent
+ overlayClassName="z-40"
title={
selectedDataSource ? (
<SecretScanningDataSourceModalHeader isConfigured={false} type={selectedDataSource} />
@@ -113,7 +116,7 @@ export const CreateSecretScanningDataSourceModal = ({ onOpenChange, isOpen, ...p
</div>
)
}
- className={selectedDataSource ? "max-w-2xl" : "max-w-3xl"}
+ className={selectedDataSource ? "z-40 max-w-2xl" : "z-40 max-w-3xl"}
subTitle={
selectedDataSource ? undefined : "Select a data source to configure secret scanning for."
}