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:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user