rsnext/docs
Jasper Moelker 76184ab0ca
docs: fix a11y router examples (#23031)
Non-interactive elements such as a `<span>` should not have event bindings as they are not accessible by everyone.
This fix solves this issue by replacing it with a `<button>` which is suitable for interaction.
Since a button defaults to `type="submit"` the button also explicitly has a `type="button"` to prevent accidental form submits (all examples aim to navigate, not to submit a form).

[More background on this a11y best practice](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/no-static-element-interactions.md)
2021-04-19 19:42:52 +00:00
..
advanced-features Document the need to call App.getInitialProps() from a custom app's getInitialProps (#24002) 2021-04-16 14:54:02 +02:00
api-reference docs: fix a11y router examples (#23031) 2021-04-19 19:42:52 +00:00
api-routes Add use cases for API Routes to documentation. (#22616) 2021-03-01 01:15:14 +00:00
basic-features Update .now.sh to .vercel.app. (#22359) 2021-04-14 09:46:06 -05:00
migrating Update incremental migration doc and add version for new rewrites (#23859) 2021-04-09 18:59:59 +00:00
routing Add note about preloading to routing introduction. (#22656) 2021-03-02 03:17:43 +00:00
authentication.md docs(authentication): rephrase next-iron-session/next-auth (#23199) 2021-03-18 17:04:58 +00:00
deployment.md Update with-docker example and deployment docs. (#23486) 2021-03-28 20:32:09 +00:00
faq.md Update .now.sh to .vercel.app. (#22359) 2021-04-14 09:46:06 -05:00
getting-started.md Remove note about Yarn 2 support. (#21665) 2021-01-29 19:09:17 +00:00
manifest.json Temporarily remove experimental ESLint integration (#23521) 2021-03-30 08:26:35 +00:00
upgrading.md Fix upgrading broken link (#23785) 2021-04-08 10:15:37 +00:00