From 84090ac6045ee99cb5bcfe262ec6a97f65447697 Mon Sep 17 00:00:00 2001 From: telegine Date: Mon, 13 May 2024 14:19:19 +0300 Subject: [PATCH 1/2] fix(Button): do not shrink button when there is only one icon --- src/components/Button/Button.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Button/Button.scss b/src/components/Button/Button.scss index fbc18536e8..bc65bb5222 100644 --- a/src/components/Button/Button.scss +++ b/src/components/Button/Button.scss @@ -34,6 +34,7 @@ $block: '.#{variables.$ns}button'; color 0.15s linear; transform: scale(1); display: inline-flex; + flex-shrink: 0; justify-content: center; padding: 0 var(--g-button-padding, var(--_--padding)); gap: var(--g-button-icon-offset, var(--_--icon-offset)); From 52889cbd9e642438f5ce95d76a6924098fade3f9 Mon Sep 17 00:00:00 2001 From: telegine Date: Wed, 15 May 2024 23:35:54 +0300 Subject: [PATCH 2/2] fix(Button): do not shrink button when there is only one icon --- src/components/Button/Button.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Button/Button.scss b/src/components/Button/Button.scss index bc65bb5222..5172c7344d 100644 --- a/src/components/Button/Button.scss +++ b/src/components/Button/Button.scss @@ -34,7 +34,6 @@ $block: '.#{variables.$ns}button'; color 0.15s linear; transform: scale(1); display: inline-flex; - flex-shrink: 0; justify-content: center; padding: 0 var(--g-button-padding, var(--_--padding)); gap: var(--g-button-icon-offset, var(--_--icon-offset)); @@ -295,6 +294,10 @@ $block: '.#{variables.$ns}button'; &_side_end { order: 1; } + + &:only-child { + margin: 0; + } } &:has(#{$block}__icon:only-child) {