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:
@@ -39,6 +39,5 @@ export const ButtonDefinition = defineComponent<ButtonOwnProps>()({
|
||||
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 { 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 {}
|
||||
|
||||
Reference in New Issue
Block a user