Move data-sveltekit-* attributes to parent level when possible
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -69,7 +69,6 @@
|
||||
<a href="/{location.country.slug}/{location.slug}"
|
||||
on:mousemove={handleMouseMove}
|
||||
on:mouseleave={handleMouseLeave}
|
||||
data-sveltekit-noscroll
|
||||
tabindex="0"
|
||||
>
|
||||
<Image
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user