rework ClearButton

This commit is contained in:
Keviin Åberg Kultalahti 2021-04-27 16:23:42 +02:00
parent 39f89d0946
commit b55a653ab2
1 changed files with 16 additions and 7 deletions

View File

@ -1,10 +1,19 @@
<script>
export let s = false;
export let disabled;
export let small = false
export let disabled
</script>
<button on:click class="spectrum-ClearButton" class:spectrum-ClearButton--small={s} {disabled}>
<svg class="spectrum-Icon spectrum-UIIcon-Cross75" focusable="false" aria-hidden="true">
<use xlink:href="#spectrum-css-icon-Cross75" />
</svg>
</button>
<button
on:click
class="spectrum-ClearButton"
class:spectrum-ClearButton--small={small}
{disabled}
>
<svg
class="spectrum-Icon spectrum-UIIcon-Cross75"
focusable="false"
aria-hidden="true"
>
<use xlink:href="#spectrum-css-icon-Cross75" />
</svg>
</button>