fix: make entire logo option clickable

This commit is contained in:
afn 2023-03-18 21:38:08 -04:00
parent 4fc376673d
commit 00f09ad727
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
export let unclickable = false;
</script>
<button class={type} class:unclickable on:click style="width: {maxWidth ? '100%' : 'max-content'}">
<button class={type} class:unclickable on:click|stopPropagation style="width: {maxWidth ? '100%' : 'max-content'}">
{#if icon}
<img src={icon} {alt} />
{/if}

View File

@ -89,8 +89,8 @@
<!-- SHUT UP -->
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<div class="option" tabindex="0" class:clicked>
<div class="row" on:click|stopPropagation={handleClick} on:keypress={handleClick}>
<div class="option" on:click={handleClick} on:keypress={handleClick} tabindex="0" class:clicked>
<div class="row">
<!-- Screenreader compatibility does not make sense in this context. -->
<img src={current.optimized_direct_url ?? current.logo_direct_url} alt="" />
</div>