https://github.com/oaf-project/oaf-routing
Accessible SPA routing.
https://github.com/oaf-project/oaf-routing
accessibility single-page-applications typescript
Last synced: 7 months ago
JSON representation
Accessible SPA routing.
- Host: GitHub
- URL: https://github.com/oaf-project/oaf-routing
- Owner: oaf-project
- License: mit
- Created: 2019-04-22T02:39:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-08T09:37:56.000Z (11 months ago)
- Last Synced: 2024-11-11T19:09:25.393Z (8 months ago)
- Topics: accessibility, single-page-applications, typescript
- Language: TypeScript
- Homepage: https://oaf-project.github.io/oaf-routing/
- Size: 1.49 MB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/oaf-project/oaf-routing/actions/workflows/main.yml)
[](https://github.com/plantain-00/type-coverage)
[](https://codecov.io/gh/oaf-project/oaf-routing)
[](https://dashboard.stryker-mutator.io/reports/github.com/oaf-project/oaf-routing/master)
[](https://snyk.io/test/github/oaf-project/oaf-routing?targetFile=package.json)
[](https://www.npmjs.com/package/oaf-routing)# Oaf Routing
Common code for building accessible SPA router wrappers.
## Compatibility
For IE support you will need to polyfill [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#Browser_compatibility). Using [core-js](https://github.com/zloirock/core-js):
```javascript
import "core-js/es6/map";
```If you use the `smoothScroll` option of `RouterSettings`, you may want to use iamdunstan's [smoothscroll polyfill](https://github.com/iamdustan/smoothscroll). See [MDN's `scrollIntoView` browser compatibility](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView#Browser_compatibility).
## Libraries that use Oaf Routing
* [Oaf React Router](https://github.com/oaf-project/oaf-react-router) for [React Router](https://github.com/ReactTraining/react-router).
* [Oaf Next.js Router](https://github.com/oaf-project/oaf-next.js-router) for [Next.js](https://github.com/zeit/next.js/).
* [Oaf Navi](https://github.com/oaf-project/oaf-navi) for [Navi](https://github.com/frontarm/navi).
* [Oaf Vue Router](https://github.com/oaf-project/oaf-vue-router) for [Vue Router](https://router.vuejs.org/).
* [Oaf Angular Router](https://github.com/oaf-project/oaf-angular-router) for [Angular's Router](https://angular.io/guide/router).
* [Oaf Svelte Routing](https://github.com/oaf-project/oaf-svelte-routing) for [Svelte Routing](https://github.com/EmilTholin/svelte-routing).
* [Oaf Ember Routing](https://github.com/oaf-project/oaf-ember-routing) for [Ember](https://guides.emberjs.com/release/routing/).
* [Your accessible SPA router wrapper here?](https://github.com/oaf-project/oaf-routing/labels/new-impl)## See also
* https://www.gatsbyjs.org/blog/2019-07-11-user-testing-accessible-client-routing/
* https://www.gatsbyjs.com/blog/2020-02-10-accessible-client-side-routing-improvements/
* [Single Page Apps routers are broken](https://medium.com/@robdel12/single-page-apps-routers-are-broken-255daa310cf)
* [Accessible page titles in a Single Page App](https://hiddedevries.nl/en/blog/2018-07-19-accessible-page-titles-in-a-single-page-app)
* [Single page applications, Angular.js and accessibility](http://simplyaccessible.com/article/spangular-accessibility)
* [Creating accessible React apps](https://simplyaccessible.com/article/react-a11y/)
* [Accessible React Router navigation with ARIA Live Regions and Redux](https://almerosteyn.com/2017/03/accessible-react-navigation)
* [Oaf Side Effects](https://github.com/oaf-project/oaf-side-effects)
* https://kit.svelte.dev/docs/accessibility