mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-11-01 04:44:16 +01:00
aria check
This commit is contained in:
parent
ea58d89f98
commit
dfa2401eea
@ -18,19 +18,19 @@
|
|||||||
export let icon: keyof typeof map
|
export let icon: keyof typeof map
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div on:click {...$$restProps}>
|
<button on:click {...$$restProps}>
|
||||||
{#if map[icon]}
|
{#if map[icon]}
|
||||||
<svelte:component this={map[icon]} />
|
<svelte:component this={map[icon]} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</button>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
div {
|
button {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
contain: strict;
|
contain: strict;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
}
|
}
|
||||||
div > :global(svg) {
|
button > :global(svg) {
|
||||||
display: block;
|
display: block;
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user