Skip to content

Commit

Permalink
fix(Button): do not shrink button when there is only one icon (#1577)
Browse files Browse the repository at this point in the history
  • Loading branch information
teleginzhenya authored May 20, 2024
1 parent d93f5b4 commit 98fd95f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Button/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -294,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 98fd95f

Please sign in to comment.