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;
|
export let unclickable = false;
|
||||||
</script>
|
</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}
|
{#if icon}
|
||||||
<img src={icon} {alt} />
|
<img src={icon} {alt} />
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -89,8 +89,8 @@
|
|||||||
|
|
||||||
<!-- SHUT UP -->
|
<!-- SHUT UP -->
|
||||||
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
|
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
|
||||||
<div class="option" tabindex="0" class:clicked>
|
<div class="option" on:click={handleClick} on:keypress={handleClick} tabindex="0" class:clicked>
|
||||||
<div class="row" on:click|stopPropagation={handleClick} on:keypress={handleClick}>
|
<div class="row">
|
||||||
<!-- Screenreader compatibility does not make sense in this context. -->
|
<!-- Screenreader compatibility does not make sense in this context. -->
|
||||||
<img src={current.optimized_direct_url ?? current.logo_direct_url} alt="" />
|
<img src={current.optimized_direct_url ?? current.logo_direct_url} alt="" />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user