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 <johanopersson@gmail.com>
This commit is contained in:
Johan Persson
2026-03-03 12:52:00 +01:00
parent 00bf7c7e42
commit 6edae0e959
2 changed files with 2 additions and 4 deletions
@@ -36,6 +36,5 @@ export const ButtonLinkDefinition = defineComponent<ButtonLinkOwnProps>()({
iconEnd: {},
children: {},
className: {},
style: {},
},
});
@@ -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<RALinkProps, 'children' | 'className' | 'style'>,
extends Omit<RALinkProps, keyof ButtonLinkOwnProps>,
ButtonLinkOwnProps {}