diff --git a/src/components/Link/Link.module.css b/src/components/Link/Link.module.css index 24b72512c..c27530862 100644 --- a/src/components/Link/Link.module.css +++ b/src/components/Link/Link.module.css @@ -525,11 +525,3 @@ button:where(.link--link) { padding: 0 var(--eds-size-2); } -/** - * Full-width link style - * A block link that fills 100% of the width of its container - * @deprecated ? - */ - .link--full-width { - width: 100%; -} diff --git a/src/components/Link/Link.stories.tsx b/src/components/Link/Link.stories.tsx index a2725e76e..d57a20d51 100644 --- a/src/components/Link/Link.stories.tsx +++ b/src/components/Link/Link.stories.tsx @@ -14,7 +14,6 @@ export default { children: 'Link', variant: 'link', status: 'brand', - fullWidth: false, size: 'lg', href: 'https://go.czi.team/eds', // stop link from navigating to another page so we can click the link for testing @@ -38,12 +37,6 @@ export default { disable: true, }, }, - fullWidth: { - control: 'boolean', - table: { - disable: true, - }, - }, onClick: { table: { disable: true, diff --git a/src/components/Link/Link.tsx b/src/components/Link/Link.tsx index 20e394f5d..b8629ee47 100644 --- a/src/components/Link/Link.tsx +++ b/src/components/Link/Link.tsx @@ -15,17 +15,9 @@ export type LinkProps = LinkHTMLElementProps & { * The link contents or label. */ children: ReactNode; - /** - * Toggles link that fills the full width of its container - * @deprecated - */ - fullWidth?: boolean; 'data-testid'?: string; /** * Link size inherits from the surrounding text. - * - * **Deprecated**. This will be removed in the next major version. - * @deprecated */ size?: Extract; } & VariantStatus; @@ -48,7 +40,6 @@ export const Link = forwardRef( variant = 'link', status = 'brand', size = 'lg', - fullWidth, ...rest }, ref, @@ -73,8 +64,6 @@ export const Link = forwardRef( status === 'success' && styles['link--success'], status === 'warning' && styles['link--warning'], status === 'error' && styles['link--error'], - // Other options - fullWidth && styles['link--full-width'], className, );