Make Switcher links accessible
Also switch button and links to keep tabing
This commit is contained in:
@@ -52,19 +52,6 @@
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ul class="switcher__links">
|
|
||||||
{#each switcher_links as { text, url, icon, icon_label }}
|
|
||||||
<li class:is-active={$page.url.pathname === url}>
|
|
||||||
<a href={url} on:click={toggleSwitcher}
|
|
||||||
sveltekit:noscroll sveltekit:prefetch
|
|
||||||
>
|
|
||||||
<Icon class="icon" icon={icon} label={icon_label} />
|
|
||||||
<span>{text}</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{/each}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<button class="switcher__button" title="{!isOpen ? 'Open' : 'Close'} menu" tabindex="0"
|
<button class="switcher__button" title="{!isOpen ? 'Open' : 'Close'} menu" tabindex="0"
|
||||||
on:click={toggleSwitcher}
|
on:click={toggleSwitcher}
|
||||||
>
|
>
|
||||||
@@ -74,4 +61,17 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<ul class="switcher__links">
|
||||||
|
{#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"
|
||||||
|
sveltekit:noscroll sveltekit:prefetch
|
||||||
|
>
|
||||||
|
<Icon class="icon" icon={icon} label={icon_label} />
|
||||||
|
<span>{text}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{/each}
|
||||||
|
</ul>
|
||||||
</aside>
|
</aside>
|
||||||
Reference in New Issue
Block a user