fix Menu component
This commit is contained in:
parent
f690adc552
commit
b9f5868fb3
1 changed files with 6 additions and 8 deletions
|
@ -4,12 +4,10 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<li on:click|preventDefault class="spectrum-Menu-item" class:is-disabled={disabled} role="menuitem" tabindex="0">
|
<li on:click|preventDefault class="spectrum-Menu-item" class:is-disabled={disabled} role="menuitem" tabindex="0">
|
||||||
<span class="spectrum-Menu-itemLabel">
|
|
||||||
{#if icon}
|
{#if icon}
|
||||||
<svg class="spectrum-Icon spectrum-Icon--sizeM spectrum-Menu-itemIcon" focusable="false" aria-hidden="true" aria-label={icon}>
|
<svg class="spectrum-Icon spectrum-Icon--sizeM spectrum-Menu-itemIcon" focusable="false" aria-hidden="true" aria-label={icon}>
|
||||||
<use xlink:href="#spectrum-icon-18-{icon}"></use>
|
<use xlink:href="#spectrum-icon-18-{icon}"></use>
|
||||||
</svg>
|
</svg>
|
||||||
{/if}
|
{/if}
|
||||||
<span class="spectrum-Menu-itemLabel"><slot /></span>
|
<span class="spectrum-Menu-itemLabel"><slot /></span>
|
||||||
</span>
|
|
||||||
</li>
|
</li>
|
Loading…
Reference in a new issue