diff --git a/src/button/Button.tsx b/src/button/Button.tsx index c845b139..dc7641c6 100644 --- a/src/button/Button.tsx +++ b/src/button/Button.tsx @@ -64,10 +64,6 @@ type ButtonProps = React.HTMLAttributes & { * allow the user to define the buttons name */ name?: string; - /** - * allow the user to define the button value - */ - value?: string | number; }; export const Button = ({ @@ -85,7 +81,6 @@ export const Button = ({ customLoadingPostImage, formAction, name, - value, ...props }: ButtonProps) => { const [disable, setDisable] = React.useState(disabled); @@ -135,7 +130,6 @@ export const Button = ({ aria-label={ariaLabel} formAction={formAction} name={name} - value={value} {...props} > {prefix} diff --git a/src/button/__tests__/Button.test.tsx b/src/button/__tests__/Button.test.tsx index b454ab5c..cde3f06c 100644 --- a/src/button/__tests__/Button.test.tsx +++ b/src/button/__tests__/Button.test.tsx @@ -216,11 +216,4 @@ describe('Button', () => { const button: any = screen.getByRole('button'); expect(button.getAttribute('name')).toBe('submit'); }); - - it('should accept value as attribute', () => { - const handleClick = jest.fn(); - render(