-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: a11yRelated to accessibility concerns of the default themeRelated to accessibility concerns of the default themegood first issueIf you are just getting started with Docusaurus, this issue should be a good place to begin.If you are just getting started with Docusaurus, this issue should be a good place to begin.
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
Description
On the pagination nav, the aria-label attribute is set as "Docs pages navigation." The word navigation is redundant, since it appears inside a <nav> element. This results in it being read out loud like "Docs pages navigation navigation region" or something similar.
Just for context: other navigation elements on the page seem to take this into account already, for example the "Pattern navigation" aria-label is just "Pattern"
Reproducible demo
No response
Steps to reproduce
- Start JAWS
- Navigate to https://docusaurus.io/docs/next
- Tab to the "Docs pages navigation navigation region"
Alternatively:
- Navigate to https://docusaurus.io/docs/next
- Scroll to bottom of page
- Inspect "Next Getting Started" page element
- See aria-label on
<nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages navigation">
Expected behavior
The region should announce as "Docs pages navigation region"
Actual behavior
"Docs pages navigation navigation region" (e.g. navigation is repeated)
Your environment
- Public source code: https://github.com/facebook/docusaurus
- Public site URL: https://docusaurus.io/
- Docusaurus version used: 2.4.0
- Environment name and version: Chrome 111 and JAWS
Self-service
- I'd be willing to fix this bug myself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: a11yRelated to accessibility concerns of the default themeRelated to accessibility concerns of the default themegood first issueIf you are just getting started with Docusaurus, this issue should be a good place to begin.If you are just getting started with Docusaurus, this issue should be a good place to begin.