Add additional configuration options for client-side routing announcements #31317
Unanswered
madalynrose
asked this question in
Ideas / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Add additional configuration options for the
RouteAnnouncer
created in #19290 by adding a<RouteAnnouncement>
Gatsby component.Basic example
or
Motivation
Allowing developers to specify what exactly should be announced instead of inferring that information based on the
h1
ortitle
of a page will ensure route change announcements are accurate. This could be achieved by creating a GatsbyRouteAnnouncement
component that can wrap relevant content, as proposed in this comment. This component could also have error checking to make sure announcements aren't too long and have an option for being visually hidden, since they are intended to be consumed by assistive technologies.Beta Was this translation helpful? Give feedback.
All reactions