<RouteAnnouncer>
aria-live
value can be selected.
#34170
Unanswered
yamanoku
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I gave a presentation at JSConfJP titled "The past and future of accessible front-end development".
At that time, I learned about GatsbyJS's RouteAnnouncer.
When I saw the internal implementation, I thought that
aria-live
is currently set toassertive
.https://github.com/gatsbyjs/gatsby/blob/2.24/packages/gatsby/cache-dir/route-announcer-props.js#L16
It seems to be for the following reasons, according to past blogs.
However, the WAI-ARIA 1.1 description says the following
There may be some screen reader users who feel annoyed by the fact that GatsbyJS notifications are currently assertive.
So, my suggestion is that if there is a setting, why not allow the user to select the value of
aria-live
?A hint is the vue-annoucer setting in Vue.js.
https://github.com/vue-a11y/vue-announcer/tree/next#custom-announcer-object-meta
Whether the default value should be one or the other is a matter of debate, but being able to choose will increase the chances of making it accessible 👍🏼
Beta Was this translation helpful? Give feedback.
All reactions