mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-11 21:56:16 +00:00
fix: make entire logo option clickable
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user