ItalyPaleAle / svelte-spa-router

Router for SPAs using Svelte 3
MIT License
1.56k stars 106 forks source link

a11y warnings #292

Closed laoshaw closed 1 year ago

laoshaw commented 1 year ago

when use <a user:link{{href:"/wild/card", disabled:false}}>Wildcard route</a> my editor complains "a11y-missing-attribute": A11y: element should have an href attribute. This is not a bug just wondering what's the best approach to silence the warning in this case.

ItalyPaleAle commented 1 year ago

Use another tag (for example a span) with role=link

Or just disable the warning (but I would recommend the other option)

Docs: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/link_role