The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Remove chip close button hover backgrounds (#28449)
Raphaël Bosi835e8f0a0926
diff --git a/packages/twenty-front/src/modules/ui/input/components/BaseChip.tsx b/packages/twenty-front/src/modules/ui/input/components/BaseChip.tsxindex 74b3a7ffd7c..20b11603363 100644--- a/packages/twenty-front/src/modules/ui/input/components/BaseChip.tsx+++ b/packages/twenty-front/src/modules/ui/input/components/BaseChip.tsx@@ -74,7 +74,7 @@ const StyledLabel = styled.span<{ maxWidth?: number }>`text-overflow: ellipsis;`;-const StyledDelete = styled.button<{ danger: boolean }>`+const StyledDelete = styled.button`align-items: center;background: none;border: none;@@ -92,11 +92,6 @@ const StyledDelete = styled.button<{ danger: boolean }>`padding: 0;user-select: none;width: 20px;-- &:hover {- background-color: ${({ danger }) =>- danger ? themeCssVariables.color.red5 : themeCssVariables.color.blue5};- }`;type BaseChipProps = {@@ -149,7 +144,6 @@ export const BaseChip = ({type="button"onClick={onRemove}aria-label={removeAriaLabel ?? t`Remove`}- danger={danger}><IconX size={theme.icon.size.sm} stroke={theme.icon.stroke.sm} /></StyledDelete>diff --git a/packages/twenty-front/src/modules/views/components/SortOrFilterChip.tsx b/packages/twenty-front/src/modules/views/components/SortOrFilterChip.tsxindex cbb134462c2..c52a065183c 100644--- a/packages/twenty-front/src/modules/views/components/SortOrFilterChip.tsx+++ b/packages/twenty-front/src/modules/views/components/SortOrFilterChip.tsx@@ -56,7 +56,7 @@ const StyledIcon = styled.div`display: flex;`;-const StyledDelete = styled.button<{ variant: SortOrFilterChipVariant }>`+const StyledDelete = styled.button`align-items: center;background: none;border: none;@@ -72,19 +72,6 @@ const StyledDelete = styled.button<{ variant: SortOrFilterChipVariant }>`padding: 0;user-select: none;width: 20px;-- &:hover {- background-color: ${({ variant }) => {- switch (variant) {- case 'danger':- return themeCssVariables.color.red5;- case 'default':- default:- return themeCssVariables.accent.secondary;- }- }};- border-radius: ${themeCssVariables.border.radius.smRound};- }`;const StyledLabelKey = styled.div`@@ -169,7 +156,6 @@ export const SortOrFilterChip = ({)}</StyledKeyLabelContainer><StyledDelete- variant={variant}onClick={handleDeleteClick}data-testid={'remove-icon-' + testId}>