Skip to content

Commit

Permalink
fix(Button): do not shrink button when there is only one icon
Browse files Browse the repository at this point in the history
  • Loading branch information
teleginzhenya committed May 20, 2024
1 parent 84090ac commit 52889cb
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 @@ -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));
Expand Down Expand Up @@ -295,6 +294,10 @@ $block: '.#{variables.$ns}button';
&_side_end {
order: 1;
}

&:only-child {
margin: 0;
}
}

&:has(#{$block}__icon:only-child) {
Expand Down

0 comments on commit 52889cb

Please sign in to comment.