1
0
Fork 0
mirror of synced 2024-07-01 12:30:41 +12:00

add text slot conditional to button

This commit is contained in:
Keviin Åberg Kultalahti 2021-04-09 11:10:37 +02:00
parent e408fac0e5
commit 0e52a1e12f
2 changed files with 4 additions and 2 deletions

View file

@ -39,7 +39,9 @@
<use xlink:href="#spectrum-icon-18-{icon}" />
</svg>
{/if}
<span class="spectrum-Button-label"><slot /></span>
{#if $$slots}
<span class="spectrum-Button-label"><slot /></span>
{/if}
</button>
{/if}

View file

@ -197,7 +197,7 @@
flex-direction: row;
justify-content: flex-start;
align-items: center;
gap: var(--spacing-l);
gap: var(--spacing-s);
}
.popovers :global(button) {
font-weight: 500;