The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Modal Background & box shadow fixes (#8506)
Thomas des Francs30bcdda3235b
diff --git a/packages/twenty-front/src/modules/ui/layout/modal/components/Modal.tsx b/packages/twenty-front/src/modules/ui/layout/modal/components/Modal.tsxindex cde1a6a9ddb..fa558520759 100644--- a/packages/twenty-front/src/modules/ui/layout/modal/components/Modal.tsx+++ b/packages/twenty-front/src/modules/ui/layout/modal/components/Modal.tsx@@ -15,9 +15,14 @@ const StyledModalDiv = styled(motion.div)<{size?: ModalSize;padding?: ModalPadding;isMobile: boolean;+ modalVariant: ModalVariants;}>`display: flex;flex-direction: column;+ box-shadow: ${({ theme, modalVariant }) =>+ modalVariant === 'primary'+ ? theme.boxShadow.superHeavy+ : theme.boxShadow.strong};background: ${({ theme }) => theme.background.primary};color: ${({ theme }) => theme.font.color.primary};border-radius: ${({ theme, isMobile }) => {@@ -231,6 +236,7 @@ export const Modal = ({animate="visible"exit="exit"layout+ modalVariant={modalVariant}variants={modalAnimation}className={className}isMobile={isMobile}diff --git a/packages/twenty-ui/src/theme/constants/BackgroundDark.ts b/packages/twenty-ui/src/theme/constants/BackgroundDark.tsindex 446a6d2aa42..9ef3faae503 100644--- a/packages/twenty-ui/src/theme/constants/BackgroundDark.ts+++ b/packages/twenty-ui/src/theme/constants/BackgroundDark.ts@@ -23,9 +23,9 @@ export const BACKGROUND_DARK = {lighter: RGBA(GRAY_SCALE.gray0, 0.03),danger: RGBA(COLOR.red, 0.08),},- overlayPrimary: RGBA(GRAY_SCALE.gray90, 0.8),- overlaySecondary: RGBA(GRAY_SCALE.gray90, 0.4),- overlayTertiary: RGBA(GRAY_SCALE.gray90, 0.4),+ overlayPrimary: RGBA(GRAY_SCALE.gray80, 0.8),+ overlaySecondary: RGBA(GRAY_SCALE.gray80, 0.4),+ overlayTertiary: RGBA(GRAY_SCALE.gray80, 0.4),radialGradient: `radial-gradient(50% 62.62% at 50% 0%, #505050 0%, ${GRAY_SCALE.gray60} 100%)`,radialGradientHover: `radial-gradient(76.32% 95.59% at 50% 0%, #505050 0%, ${GRAY_SCALE.gray60} 100%)`,primaryInverted: GRAY_SCALE.gray20,diff --git a/packages/twenty-ui/src/theme/constants/BackgroundLight.ts b/packages/twenty-ui/src/theme/constants/BackgroundLight.tsindex dfd68500ae3..68fbf349655 100644--- a/packages/twenty-ui/src/theme/constants/BackgroundLight.ts+++ b/packages/twenty-ui/src/theme/constants/BackgroundLight.ts@@ -23,9 +23,9 @@ export const BACKGROUND_LIGHT = {lighter: RGBA(GRAY_SCALE.gray100, 0.02),danger: RGBA(COLOR.red, 0.08),},- overlayPrimary: RGBA(GRAY_SCALE.gray90, 0.8),- overlaySecondary: RGBA(GRAY_SCALE.gray90, 0.4),- overlayTertiary: RGBA(GRAY_SCALE.gray90, 0.08),+ overlayPrimary: RGBA(GRAY_SCALE.gray80, 0.8),+ overlaySecondary: RGBA(GRAY_SCALE.gray80, 0.4),+ overlayTertiary: RGBA(GRAY_SCALE.gray80, 0.08),radialGradient: `radial-gradient(50% 62.62% at 50% 0%, #505050 0%, ${GRAY_SCALE.gray60} 100%)`,radialGradientHover: `radial-gradient(76.32% 95.59% at 50% 0%, #505050 0%, ${GRAY_SCALE.gray60} 100%)`,primaryInverted: GRAY_SCALE.gray60,