From 1c49234888595ade1e5ca1621f0568c94e6b84c0 Mon Sep 17 00:00:00 2001 From: Chirag Chandrakant Salian Date: Thu, 26 Oct 2023 10:59:08 -0700 Subject: [PATCH] Merge pull request #30417 from s-alves10/fix/issue-30400 fix: update style if icon is in button (cherry picked from commit 020ba402f5bc3cfc3b0c1f3a15c73fb867067860) --- 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 dc12a4ded5c2..26d33b1431b8 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={[