Skip to content

Commit

Permalink
fix(Button): fix maxWidth property in case of using button only with …
Browse files Browse the repository at this point in the history
…icon node (#914)
  • Loading branch information
korvin89 authored Aug 18, 2023
1 parent 8e36280 commit 15dde1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Button/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 15dde1a

Please sign in to comment.