diff --git a/components/button/button.tsx b/components/button/button.tsx index 868b60186e..4ec49535f3 100644 --- a/components/button/button.tsx +++ b/components/button/button.tsx @@ -237,10 +237,13 @@ const InternalButton: React.ForwardRefRenderFunction< button?.className, ); - const fullStyle = { ...button?.style, ...customStyle }; + const fullStyle: React.CSSProperties = { ...button?.style, ...customStyle }; const iconClasses = classNames(customClassNames?.icon, button?.classNames?.icon); - const iconStyle = { ...(styles?.icon || {}), ...(button?.styles?.icon || {}) }; + const iconStyle: React.CSSProperties = { + ...(styles?.icon || {}), + ...(button?.styles?.icon || {}), + }; const iconNode = icon && !innerLoading ? (