From e44467edf94efbf3aced884f368210315d6ee757 Mon Sep 17 00:00:00 2001 From: s-alves10 Date: Thu, 26 Oct 2023 04:07:04 -0500 Subject: [PATCH 1/2] fix: update style if icon is in button --- src/components/Button/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Button/index.js b/src/components/Button/index.js index dc12a4ded5c..101990c7765 100644 --- a/src/components/Button/index.js +++ b/src/components/Button/index.js @@ -301,6 +301,7 @@ class Button extends Component { this.props.isDisabled && !this.props.danger && !this.props.success ? styles.buttonDisabled : undefined, this.props.shouldRemoveRightBorderRadius ? styles.noRightBorderRadius : undefined, this.props.shouldRemoveLeftBorderRadius ? styles.noLeftBorderRadius : undefined, + (this.props.icon || this.props.shouldShowRightIcon) ? styles.alignItemsStretch : undefined, ...this.props.innerStyles, ]} hoverStyle={[ From 998f8c6348a5fdc5e561fe33893170b92a5b62f0 Mon Sep 17 00:00:00 2001 From: s-alves10 Date: Thu, 26 Oct 2023 05:38:18 -0500 Subject: [PATCH 2/2] fix: prettier --- src/components/Button/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Button/index.js b/src/components/Button/index.js index 101990c7765..26d33b1431b 100644 --- a/src/components/Button/index.js +++ b/src/components/Button/index.js @@ -301,7 +301,7 @@ class Button extends Component { this.props.isDisabled && !this.props.danger && !this.props.success ? styles.buttonDisabled : undefined, this.props.shouldRemoveRightBorderRadius ? styles.noRightBorderRadius : undefined, this.props.shouldRemoveLeftBorderRadius ? styles.noLeftBorderRadius : undefined, - (this.props.icon || this.props.shouldShowRightIcon) ? styles.alignItemsStretch : undefined, + this.props.icon || this.props.shouldShowRightIcon ? styles.alignItemsStretch : undefined, ...this.props.innerStyles, ]} hoverStyle={[