Skip to content

Commit

Permalink
fix(Button): add negative margin to support bigger icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
teleginzhenya committed Mar 26, 2024
1 parent b303f62 commit b269fd5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/Button/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,16 @@ $block: '.#{variables.$ns}button';
&__icon {
display: inline-block;
position: relative;
width: var(--g-button-height, var(--_--icon-size));
margin: 0
calc(
(
var(--g-button-height, var(--_--height)) - var(
--g-button-icon-size,
var(--_--icon-size)
)
) / 2 * -1
);
width: var(--g-button-height, var(--_--height));
height: var(--g-button-height, var(--_--height));
pointer-events: none;

Expand Down

0 comments on commit b269fd5

Please sign in to comment.