fix(ui): remove unused style prop from ButtonIconOwnProps

The style prop was defined in ButtonIconOwnProps 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:45:36 +01:00
parent 8d40a035dc
commit bd671414bb
2 changed files with 2 additions and 4 deletions
@@ -36,6 +36,5 @@ export const ButtonIconDefinition = defineComponent<ButtonIconOwnProps>()({
loading: { dataAttribute: true },
icon: {},
className: {},
style: {},
},
});
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import type { ReactElement, CSSProperties } from 'react';
import type { ReactElement } from 'react';
import type { ButtonProps as RAButtonProps } from 'react-aria-components';
import type { Responsive } from '../../types';
@@ -25,7 +25,6 @@ export type ButtonIconOwnProps = {
icon?: ReactElement;
loading?: boolean;
className?: string;
style?: CSSProperties;
};
/**
@@ -34,5 +33,5 @@ export type ButtonIconOwnProps = {
* @public
*/
export interface ButtonIconProps
extends Omit<RAButtonProps, 'children' | 'className' | 'style'>,
extends Omit<RAButtonProps, keyof ButtonIconOwnProps>,
ButtonIconOwnProps {}