From cbbda490f4952cf06c1593ea6953e265d932caca Mon Sep 17 00:00:00 2001 From: Matheus Henrique Date: Mon, 2 Oct 2023 16:33:29 -0300 Subject: [PATCH] refactor(button): set defaultProps disabled as undefined --- packages/yoga/src/Button/web/Button.jsx | 4 ++-- packages/yoga/src/Button/web/Icon.jsx | 4 ++-- packages/yoga/src/Button/web/Link.jsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/yoga/src/Button/web/Button.jsx b/packages/yoga/src/Button/web/Button.jsx index ca96335691..c1913602b4 100644 --- a/packages/yoga/src/Button/web/Button.jsx +++ b/packages/yoga/src/Button/web/Button.jsx @@ -31,7 +31,7 @@ const Button = forwardRef( {}, diff --git a/packages/yoga/src/Button/web/Icon.jsx b/packages/yoga/src/Button/web/Icon.jsx index fa20a9aec9..b42e6ebab4 100644 --- a/packages/yoga/src/Button/web/Icon.jsx +++ b/packages/yoga/src/Button/web/Icon.jsx @@ -50,7 +50,7 @@ const ButtonIcon = forwardRef( ref={ref} small={small} disabled={disabled} - aria-disabled={disabled || undefined} + aria-disabled={disabled} aria-label={ariaLabel} > ( - + ); ButtonLink.propTypes = { @@ -81,7 +81,7 @@ ButtonLink.propTypes = { }; ButtonLink.defaultProps = { - disabled: false, + disabled: undefined, secondary: false, href: undefined, icon: undefined,