Skip to content

Redundant 'navigation' text in aria-label for Docs pages navigation #8834

@wwu-stephanie

Description

@wwu-stephanie

Have you read the Contributing Guidelines on issues?

Prerequisites

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

  1. Start JAWS
  2. Navigate to https://docusaurus.io/docs/next
  3. Tab to the "Docs pages navigation navigation region"

Alternatively:

  1. Navigate to https://docusaurus.io/docs/next
  2. Scroll to bottom of page
  3. Inspect "Next Getting Started" page element
  4. 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

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executiondomain: a11yRelated 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions