mirror of
				https://github.com/lingble/twenty.git
				synced 2025-10-30 04:12:28 +00:00 
			
		
		
		
	Modal Background & box shadow fixes (#8506)
# Before  # After 
This commit is contained in:
		 Thomas des Francs
					Thomas des Francs
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							4f99b8eea1
						
					
				
				
					commit
					30bcdda323
				
			| @@ -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} | ||||
|   | ||||
| @@ -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, | ||||
|   | ||||
| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user