From fd73f93c3b836f074c74cd1d46ed58ad07a06c3c Mon Sep 17 00:00:00 2001 From: MenamAfzal Date: Mon, 9 Sep 2024 19:28:10 +0500 Subject: [PATCH] added a default color to modal if no color provided --- client/packages/lowcoder-design/src/components/CustomModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/packages/lowcoder-design/src/components/CustomModal.tsx b/client/packages/lowcoder-design/src/components/CustomModal.tsx index e469794dac..9c72ee1508 100644 --- a/client/packages/lowcoder-design/src/components/CustomModal.tsx +++ b/client/packages/lowcoder-design/src/components/CustomModal.tsx @@ -25,7 +25,7 @@ const ModalWrapper = styled.div` flex-direction: column; width: ${(props) => (props.$width ? props.$width : "368px")}; height: fit-content; - background:${(props) => props.$customStyles?.backgroundColor}; ; + background:${(props) => props.$customStyles?.backgroundColor || '#ffffff'}; box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 0 0 16px;