Skip to content

Commit fd73f93

Browse files
committed
added a default color to modal if no color provided
1 parent 86a500a commit fd73f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/packages/lowcoder-design/src/components/CustomModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ModalWrapper = styled.div<ModalWrapperProps>`
2525
flex-direction: column;
2626
width: ${(props) => (props.$width ? props.$width : "368px")};
2727
height: fit-content;
28-
background:${(props) => props.$customStyles?.backgroundColor}; ;
28+
background:${(props) => props.$customStyles?.backgroundColor || '#ffffff'};
2929
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
3030
border-radius: 8px;
3131
padding: 0 0 16px;

0 commit comments

Comments
 (0)