Move data-sveltekit-* attributes to parent level when possible

This commit is contained in:
2022-08-31 09:43:52 +02:00
parent 3618414aa0
commit 1de3c717b2
15 changed files with 121 additions and 125 deletions

View File

@@ -40,7 +40,7 @@
</div>
<div class="house__photo grid" class:not-landscape={ratio < 1.475}>
<a href={url} data-sveltekit-noscroll tabindex="0">
<a href={url} tabindex="0">
<figure class="house__image shadow-photo">
<Image
class="photo"

View File

@@ -69,7 +69,6 @@
<a href="/{location.country.slug}/{location.slug}"
on:mousemove={handleMouseMove}
on:mouseleave={handleMouseLeave}
data-sveltekit-noscroll
tabindex="0"
>
<Image

View File

@@ -60,12 +60,10 @@
</span>
</button>
<ul class="switcher__links">
<ul class="switcher__links" data-sveltekit-noscroll data-sveltekit-prefetch>
{#each switcher_links as { text, url, icon, icon_label }}
<li class:is-active={$page.url.pathname === url}>
<a href={url} on:click={toggleSwitcher} tabindex="0"
data-sveltekit-noscroll data-sveltekit-prefetch
>
<a href={url} on:click={toggleSwitcher} tabindex="0">
<Icon class="icon" icon={icon} label={icon_label} />
<span>{text}</span>
</a>