You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#19290 seems to have introduced an axe a11y violation, citing the new <div id="gatsby-announcer" ... /> element as not being contained within a landmark (the region rule). This only occurs after navigation has taken place and the element contains text. It does not trigger on initial page load, as there is no inner text yet.
Steps to reproduce
Navigate to a new page
Run axe accessibility tests (Chrome Devtools, cypress-axe, whatever)
You can check the GitHub Actions in the reproduction project to see a simple Cypress test fail after navigation has occurred, but running it locally will give you a lot more information (see screenshot below).
Expected result
No accessibility violations.
Actual result
Axe believes the region rule has been violated after navigation has occurred.
Environment
Run gatsby info --clipboard in your project directory and paste the output here.
To add some additional context here, too: this really shouldn't fail an accessibility audit for landmark roles, as the announcer element isn't something a user would interact with directly. Adding a landmark specifically for the announcer element wouldn't be recommended for the same reason; it could end up being empty, and therefore not be useful in landmark navigation. axe-core and other tools really should disregard these types of live regions, or provide a way to mark them as inapplicable (that could be done with the axe-core Exclude API, but not in the main Chrome extension).
Description
#19290 seems to have introduced an axe a11y violation, citing the new
<div id="gatsby-announcer" ... />
element as not being contained within a landmark (theregion
rule). This only occurs after navigation has taken place and the element contains text. It does not trigger on initial page load, as there is no inner text yet.Steps to reproduce
Reproduction: https://github.com/wKovacs64/gatsby-announcer-region-test
You can check the GitHub Actions in the reproduction project to see a simple Cypress test fail after navigation has occurred, but running it locally will give you a lot more information (see screenshot below).
Expected result
No accessibility violations.
Actual result
Axe believes the
region
rule has been violated after navigation has occurred.Environment
Run
gatsby info --clipboard
in your project directory and paste the output here.The text was updated successfully, but these errors were encountered: