fix(button): avoid left margin style for icon-only buttons

Fixes #1476
This commit is contained in:
Eric Liu 2022-09-02 08:33:25 -07:00
commit 6da3522864

View file

@ -175,7 +175,7 @@
<slot /><svelte:component
this="{icon}"
aria-hidden="true"
class="bx--btn__icon"
class="{hasIconOnly ? '' : 'bx--btn__icon'}"
aria-label="{iconDescription}"
/>
</button>