snaha / diete.design

https://diete.design
MIT License
0 stars 0 forks source link

Loader is always the same color #285

Closed agazso closed 4 months ago

agazso commented 4 months ago

I wanted to use the Loader in a Button to indicate a long running action in the background. The issue is that the Loader is always dark (in light mode) so if I put it on a strong Button it is not really visible.

It would be good if the Loader color could be changed or even better, if it worked similarly to icons that does not need the color to be specified.

The code is something like this:

        <Button variant="strong" onclick={() => createToken()}>
            Create token
            {#if createDisabled}
                <Loader/>
            {:else}
                <ArrowRight/>
            {/if}
        </Button>