From 15dde1abaa497ad270626e3702e684c7be921a89 Mon Sep 17 00:00:00 2001 From: "Mr.Dr.Professor Patrick" Date: Fri, 18 Aug 2023 12:45:47 +0200 Subject: [PATCH] fix(Button): fix maxWidth property in case of using button only with icon node (#914) --- 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 05c373b149..619d7c8c4c 100644 --- a/src/components/Button/Button.scss +++ b/src/components/Button/Button.scss @@ -445,7 +445,10 @@ $iconWidth: 16px; &:has(#{$block}__icon:only-child) { --yc-button-padding: 0; - width: var(--yc-button-height); + + &:not(#{$block}_width_max) { + width: var(--yc-button-height); + } } &_disabled {