mirror of
https://github.com/revanced/revanced-website.git
synced 2025-05-01 23:24:30 +02:00
fix: make entire logo option clickable
This commit is contained in:
parent
4fc376673d
commit
00f09ad727
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user