fix(ui): remove unused style prop from ButtonOwnProps

The style prop was defined in ButtonOwnProps but never
destructured or applied in the component, causing it to be
silently dropped. Removing it lets style flow through to the
underlying RAC Button via restProps instead.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
Johan Persson
2026-03-03 12:49:32 +01:00
parent bd671414bb
commit 00bf7c7e42
2 changed files with 2 additions and 4 deletions
@@ -39,6 +39,5 @@ export const ButtonDefinition = defineComponent<ButtonOwnProps>()({
iconEnd: {},
children: {},
className: {},
style: {},
},
});
+2 -3
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import type { ReactElement, ReactNode, CSSProperties } from 'react';
import type { ReactElement, ReactNode } from 'react';
import type { ButtonProps as RAButtonProps } from 'react-aria-components';
import type { Responsive } from '../../types';
@@ -28,7 +28,6 @@ export type ButtonOwnProps = {
loading?: boolean;
children?: ReactNode;
className?: string;
style?: CSSProperties;
};
/**
@@ -37,5 +36,5 @@ export type ButtonOwnProps = {
* @public
*/
export interface ButtonProps
extends Omit<RAButtonProps, 'children' | 'className' | 'style'>,
extends Omit<RAButtonProps, keyof ButtonOwnProps>,
ButtonOwnProps {}