👽 updated to fit api

Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
haraldnilsen 2023-12-21 21:00:15 +01:00
parent 6d831193f9
commit c8590308b0

View file

@ -10,9 +10,9 @@
<div class="flex justify-between w-full">
{#each options as data, index (data)}
<button name={data} on:click={() => handleButtonClick(data)} class="flex flex-col justify-start items-center w-12 text-center">
<button name={data} on:click={() => handleButtonClick(data)} class="flex flex-col justify-start items-center w-12 text-center hover:cursor-pointer">
<div class={`${selected == data && "bg-primary"} h-6 w-6 rounded-full border-2 border-primary hover:bg-primary`}></div>
<label class="text-primary text-sm mt-1" for={data}>{data}</label>
<label class="text-primary text-sm mt-1 hover:cursor-pointer" for={data}>{data}</label>
</button>
{/each}
</div>