Redundant 'navigation' text in aria-label for Docs pages navigation #8834
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
domain: a11y
Related to accessibility concerns of the default theme
good first issue
If you are just getting started with Docusaurus, this issue should be a good place to begin.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.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
Alternatively:
<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
Self-service
The text was updated successfully, but these errors were encountered: