The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Disable hover and active styles when button is disabled in primary/default variant (#14524)
Baptiste Devessierb8ae7ddad90b
diff --git a/packages/twenty-ui/src/input/button/components/Button/Button.tsx b/packages/twenty-ui/src/input/button/components/Button/Button.tsxindex 8f5a57301ab..bbdd8ca4661 100644--- a/packages/twenty-ui/src/input/button/components/Button/Button.tsx+++ b/packages/twenty-ui/src/input/button/components/Button/Button.tsx@@ -88,16 +88,20 @@ const StyledButton = styled('button', {? theme.font.color.secondary: theme.font.color.extraLight: theme.font.color.secondary};- &:hover {- background: ${!inverted- ? theme.background.tertiary- : theme.background.secondary};- }- &:active {- background: ${!inverted- ? theme.background.quaternary- : theme.background.tertiary};- }+ ${disabled+ ? ''+ : css`+ &:hover {+ background: ${!inverted+ ? theme.background.tertiary+ : theme.background.secondary};+ }+ &:active {+ background: ${!inverted+ ? theme.background.quaternary+ : theme.background.tertiary};+ }+ `}`;case 'blue':return css`