inertiajs / inertia

Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers.
https://inertiajs.com
MIT License
6.02k stars 405 forks source link

Fix accessibility warning in Svelte `Link` component #1858

Closed reinink closed 2 months ago

reinink commented 2 months ago

Resolves #1627 Resolves #1635 Resolves #1835

Right now the Svelte adapter is throwing an ARIA warning during build:

Link.svelte:27:0 A11y: <svelte:element> with click, dblclick, mousedown, mousemove, mouseout, mouseover, mouseup handlers must have an ARIA role

While a couple possible solutions have been shared (#1635, #1835), I am pretty sure that this is actually a false positive and a good use case for a svelte-ignore comment, so that's what I've implemented here.

reinink commented 2 months ago

This fix has been released as part of v1.0.16 👍