The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Replace ClickToActionLink with link-style Button (#26921)
Raphaël Bosieb0e1e7b0be2
diff --git a/packages/twenty-docs/docs.json b/packages/twenty-docs/docs.jsonindex 994d758caa9..da9d11dc97b 100644--- a/packages/twenty-docs/docs.json+++ b/packages/twenty-docs/docs.json@@ -590,8 +590,7 @@"group": "Navigation","pages": ["ui/primitives/navigation/list-item",- "ui/primitives/navigation/tabs",- "ui/primitives/navigation/click-to-action-link"+ "ui/primitives/navigation/tabs"]},{diff --git a/packages/twenty-docs/navigation/base-structure.json b/packages/twenty-docs/navigation/base-structure.jsonindex ceecf2bcea7..69922b88686 100644--- a/packages/twenty-docs/navigation/base-structure.json+++ b/packages/twenty-docs/navigation/base-structure.json@@ -605,8 +605,7 @@"label": "Navigation","pages": ["ui/primitives/navigation/list-item",- "ui/primitives/navigation/tabs",- "ui/primitives/navigation/click-to-action-link"+ "ui/primitives/navigation/tabs"]},{diff --git a/packages/twenty-docs/snippets/ui/generated/input/button-group.mdx b/packages/twenty-docs/snippets/ui/generated/input/button-group.mdxindex fd8e99380fb..cb27e4010c4 100644--- a/packages/twenty-docs/snippets/ui/generated/input/button-group.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/button-group.mdx@@ -34,6 +34,6 @@Shared button height that overrides the size of buttons in the group.</ParamField>-<ParamField body="variant" type=""ghost" | "outline" | "soft" | "solid"">+<ParamField body="variant" type=""ghost" | "link" | "outline" | "soft" | "solid"">Shared surface treatment that overrides the variant of buttons in the group.</ParamField>diff --git a/packages/twenty-docs/snippets/ui/generated/input/button.mdx b/packages/twenty-docs/snippets/ui/generated/input/button.mdxindex b85eb5637c6..49e89585b6c 100644--- a/packages/twenty-docs/snippets/ui/generated/input/button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/button.mdx@@ -53,7 +53,7 @@</ParamField><ParamField body="size" type=""md" | "sm"" default="md">- Button height: `sm` (24px) or `md` (32px).+ Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size.</ParamField><ParamField body="soon" type="boolean" default="false">@@ -73,6 +73,6 @@returns a style object based on the component's state.</ParamField>-<ParamField body="variant" type=""ghost" | "outline" | "soft" | "solid"" default="outline">- Visual treatment of the button surface.+<ParamField body="variant" type=""ghost" | "link" | "outline" | "soft" | "solid"" default="outline">+ Visual treatment of the button surface. `link` uses compact text styling without a filled surface or border; `href` still determines link semantics.</ParamField>diff --git a/packages/twenty-docs/snippets/ui/generated/input/icon-button.mdx b/packages/twenty-docs/snippets/ui/generated/input/icon-button.mdxindex a2c4d10187e..f4b5feba6b7 100644--- a/packages/twenty-docs/snippets/ui/generated/input/icon-button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/icon-button.mdx@@ -77,6 +77,6 @@Preferred placement of the tooltip relative to the button.</ParamField>-<ParamField body="variant" type=""ghost" | "outline" | "soft" | "solid"">- Visual treatment of the button surface.+<ParamField body="variant" type=""ghost" | "link" | "outline" | "soft" | "solid"">+ Visual treatment of the button surface. `link` uses compact text styling without a filled surface or border; `href` still determines link semantics.</ParamField>diff --git a/packages/twenty-docs/snippets/ui/generated/input/light-button.mdx b/packages/twenty-docs/snippets/ui/generated/input/light-button.mdxindex 1b779a2e5fe..e4fd79d8006 100644--- a/packages/twenty-docs/snippets/ui/generated/input/light-button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/light-button.mdx@@ -57,7 +57,7 @@</ParamField><ParamField body="size" type=""md" | "sm"" default="sm">- Button height: `sm` (24px) or `md` (32px).+ Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size.</ParamField><ParamField body="soon" type="boolean">@@ -77,6 +77,6 @@returns a style object based on the component's state.</ParamField>-<ParamField body="variant" type=""ghost" | "outline" | "soft" | "solid"" default="ghost">- Visual treatment of the button surface.+<ParamField body="variant" type=""ghost" | "link" | "outline" | "soft" | "solid"" default="ghost">+ Visual treatment of the button surface. `link` uses compact text styling without a filled surface or border; `href` still determines link semantics.</ParamField>diff --git a/packages/twenty-docs/snippets/ui/generated/input/light-icon-button.mdx b/packages/twenty-docs/snippets/ui/generated/input/light-icon-button.mdxindex 5c12b573a89..a4ebbce1474 100644--- a/packages/twenty-docs/snippets/ui/generated/input/light-icon-button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/light-icon-button.mdx@@ -81,6 +81,6 @@Preferred placement of the tooltip relative to the button.</ParamField>-<ParamField body="variant" type=""ghost" | "outline" | "soft" | "solid"" default="ghost">- Visual treatment of the button surface.+<ParamField body="variant" type=""ghost" | "link" | "outline" | "soft" | "solid"" default="ghost">+ Visual treatment of the button surface. `link` uses compact text styling without a filled surface or border; `href` still determines link semantics.</ParamField>diff --git a/packages/twenty-docs/snippets/ui/generated/input/main-button.mdx b/packages/twenty-docs/snippets/ui/generated/input/main-button.mdxindex bb72ed59b66..d72f29ed2f5 100644--- a/packages/twenty-docs/snippets/ui/generated/input/main-button.mdx+++ b/packages/twenty-docs/snippets/ui/generated/input/main-button.mdx@@ -53,7 +53,7 @@</ParamField><ParamField body="size" type=""md" | "sm"">- Button height: `sm` (24px) or `md` (32px).+ Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size.</ParamField><ParamField body="soon" type="boolean">@@ -73,6 +73,6 @@returns a style object based on the component's state.</ParamField>-<ParamField body="variant" type=""ghost" | "outline" | "soft" | "solid"" default="solid">- Visual treatment of the button surface.+<ParamField body="variant" type=""ghost" | "link" | "outline" | "soft" | "solid"" default="solid">+ Visual treatment of the button surface. `link` uses compact text styling without a filled surface or border; `href` still determines link semantics.</ParamField>diff --git a/packages/twenty-docs/snippets/ui/generated/navigation/click-to-action-link.mdx b/packages/twenty-docs/snippets/ui/generated/navigation/click-to-action-link.mdxdeleted file mode 100644index d1366d066b9..00000000000--- a/packages/twenty-docs/snippets/ui/generated/navigation/click-to-action-link.mdx+++ /dev/null@@ -1,36 +0,0 @@-{/*- * _____ _- *|_ _|_ _____ _ __ | |_ _ _- * | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file- * | | \ V V / __/ | | | |_| |_| | DO NOT EDIT - changes will be overwritten- * |_| \_/\_/ \___|_| |_|\__|\__, | Generated by: npx nx generate:ui twenty-docs- * |___/- *- * This file is generated from the documentation data in packages/twenty-ui/generated.- * To update it, edit the component prop types or design tokens in twenty-ui and run:- * npx nx generate:ui twenty-docs- */}--<ParamField body="children" type="ReactNode">- Visible link text or content. Use a descriptive destination label.-</ParamField>--<ParamField body="className" type="string">- CSS class applied to the anchor.-</ParamField>--<ParamField body="href" type="string">- Destination URL for native link navigation.-</ParamField>--<ParamField body="onClick" type="MouseEventHandler<HTMLAnchorElement>">- Click handler called when the link is activated.-</ParamField>--<ParamField body="rel" type="string">- Relationship to the destination, such as `noopener noreferrer` for a new tab.-</ParamField>--<ParamField body="target" type="HTMLAttributeAnchorTarget">- Browsing context in which to open the destination.-</ParamField>diff --git a/packages/twenty-docs/ui/primitives/input/button.mdx b/packages/twenty-docs/ui/primitives/input/button.mdxindex 9efb265aec2..0e59e0b9d9e 100644--- a/packages/twenty-docs/ui/primitives/input/button.mdx+++ b/packages/twenty-docs/ui/primitives/input/button.mdx@@ -69,7 +69,9 @@ export const CreateRecord = () => ();```-Choose `solid`, `outline`, `soft`, or `ghost` independently of the `neutral`, `accent`, `danger`, or `success` color. Sizes are `sm` and `md`; the defaults are `outline`, `neutral`, and `md`. `fullWidth` fills the available width. `startIcon` and `endIcon` accept elements and are decorative. `elevated` adds a shadow and backdrop blur. Neutral outline buttons also gain a bordered surface with matching text and interaction colors. Other variants and semantic colors keep their existing palette. It defaults to `false` and does not change size or position. `hotkeys` displays keyboard hints on larger screens; bind the shortcuts in your application.+Choose `solid`, `outline`, `soft`, `ghost`, or `link` independently of the `neutral`, `accent`, `danger`, or `success` color. Sizes are `sm` and `md`; the defaults are `outline`, `neutral`, and `md`. `fullWidth` fills the available width. `startIcon` and `endIcon` accept elements and are decorative. `elevated` adds a shadow and backdrop blur. Neutral outline buttons also gain a bordered surface with matching text and interaction colors. Other variants and semantic colors keep their existing palette. It defaults to `false` and does not change size or position. `hotkeys` displays keyboard hints on larger screens; bind the shortcuts in your application.++`link` uses compact text with no border or filled background. It follows its content height at either size, with a smaller font and narrower padding. Its neutral color uses stronger text on hover. The appearance does not determine semantics: use `onClick` for actions and `href` for navigation.`disabled`, `loading`, and `soon` prevent activation. Loading keeps the label accessible and preserves the button's width while showing a spinner. Customize the upcoming-feature label with `soonLabel`.@@ -119,7 +121,12 @@ When an icon is itself an action, use `IconButton` or `LightIconButton` and animimport { Button } from 'twenty-ui/primitives/input';export const DocumentationLink = () => (- <Button href="https://twenty.com" target="_blank" rel="noreferrer">+ <Button+ variant="link"+ href="https://twenty.com"+ target="_blank"+ rel="noreferrer"+ >Read documentation</Button>);@@ -129,6 +136,22 @@ export const DocumentationLink = () => (Buttons default to `type="button"`. Set `type="submit"` or `type="reset"` explicitly for forms. Native props, event handlers, refs, and Base UI's `render` prop pass through to the root.+## Migration from ClickToActionLink++Import `Button` from `twenty-ui/primitives/input` and replace `ClickToActionLink` with `Button variant="link"`. Keep `href`, `target`, and `rel` for navigation. Actions without `href` now render a native button with keyboard activation. Native attributes, events, and refs pass through to the root.++```tsx+import { Button } from 'twenty-ui/primitives/input';++type LogOutProps = { onLogOut: () => void };++export const LogOut = ({ onLogOut }: LogOutProps) => (+ <Button variant="link" onClick={onLogOut}>+ Log out+ </Button>+);+```+## Props<ButtonReference />diff --git a/packages/twenty-docs/ui/primitives/navigation/click-to-action-link.mdx b/packages/twenty-docs/ui/primitives/navigation/click-to-action-link.mdxdeleted file mode 100644index 819a85efbed..00000000000--- a/packages/twenty-docs/ui/primitives/navigation/click-to-action-link.mdx+++ /dev/null@@ -1,51 +0,0 @@-----title: ClickToActionLink-description: Render a text link for navigation to a destination.------import { StoryEmbed } from '/snippets/ui/StoryEmbed.mdx';--import ClickToActionLinkReference from '/snippets/ui/generated/navigation/click-to-action-link.mdx';--`ClickToActionLink` renders a styled native anchor. Use a meaningful `href` and descriptive visible text. For an action that changes application state without navigation, use [Button](/ui/primitives/input/button).--<StoryEmbed- storyId="ui-navigation-clicktoactionlink--default"- title="ClickToActionLink example"-/>--## Usage--```tsx-import { ClickToActionLink } from 'twenty-ui/primitives/navigation';--export const ImportHelpLink = () => (- <ClickToActionLink href="https://docs.twenty.com/">- Read the Twenty documentation- </ClickToActionLink>-);-```--## Open a new tab--```tsx-import { ClickToActionLink } from 'twenty-ui/primitives/navigation';--export const ExternalHelpLink = () => (- <ClickToActionLink- href="https://docs.twenty.com/"- target="_blank"- rel="noopener noreferrer"- >- Read the documentation (opens in a new tab)- </ClickToActionLink>-);-```--With an `href`, the native anchor provides keyboard focus and Enter activation. `onClick` can observe or intercept activation; routing and state belong to the host application.--Although its TypeScript type accepts anchor attributes, the current implementation forwards only `children`, `className`, `href`, `onClick`, `target`, and `rel`. Other attributes and refs are not forwarded. Use visible link text as the accessible name.--## Props--<ClickToActionLinkReference />diff --git a/packages/twenty-docs/ui/primitives/overview.mdx b/packages/twenty-docs/ui/primitives/overview.mdxindex 6dc0503aac8..16d0284e418 100644--- a/packages/twenty-docs/ui/primitives/overview.mdx+++ b/packages/twenty-docs/ui/primitives/overview.mdx@@ -93,6 +93,6 @@ Each page includes usage examples, interaction guidance, and a generated API ref| Feedback | [Banner](/ui/primitives/feedback/banner), [Loader](/ui/primitives/feedback/loader), [ProgressBar](/ui/primitives/feedback/progress-bar) || Forms | [Button](/ui/primitives/input/button), [ButtonGroup](/ui/primitives/input/button-group), [Checkbox](/ui/primitives/input/checkbox), [Field](/ui/primitives/input/field), [Input](/ui/primitives/input/input), [InputGroup](/ui/primitives/input/input-group), [Radio](/ui/primitives/input/radio), [RadioGroup](/ui/primitives/input/radio-group), [SegmentedControl](/ui/primitives/input/segmented-control), [Select](/ui/primitives/input/select), [Slider](/ui/primitives/input/slider), [Switch](/ui/primitives/input/switch), [Textarea](/ui/primitives/input/textarea) || Layout | [Collapsible](/ui/primitives/layout/collapsible), [HorizontalSeparator](/ui/primitives/layout/horizontal-separator), [ResizeHandle](/ui/primitives/layout/resize-handle), [TextDirectionProvider](/ui/primitives/layout/text-direction-provider) |-| Navigation | [ClickToActionLink](/ui/primitives/navigation/click-to-action-link), [ListItem](/ui/primitives/navigation/list-item), [Tabs](/ui/primitives/navigation/tabs) |+| Navigation | [ListItem](/ui/primitives/navigation/list-item), [Tabs](/ui/primitives/navigation/tabs) || Surfaces | [AlertDialog](/ui/primitives/surfaces/alert-dialog), [Card](/ui/primitives/surfaces/card), [Dialog](/ui/primitives/surfaces/dialog), [Menu](/ui/primitives/surfaces/menu), [Popover](/ui/primitives/surfaces/popover), [Tooltip](/ui/primitives/surfaces/tooltip) || Typography | [Heading](/ui/primitives/typography/heading), [OverflowingTextWithTooltip](/ui/primitives/typography/overflowing-text-with-tooltip), [Text](/ui/primitives/typography/text) |diff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-button-controls.front-component.tsx b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-button-controls.front-component.tsxindex 834fb9551e5..a0c74ffb7b7 100644--- a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-button-controls.front-component.tsx+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-button-controls.front-component.tsx@@ -52,7 +52,12 @@ const ButtonControls = () => {<LightButton onClick={() => setLoading(false)}>Complete request</LightButton>- <Button href="https://twenty.com" target="_blank" rel="noreferrer">+ <Button+ variant="link"+ href="https://twenty.com"+ target="_blank"+ rel="noreferrer"+ >Documentation</Button><ButtonGroup aria-label="Actions" size="sm">@@ -115,6 +120,9 @@ const ButtonControls = () => {</LightIconButton>}/>+ <Button variant="link" onClick={handleClick}>+ Log out+ </Button><output aria-label="Activations">{activations}</output></ThemeProvider>);diff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-navigation-gallery.front-component.tsx b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-navigation-gallery.front-component.tsxindex 3c9a432eb83..f2f50e75f60 100644--- a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-navigation-gallery.front-component.tsx+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-navigation-gallery.front-component.tsx@@ -12,7 +12,7 @@ import {import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';import { IconHome, IconUser } from 'twenty-ui/icon';import { ColorSample, Tag } from 'twenty-ui/primitives/data-display';-import { ClickToActionLink, ListItem } from 'twenty-ui/primitives/navigation';+import { ListItem } from 'twenty-ui/primitives/navigation';import { ThemeProvider } from 'twenty-ui/theme';import {ComponentGallery,@@ -20,10 +20,6 @@ import {} from '../shared/front-components/component-gallery';const NAVIGATION_ENTRIES: GalleryEntry[] = [- {- name: 'ClickToActionLink',- node: <ClickToActionLink href="#">Click me</ClickToActionLink>,- },{name: 'MenuItem',node: <MenuItem text="Menu item" LeftIcon={IconUser} />,diff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/buttonControlsTest.ts b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/buttonControlsTest.tsindex 8bba0c19b2c..4f484a20fdd 100644--- a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/buttonControlsTest.ts+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/buttonControlsTest.ts@@ -91,4 +91,13 @@ export const buttonControlsTest: TwentyUiGalleryPlayFunction = async (await waitFor(() =>expect(canvas.getByLabelText('Activations')).toHaveTextContent('7'),);+ const logOut = canvas.getByRole('button', { name: 'Log out' });+ await userEvent.click(logOut);+ logOut.focus();+ await userEvent.keyboard('{Enter} ');+ await waitFor(() =>+ expect(canvas.getByLabelText('Activations')).toHaveTextContent('10'),+ );+ await expect(getComputedStyle(logOut).borderTopWidth).toBe('0px');+ await expect(getComputedStyle(logOut).paddingInlineStart).toBe('4px');};diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsxindex c9a14cd8e96..0d09cafefbd 100644--- a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx+++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx@@ -6,7 +6,7 @@ import { useQuery } from '@apollo/client/react';import { styled } from '@linaria/react';import { Trans, useLingui } from '@lingui/react/macro';import { FormProvider } from 'react-hook-form';-import { ClickToActionLink } from 'twenty-ui/primitives/navigation';+import { Button } from 'twenty-ui/primitives/input';import { StyledOnboardingContentContainer } from '@/auth/components/StyledOnboardingContentContainer';import { SignInUpWithCredentials } from '@/auth/sign-in-up/components/internal/SignInUpWithCredentials';@@ -260,11 +260,12 @@ export const SignInUpGlobalScopeForm = () => {</FormProvider>{signInUpStep === SignInUpStep.Password && (<StyledForgotPasswordLinkContainer>- <ClickToActionLink+ <Button+ variant="link"onClick={handleResetPassword(form.getValues('email'))}><Trans>Forgot your password?</Trans>- </ClickToActionLink>+ </Button></StyledForgotPasswordLinkContainer>)}</StyledOnboardingContentContainer>diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpWorkspaceScopeForm.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpWorkspaceScopeForm.tsxindex f0f7cdb5e11..db3011a9ff8 100644--- a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpWorkspaceScopeForm.tsx+++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpWorkspaceScopeForm.tsx@@ -13,7 +13,7 @@ import { workspaceAuthProvidersState } from '@/workspace/states/workspaceAuthProimport { Trans } from '@lingui/react/macro';import { FormProvider } from 'react-hook-form';import { HorizontalSeparator } from 'twenty-ui/primitives/layout';-import { ClickToActionLink } from 'twenty-ui/primitives/navigation';+import { Button } from 'twenty-ui/primitives/input';import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';export const SignInUpWorkspaceScopeForm = () => {@@ -66,11 +66,12 @@ export const SignInUpWorkspaceScopeForm = () => {)}</StyledOnboardingContentContainer>{signInUpStep === SignInUpStep.Password && (- <ClickToActionLink+ <Button+ variant="link"onClick={handleResetPassword(form.getValues('email'))}><Trans>Forgot your password?</Trans>- </ClickToActionLink>+ </Button>)}</>);diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/WorkspaceSelectionFooter.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/WorkspaceSelectionFooter.tsxindex deec24b2774..64133cffb89 100644--- a/packages/twenty-front/src/modules/auth/sign-in-up/components/WorkspaceSelectionFooter.tsx+++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/WorkspaceSelectionFooter.tsx@@ -1,13 +1,13 @@import { useAuth } from '@/auth/hooks/useAuth';import { Trans } from '@lingui/react/macro';-import { ClickToActionLink } from 'twenty-ui/primitives/navigation';+import { Button } from 'twenty-ui/primitives/input';export const WorkspaceSelectionFooter = () => {const { signOut } = useAuth();return (- <ClickToActionLink onClick={signOut}>+ <Button variant="link" onClick={signOut}><Trans>Log out</Trans>- </ClickToActionLink>+ </Button>);};diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/internal/SignInUpTwoFactorAuthenticationVerification.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/internal/SignInUpTwoFactorAuthenticationVerification.tsxindex 4e0c9759d9a..3729f25f449 100644--- a/packages/twenty-front/src/modules/auth/sign-in-up/components/internal/SignInUpTwoFactorAuthenticationVerification.tsx+++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/internal/SignInUpTwoFactorAuthenticationVerification.tsx@@ -24,7 +24,7 @@ import { useState } from 'react';import { Controller } from 'react-hook-form';import { AppPath } from 'twenty-shared/types';import { MainButton, useToast } from 'twenty-ui/components';-import { ClickToActionLink } from 'twenty-ui/primitives/navigation';+import { Button } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';import { useNavigateApp } from '~/hooks/useNavigateApp';@@ -267,9 +267,9 @@ export const SignInUpTOTPVerification = () => {disabled={isLoading}>{t`Submit`}</MainButton><StyledActionBackLinkContainer>- <ClickToActionLink onClick={handleBack}>+ <Button variant="link" onClick={handleBack}><Trans>Back</Trans>- </ClickToActionLink>+ </Button></StyledActionBackLinkContainer></StyledForm>);diff --git a/packages/twenty-front/src/modules/onboarding/components/upgrade-free-trial/ChooseYourPlanErrorState.tsx b/packages/twenty-front/src/modules/onboarding/components/upgrade-free-trial/ChooseYourPlanErrorState.tsxindex df57968b910..799d9c42ef5 100644--- a/packages/twenty-front/src/modules/onboarding/components/upgrade-free-trial/ChooseYourPlanErrorState.tsx+++ b/packages/twenty-front/src/modules/onboarding/components/upgrade-free-trial/ChooseYourPlanErrorState.tsx@@ -8,7 +8,7 @@ import { StyledOnboardingStepTitle } from '@/onboarding/components/StyledOnboardimport { styled } from '@linaria/react';import { Trans, useLingui } from '@lingui/react/macro';import { MainButton } from 'twenty-ui/components';-import { ClickToActionLink } from 'twenty-ui/primitives/navigation';+import { Button } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';const StyledFooter = styled(StyledOnboardingContentBlock)`@@ -44,9 +44,9 @@ export const ChooseYourPlanErrorState = ({<OnboardingStepAnimatedItem index={2}><StyledFooter><MainButton onClick={onRetry} fullWidth>{t`Try again`}</MainButton>- <ClickToActionLink onClick={signOut}>+ <Button variant="link" onClick={signOut}><Trans>Log out</Trans>- </ClickToActionLink>+ </Button></StyledFooter></OnboardingStepAnimatedItem></StyledOnboardingStepPage>diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsPasswordController.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsPasswordController.tsxindex c080f98bbb4..463e399eeaa 100644--- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsPasswordController.tsx+++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsPasswordController.tsx@@ -6,7 +6,7 @@ import { type AccountType } from 'twenty-shared/constants';import { type ConnectionFormData } from '@/settings/accounts/hooks/useImapSmtpCaldavConnectionForm';import { SettingsTextInput } from '@/ui/input/components/SettingsTextInput';-import { ClickToActionLink } from 'twenty-ui/primitives/navigation';+import { Button } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';const StyledPasswordFieldContainer = styled.div`@@ -15,7 +15,7 @@ const StyledPasswordFieldContainer = styled.div`gap: ${themeCssVariables.spacing[1]};`;-const StyledChangePasswordLink = styled(ClickToActionLink)`+const StyledChangePasswordButton = styled(Button)`align-self: flex-end;`;@@ -53,9 +53,9 @@ export const SettingsAccountsPasswordController = ({disabled={disabled}/>{disabled && (- <StyledChangePasswordLink onClick={onUnlock}>+ <StyledChangePasswordButton variant="link" onClick={onUnlock}><Trans>Change password</Trans>- </StyledChangePasswordLink>+ </StyledChangePasswordButton>)}</StyledPasswordFieldContainer>)}diff --git a/packages/twenty-front/src/pages/onboarding/UpgradeFreeTrial.tsx b/packages/twenty-front/src/pages/onboarding/UpgradeFreeTrial.tsxindex 1ffcc2a2f4a..9482f65fc5b 100644--- a/packages/twenty-front/src/pages/onboarding/UpgradeFreeTrial.tsx+++ b/packages/twenty-front/src/pages/onboarding/UpgradeFreeTrial.tsx@@ -31,8 +31,7 @@ import { AppPath } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';import { Info, MainButton } from 'twenty-ui/components';import { Loader } from 'twenty-ui/primitives/feedback';-import { RadioGroup } from 'twenty-ui/primitives/input';-import { ClickToActionLink } from 'twenty-ui/primitives/navigation';+import { Button, RadioGroup } from 'twenty-ui/primitives/input';import { MOBILE_VIEWPORT, themeCssVariables } from 'twenty-ui/theme';import {type Billing,@@ -253,17 +252,18 @@ const UpgradeFreeTrialContent = ({>{t`Continue`}</MainButton>)}<StyledLinkGroup>- <ClickToActionLink onClick={signOut}>+ <Button variant="link" onClick={signOut}><Trans>Log out</Trans>- </ClickToActionLink>+ </Button><span />- <ClickToActionLink+ <Button+ variant="link"href={calendarBookingPageId ? AppPath.BookCall : CAL_LINK}target={calendarBookingPageId ? '_self' : '_blank'}rel={calendarBookingPageId ? '' : 'noreferrer'}><Trans>Book a Call</Trans>- </ClickToActionLink>+ </Button></StyledLinkGroup></StyledFooter></OnboardingStepAnimatedItem>diff --git a/packages/twenty-shared/src/constants/DocumentationPaths.ts b/packages/twenty-shared/src/constants/DocumentationPaths.tsindex f89e43b245f..e49457beade 100644--- a/packages/twenty-shared/src/constants/DocumentationPaths.ts+++ b/packages/twenty-shared/src/constants/DocumentationPaths.ts@@ -192,8 +192,6 @@ export const DOCUMENTATION_PATHS = {UI_PRIMITIVES_LAYOUT_RESIZE_HANDLE: '/ui/primitives/layout/resize-handle',UI_PRIMITIVES_LAYOUT_TEXT_DIRECTION_PROVIDER:'/ui/primitives/layout/text-direction-provider',- UI_PRIMITIVES_NAVIGATION_CLICK_TO_ACTION_LINK:- '/ui/primitives/navigation/click-to-action-link',UI_PRIMITIVES_NAVIGATION_LIST_ITEM: '/ui/primitives/navigation/list-item',UI_PRIMITIVES_NAVIGATION_TABS: '/ui/primitives/navigation/tabs',UI_PRIMITIVES_OVERVIEW: '/ui/primitives/overview',diff --git a/packages/twenty-ui/CHANGELOG.md b/packages/twenty-ui/CHANGELOG.mdindex cd549a7da83..7e0e28535c8 100644--- a/packages/twenty-ui/CHANGELOG.md+++ b/packages/twenty-ui/CHANGELOG.md@@ -4,6 +4,7 @@### Breaking Changes+- Removed `ClickToActionLink`. Use `Button variant="link"` from `twenty-ui/primitives/input`: pass `onClick` for actions or `href` for navigation. The link appearance preserves compact text styling while actions gain native button keyboard behavior and prop forwarding.- Removed `CircularProgressBar`. Use `Loader` from `twenty-ui/primitives/feedback` for indeterminate loading. The separately versioned Granola app will migrate when its `twenty-ui` dependency is upgraded.- Removed the product URL exports `CAL_LINK`, `GITHUB_LINK`, and `TWENTY_PRICING_LINK`. Applications own their destination URLs.- `Card` is now a compound component. Import `Card` from `twenty-ui/primitives/surfaces`, replace `<Card>` with `<Card.Root>`, and replace the removed `CardHeader`, `CardContent`, and `CardFooter` exports with `Card.Header`, `Card.Content`, and `Card.Footer`. Use `Card.Root` in styled wrappers and prop types. Rendering, styling, props, and independent use of the parts are unchanged. See the [Card migration guide](https://docs.twenty.com/ui/primitives/surfaces/card#migration).diff --git a/packages/twenty-ui/docs/buttonPropDescriptions.ts b/packages/twenty-ui/docs/buttonPropDescriptions.tsindex d5b4fc0acd1..47d19fbb260 100644--- a/packages/twenty-ui/docs/buttonPropDescriptions.ts+++ b/packages/twenty-ui/docs/buttonPropDescriptions.ts@@ -1,9 +1,10 @@import { type ButtonProps } from '../src/primitives/input/Button/types/ButtonProps';export const BUTTON_PROP_DESCRIPTIONS = {- variant: 'Visual treatment of the button surface.',+ variant:+ 'Visual treatment of the button surface. `link` uses compact text styling without a filled surface or border; `href` still determines link semantics.',color: 'Semantic color of the button.',- size: 'Button height: `sm` (24px) or `md` (32px).',+ size: 'Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size.',fullWidth: 'Expands the button to fill its container width.',loading:'Shows a loading indicator and disables activation while preserving the button width.',diff --git a/packages/twenty-ui/docs/clickToActionLinkPropDescriptions.ts b/packages/twenty-ui/docs/clickToActionLinkPropDescriptions.tsdeleted file mode 100644index d8811429e5c..00000000000--- a/packages/twenty-ui/docs/clickToActionLinkPropDescriptions.ts+++ /dev/null@@ -1,15 +0,0 @@-import { type ComponentProps } from 'react';--import { type ClickToActionLink } from '../src/primitives/navigation/ClickToActionLink/ClickToActionLink';--export const CLICK_TO_ACTION_LINK_PROP_DESCRIPTIONS = {- children:- 'Visible link text or content. Use a descriptive destination label.',- className: 'CSS class applied to the anchor.',- href: 'Destination URL for native link navigation.',- onClick: 'Click handler called when the link is activated.',- target: 'Browsing context in which to open the destination.',- rel: 'Relationship to the destination, such as `noopener noreferrer` for a new tab.',-} satisfies Partial<- Record<keyof ComponentProps<typeof ClickToActionLink>, string>->;diff --git a/packages/twenty-ui/docs/components.ts b/packages/twenty-ui/docs/components.tsindex 833b7331422..dae50bab1e3 100644--- a/packages/twenty-ui/docs/components.ts+++ b/packages/twenty-ui/docs/components.ts@@ -35,7 +35,6 @@ import { CARD_FOOTER_PROP_DESCRIPTIONS } from './cardFooterPropDescriptions';import { CARD_HEADER_PROP_DESCRIPTIONS } from './cardHeaderPropDescriptions';import { CARD_PROP_DESCRIPTIONS } from './cardPropDescriptions';import { CHIP_PROP_DESCRIPTIONS } from './chipPropDescriptions';-import { CLICK_TO_ACTION_LINK_PROP_DESCRIPTIONS } from './clickToActionLinkPropDescriptions';import { CODE_EDITOR_HEADER_PROP_DESCRIPTIONS } from './codeEditorHeaderPropDescriptions';import { CODE_EDITOR_PROP_DESCRIPTIONS } from './codeEditorPropDescriptions';import { COLOR_SAMPLE_PROP_DESCRIPTIONS } from './colorSamplePropDescriptions';@@ -142,13 +141,6 @@ export const DOCUMENTED_COMPONENTS = [slug: 'layout/text-direction-provider',propDescriptions: TEXT_DIRECTION_PROVIDER_PROP_DESCRIPTIONS,},- {- name: 'ClickToActionLink',- source: 'primitives/navigation/ClickToActionLink/ClickToActionLink.tsx',- entryPoint: 'twenty-ui/primitives/navigation',- slug: 'navigation/click-to-action-link',- propDescriptions: CLICK_TO_ACTION_LINK_PROP_DESCRIPTIONS,- },{name: 'OverflowingTextWithTooltip',source:diff --git a/packages/twenty-ui/docs/label-ownership.md b/packages/twenty-ui/docs/label-ownership.mdindex d6dccfe096e..e59ac81959f 100644--- a/packages/twenty-ui/docs/label-ownership.md+++ b/packages/twenty-ui/docs/label-ownership.md@@ -18,5 +18,5 @@ This covers production exports under components, primitives, and icons, includin| ResizeHandle and CodeEditor | ResizeHandle accepts native labels over `Resize`. CodeEditor exposes `resizeLabel` (default `Resize editor`) and Monaco `options`, including its editor accessible label. The loading indicator adds no text. Monaco owns its internal editor messages. || Input, Textarea, Select, Field, Slider, Radio, RadioGroup, Checkbox, Switch, SegmentedControl | Native attributes, compound label/description/error parts, options, and children belong to the caller. Browser validation messages remain browser-owned; Field.Error children or render content can replace them. || Dialog, AlertDialog, Popover, Tooltip, Tabs | Text belongs to title, description, close, trigger, tab, and popup parts. No built-in English action or status strings. |-| Banner, InlineBanner, Info, CardPicker, SettingsRow, Section, NavigationBar, RoundedLink, ClickToActionLink, CommandBlock | Content and labels belong to supplied props or children. |+| Banner, InlineBanner, Info, CardPicker, SettingsRow, Section, NavigationBar, RoundedLink, CommandBlock | Content and labels belong to supplied props or children. || Tag, Status, Pill, AvatarGroup, NotificationCounter, ColorSample, TintedIconTile, typography, layout and icon exports | Caller content, data values, native accessible attributes where supported, or decorative output. Loader and progress graphics add no built-in English loading message. |diff --git a/packages/twenty-ui/docs/module-ownership.json b/packages/twenty-ui/docs/module-ownership.jsonindex 0fde530f006..f466caea7f6 100644--- a/packages/twenty-ui/docs/module-ownership.json+++ b/packages/twenty-ui/docs/module-ownership.json@@ -8,7 +8,6 @@"Card","Checkbox","Chip",- "ClickToActionLink","Collapsible","ColorSample","Dialog",diff --git a/packages/twenty-ui/generated/components.docs.json b/packages/twenty-ui/generated/components.docs.jsonindex 863f3ba29e0..a9e51014349 100644--- a/packages/twenty-ui/generated/components.docs.json+++ b/packages/twenty-ui/generated/components.docs.json@@ -545,55 +545,6 @@}]},- {- "name": "ClickToActionLink",- "entryPoint": "twenty-ui/primitives/navigation",- "slug": "navigation/click-to-action-link",- "props": [- {- "name": "children",- "type": "ReactNode",- "required": false,- "defaultValue": null,- "description": "Visible link text or content. Use a descriptive destination label."- },- {- "name": "className",- "type": "string",- "required": false,- "defaultValue": null,- "description": "CSS class applied to the anchor."- },- {- "name": "href",- "type": "string",- "required": false,- "defaultValue": null,- "description": "Destination URL for native link navigation."- },- {- "name": "onClick",- "type": "MouseEventHandler<HTMLAnchorElement>",- "required": false,- "defaultValue": null,- "description": "Click handler called when the link is activated."- },- {- "name": "rel",- "type": "string",- "required": false,- "defaultValue": null,- "description": "Relationship to the destination, such as `noopener noreferrer` for a new tab."- },- {- "name": "target",- "type": "HTMLAttributeAnchorTarget",- "required": false,- "defaultValue": null,- "description": "Browsing context in which to open the destination."- }- ]- },{"name": "OverflowingTextWithTooltip","entryPoint": "twenty-ui/primitives/typography",@@ -790,10 +741,10 @@},{"name": "variant",- "type": "\"ghost\" | \"outline\" | \"soft\" | \"solid\"",+ "type": "\"ghost\" | \"link\" | \"outline\" | \"soft\" | \"solid\"","required": false,"defaultValue": "ghost",- "description": "Visual treatment of the button surface."+ "description": "Visual treatment of the button surface. `link` uses compact text styling without a filled surface or border; `href` still determines link semantics."}]},@@ -916,10 +867,10 @@},{"name": "variant",- "type": "\"ghost\" | \"outline\" | \"soft\" | \"solid\"",+ "type": "\"ghost\" | \"link\" | \"outline\" | \"soft\" | \"solid\"","required": false,"defaultValue": null,- "description": "Visual treatment of the button surface."+ "description": "Visual treatment of the button surface. `link` uses compact text styling without a filled surface or border; `href` still determines link semantics."}]},@@ -1003,7 +954,7 @@"type": "\"md\" | \"sm\"","required": false,"defaultValue": null,- "description": "Button height: `sm` (24px) or `md` (32px)."+ "description": "Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size."},{"name": "soon",@@ -1035,10 +986,10 @@},{"name": "variant",- "type": "\"ghost\" | \"outline\" | \"soft\" | \"solid\"",+ "type": "\"ghost\" | \"link\" | \"outline\" | \"soft\" | \"solid\"","required": false,"defaultValue": "solid",- "description": "Visual treatment of the button surface."+ "description": "Visual treatment of the button surface. `link` uses compact text styling without a filled surface or border; `href` still determines link semantics."}]},@@ -1129,7 +1080,7 @@"type": "\"md\" | \"sm\"","required": false,"defaultValue": "sm",- "description": "Button height: `sm` (24px) or `md` (32px)."+ "description": "Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size."},{"name": "soon",@@ -1161,10 +1112,10 @@},{"name": "variant",- "type": "\"ghost\" | \"outline\" | \"soft\" | \"solid\"",+ "type": "\"ghost\" | \"link\" | \"outline\" | \"soft\" | \"solid\"","required": false,"defaultValue": "ghost",- "description": "Visual treatment of the button surface."+ "description": "Visual treatment of the button surface. `link` uses compact text styling without a filled surface or border; `href` still determines link semantics."}]},@@ -1248,7 +1199,7 @@"type": "\"md\" | \"sm\"","required": false,"defaultValue": "md",- "description": "Button height: `sm` (24px) or `md` (32px)."+ "description": "Button height: `sm` (24px) or `md` (32px). The `link` variant uses its content height at either size."},{"name": "soon",@@ -1280,10 +1231,10 @@},{"name": "variant",- "type": "\"ghost\" | \"outline\" | \"soft\" | \"solid\"",+ "type": "\"ghost\" | \"link\" | \"outline\" | \"soft\" | \"solid\"","required": false,"defaultValue": "outline",- "description": "Visual treatment of the button surface."+ "description": "Visual treatment of the button surface. `link` uses compact text styling without a filled surface or border; `href` still determines link semantics."}]},@@ -1329,7 +1280,7 @@},{"name": "variant",- "type": "\"ghost\" | \"outline\" | \"soft\" | \"solid\"",+ "type": "\"ghost\" | \"link\" | \"outline\" | \"soft\" | \"solid\"","required": false,"defaultValue": null,"description": "Shared surface treatment that overrides the variant of buttons in the group."diff --git a/packages/twenty-ui/src/components/feedback/Toast/__stories__/Toast.stories.tsx b/packages/twenty-ui/src/components/feedback/Toast/__stories__/Toast.stories.tsxindex 64c6b450389..e1bc3c3c6f0 100644--- a/packages/twenty-ui/src/components/feedback/Toast/__stories__/Toast.stories.tsx+++ b/packages/twenty-ui/src/components/feedback/Toast/__stories__/Toast.stories.tsx@@ -4,7 +4,6 @@ import { expect, fn, userEvent, waitFor, within } from 'storybook/test';import { IconBell } from '@ui/icon';import { Button } from '@ui/primitives/input/Button/Button';-import { ClickToActionLink } from '@ui/primitives/navigation/ClickToActionLink/ClickToActionLink';import {A11Y_DEFER_COLOR_CONTRAST,CatalogDecorator,@@ -82,11 +81,16 @@ export const WithDescriptionAndAction: Story = {export const CustomIconAndLink: Story = {...Default,+ parameters: { a11y: A11Y_DEFER_COLOR_CONTRAST },args: { icon: <IconBell size={16} />, onClick: fn() },render: (args) => (<Toast{...args}- action={<ClickToActionLink href="#record">View record</ClickToActionLink>}+ action={+ <Button variant="link" href="#record">+ View record+ </Button>+ }/>),play: async ({ canvasElement, args }) => {diff --git a/packages/twenty-ui/src/primitives/input/Button/Button.module.scss b/packages/twenty-ui/src/primitives/input/Button/Button.module.scssindex 9c61a667aa6..c65db9fca1f 100644--- a/packages/twenty-ui/src/primitives/input/Button/Button.module.scss+++ b/packages/twenty-ui/src/primitives/input/Button/Button.module.scss@@ -165,6 +165,31 @@ $colors: (}}+.button[data-variant='link'] {+ --tw-button-background: transparent;+ --tw-button-border: transparent;+ --tw-button-hover: transparent;+ --tw-button-active: transparent;++ block-size: var(--tw-button-size, auto);+ border: 0;+ font-size: var(--t-font-size-sm);+ line-height: inherit;+ padding-inline: var(--tw-button-padding-inline, var(--t-spacing-1));++ &[data-color='neutral'] {+ --tw-button-color: var(--t-font-color-light);++ &:not([data-disabled]) {+ @include hover-capable {+ &:hover {+ color: var(--t-font-color-tertiary);+ }+ }+ }+ }+}+.content {align-items: center;display: inline-flex;diff --git a/packages/twenty-ui/src/primitives/input/Button/__stories__/Button.stories.tsx b/packages/twenty-ui/src/primitives/input/Button/__stories__/Button.stories.tsxindex 6b90e899589..7d5f5e9cabe 100644--- a/packages/twenty-ui/src/primitives/input/Button/__stories__/Button.stories.tsx+++ b/packages/twenty-ui/src/primitives/input/Button/__stories__/Button.stories.tsx@@ -46,6 +46,11 @@ export const Disabled: Story = {await expect(args.onClick).not.toHaveBeenCalled();},};+export const LinkAction: Story = {+ ...Keyboard,+ parameters: { a11y: A11Y_DEFER_COLOR_CONTRAST },+ args: { ...Keyboard.args, variant: 'link', children: 'Log out' },+};export const Soon: Story = {...Disabled,args: { soon: true, soonLabel: 'Coming soon', onClick: fn() },@@ -85,11 +90,14 @@ export const Loading: Story = {};export const NativeForm: Story = {...Default,+ parameters: { a11y: A11Y_DEFER_COLOR_CONTRAST },args: { onClick: fn() },render: (args) => (<form aria-label="Profile" onSubmit={(event) => event.preventDefault()}><input aria-label="Name" defaultValue="Ada" />- <Button {...args}>Default button</Button>+ <Button {...args} variant="link">+ Default button+ </Button><Button type="reset">Reset</Button><Button type="submit">Submit</Button></form>@@ -115,7 +123,9 @@ export const NativeForm: Story = {};export const LinkButton: Story = {...Default,+ parameters: { a11y: A11Y_DEFER_COLOR_CONTRAST },args: {+ variant: 'link',href: '#button-destination',target: '_blank',rel: 'noreferrer',@@ -129,7 +139,12 @@ export const LinkButton: Story = {};export const DisabledLink: Story = {...Default,- args: { href: '#disabled-destination', disabled: true, onClick: fn() },+ args: {+ variant: 'link',+ href: '#disabled-destination',+ disabled: true,+ onClick: fn(),+ },play: async ({ canvasElement, args }) => {const link = within(canvasElement).getByRole('link');await expect(link).toHaveAttribute('aria-disabled', 'true');@@ -193,7 +208,7 @@ export const Catalog: CatalogStory<Story, typeof Button> = {},{name: 'variant',- values: ['solid', 'outline', 'soft', 'ghost'],+ values: ['solid', 'outline', 'soft', 'ghost', 'link'],props: (variant: ButtonVariant) => ({ variant }),},],diff --git a/packages/twenty-ui/src/primitives/input/Button/types/ButtonVariant.ts b/packages/twenty-ui/src/primitives/input/Button/types/ButtonVariant.tsindex 8c10f48d538..ff5d073694a 100644--- a/packages/twenty-ui/src/primitives/input/Button/types/ButtonVariant.ts+++ b/packages/twenty-ui/src/primitives/input/Button/types/ButtonVariant.ts@@ -1 +1 @@-export type ButtonVariant = 'solid' | 'outline' | 'ghost' | 'soft';+export type ButtonVariant = 'solid' | 'outline' | 'ghost' | 'soft' | 'link';diff --git a/packages/twenty-ui/src/primitives/navigation/ClickToActionLink/ClickToActionLink.module.scss b/packages/twenty-ui/src/primitives/navigation/ClickToActionLink/ClickToActionLink.module.scssdeleted file mode 100644index 8da9cc4d81e..00000000000--- a/packages/twenty-ui/src/primitives/navigation/ClickToActionLink/ClickToActionLink.module.scss+++ /dev/null@@ -1,16 +0,0 @@-.root {- align-items: center;- color: var(--t-font-color-light);- display: flex;- font-size: var(--t-font-size-sm);- font-weight: var(--t-font-weight-medium);- gap: var(--t-spacing-1);- padding: 0 var(--t-spacing-1);- text-decoration: none;- white-space: nowrap;-- &:hover {- color: var(--t-font-color-tertiary);- cursor: pointer;- }-}diff --git a/packages/twenty-ui/src/primitives/navigation/ClickToActionLink/ClickToActionLink.module.scss.d.ts b/packages/twenty-ui/src/primitives/navigation/ClickToActionLink/ClickToActionLink.module.scss.d.tsdeleted file mode 100644index 4d6743c3dcd..00000000000--- a/packages/twenty-ui/src/primitives/navigation/ClickToActionLink/ClickToActionLink.module.scss.d.ts+++ /dev/null@@ -1,4 +0,0 @@-declare const classNames: {- readonly root: 'root';-};-export default classNames;diff --git a/packages/twenty-ui/src/primitives/navigation/ClickToActionLink/ClickToActionLink.tsx b/packages/twenty-ui/src/primitives/navigation/ClickToActionLink/ClickToActionLink.tsxdeleted file mode 100644index 18d4637c924..00000000000--- a/packages/twenty-ui/src/primitives/navigation/ClickToActionLink/ClickToActionLink.tsx+++ /dev/null@@ -1,22 +0,0 @@-import { clsx } from 'clsx';-import React from 'react';--import styles from './ClickToActionLink.module.scss';--type ClickToActionLinkProps = React.ComponentProps<'a'> & {- className?: string;-};--export const ClickToActionLink = (props: ClickToActionLinkProps) => {- return (- <a- className={clsx(styles.root, props.className)}- href={props.href}- onClick={props.onClick}- target={props.target}- rel={props.rel}- >- {props.children}- </a>- );-};diff --git a/packages/twenty-ui/src/primitives/navigation/ClickToActionLink/__stories__/ClickToActionLink.stories.tsx b/packages/twenty-ui/src/primitives/navigation/ClickToActionLink/__stories__/ClickToActionLink.stories.tsxdeleted file mode 100644index f8a8bb2568e..00000000000--- a/packages/twenty-ui/src/primitives/navigation/ClickToActionLink/__stories__/ClickToActionLink.stories.tsx+++ /dev/null@@ -1,27 +0,0 @@-import { type Meta, type StoryObj } from '@storybook/react-vite';-import { ClickToActionLink } from '@ui/primitives/navigation/ClickToActionLink/ClickToActionLink';-import { A11Y_DEFER_COLOR_CONTRAST, ComponentDecorator } from '@ui/testing';--const meta: Meta<typeof ClickToActionLink> = {- title: 'UI/Navigation/ClickToActionLink',- component: ClickToActionLink,-};--export default meta;-type Story = StoryObj<typeof ClickToActionLink>;--export const Default: Story = {- parameters: { a11y: A11Y_DEFER_COLOR_CONTRAST },- args: {- children: 'Need to reset your password?',- onClick: () => alert('Action link clicked'),- target: undefined,- rel: undefined,- },- argTypes: {- href: { control: false },- target: { type: 'string' },- rel: { type: 'string' },- },- decorators: [ComponentDecorator],-};diff --git a/packages/twenty-ui/src/primitives/navigation/index.ts b/packages/twenty-ui/src/primitives/navigation/index.tsindex 41974a3f68e..05dcf0a10e4 100644--- a/packages/twenty-ui/src/primitives/navigation/index.ts+++ b/packages/twenty-ui/src/primitives/navigation/index.ts@@ -7,7 +7,6 @@* |___/*/-export { ClickToActionLink } from './ClickToActionLink/ClickToActionLink';export { ListItem } from './ListItem/ListItem';export type { ListItemColor } from './ListItem/types/ListItemColor';export type { ListItemDescriptionPlacement } from './ListItem/types/ListItemDescriptionPlacement';