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

Fixes #1476
This commit is contained in:
metonym 2022-09-02 08:36:39 -07:00 committed by GitHub
commit 7c1ca3fa74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>