From 6edae0e9596d3989c59b81a8bdda0b645c6286f8 Mon Sep 17 00:00:00 2001 From: Johan Persson Date: Tue, 3 Mar 2026 12:52:00 +0100 Subject: [PATCH] fix(ui): remove unused style prop from ButtonLinkOwnProps The style prop was defined in ButtonLinkOwnProps but never destructured or applied in the component, causing it to be silently dropped. Removing it lets style flow through to the underlying RAC Link via restProps instead. Signed-off-by: Johan Persson --- packages/ui/src/components/ButtonLink/definition.ts | 1 - packages/ui/src/components/ButtonLink/types.ts | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/ui/src/components/ButtonLink/definition.ts b/packages/ui/src/components/ButtonLink/definition.ts index c86cb026b5..ea271a966e 100644 --- a/packages/ui/src/components/ButtonLink/definition.ts +++ b/packages/ui/src/components/ButtonLink/definition.ts @@ -36,6 +36,5 @@ export const ButtonLinkDefinition = defineComponent()({ iconEnd: {}, children: {}, className: {}, - style: {}, }, }); diff --git a/packages/ui/src/components/ButtonLink/types.ts b/packages/ui/src/components/ButtonLink/types.ts index 0f01c3cf40..f2753eafe5 100644 --- a/packages/ui/src/components/ButtonLink/types.ts +++ b/packages/ui/src/components/ButtonLink/types.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { ReactElement, ReactNode, CSSProperties } from 'react'; +import type { ReactElement, ReactNode } from 'react'; import type { LinkProps as RALinkProps } from 'react-aria-components'; import type { Responsive } from '../../types'; @@ -26,7 +26,6 @@ export type ButtonLinkOwnProps = { iconEnd?: ReactElement; children?: ReactNode; className?: string; - style?: CSSProperties; }; /** @@ -35,5 +34,5 @@ export type ButtonLinkOwnProps = { * @public */ export interface ButtonLinkProps - extends Omit, + extends Omit, ButtonLinkOwnProps {}