preact-cli icon indicating copy to clipboard operation
preact-cli copied to clipboard

Move focus to router base on route change

Open developit opened this issue 5 years ago • 0 comments
trafficstars

Do you want to request a feature or report a bug?

Feature

What is the current behaviour?

No focus management for a11y by default.

What is the expected behaviour?

When navigating on the client, focus should be moved to the root of changed content (Router.base) to cause screen readers to announce the change.

If this is a feature request, what is motivation or use case for changing the behaviour?

https://medium.com/@robdel12/single-page-apps-routers-are-broken-255daa310cf

https://twitter.com/robdel12/status/1258727047775600640

developit avatar May 08 '20 12:05 developit