The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
style: update deactivated state styles in onboarding button (#997)
Indrajeet Nikam86a2d67efdc1
diff --git a/front/src/modules/ui/button/components/MainButton.tsx b/front/src/modules/ui/button/components/MainButton.tsxindex 3b33171d55c..a15fb08e55f 100644--- a/front/src/modules/ui/button/components/MainButton.tsx+++ b/front/src/modules/ui/button/components/MainButton.tsx@@ -15,7 +15,7 @@ const StyledButton = styled.button<Pick<Props, 'fullWidth' | 'variant'>>`align-items: center;background: ${({ theme, variant, disabled }) => {if (disabled) {- return theme.background.tertiary;+ return theme.background.secondary;}switch (variant) {@@ -31,9 +31,22 @@ const StyledButton = styled.button<Pick<Props, 'fullWidth' | 'variant'>>`return theme.background.primary;}}};- border: 1px solid ${({ theme }) => theme.border.color.light};+ border: 1px solid;+ border-color: ${({ theme, disabled }) => {+ if (disabled) {+ return theme.background.transparent.lighter;+ }++ return theme.border.color.light;+ }};border-radius: ${({ theme }) => theme.border.radius.md};- box-shadow: ${({ theme }) => theme.boxShadow.light};+ ${({ theme, disabled }) => {+ if (disabled) {+ return '';+ }++ return `box-shadow: ${theme.boxShadow.light};`;+ }}color: ${({ theme, variant, disabled }) => {if (disabled) {return theme.font.color.light;