rsnext/test/e2e/app-dir/app-a11y/app
Shu Ding 9b40be8e44
Implement route announcer for app dir (#47018)
This PR implements the route announcer for app directory. It almost uses
the same logic as the route announcer inside pages, with one notable
difference that the inner content node is now inside a shadow root. This
makes sure that it does as little impact as possible, to the
application. This is important as we no longer have the `__next`
wrapper.

Another thing worth mentioning is that the announced title is a global
singleton of the website. It shouldn't be affected by the concept of
layouts, but should be triggered when the router state (not just URL)
changes.

Closes NEXT-208.

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2023-03-13 13:09:22 -07:00
..
noop-layout Implement route announcer for app dir (#47018) 2023-03-13 13:09:22 -07:00
page-with-h1 Implement route announcer for app dir (#47018) 2023-03-13 13:09:22 -07:00
page-with-title Implement route announcer for app dir (#47018) 2023-03-13 13:09:22 -07:00
layout.js Implement route announcer for app dir (#47018) 2023-03-13 13:09:22 -07:00