Breadcrumb nav landmark has no accessible name - a11y

Open Beginner friendly
#480 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
html, javascript

Research direction

Find the breadcrumb markup on content pages and inspect the wrapping <nav> element; the issue says its inner <ol> already has an accessible label. Add an accessible name to the navigation landmark, then check a page or event with breadcrumbs using screen reader landmark navigation to confirm it is distinguishable from the main navigation.

Written by the indexing model from the issue text.

Description

01 type: bug 30 needs: triage

Description

On content pages the breadcrumb is wrapped in a <nav> element with no aria-label. Only the inner <ol> has aria-label="Breadcrumbs", but that labels the list, not the landmark itself.

Since the page already has a main navigation <nav> landmark, having a second unlabeled navigation landmark makes them indistinguishable when browsing by landmarks (screen reader users get two "navigation" regions with no way to tell them apart without entering each one).

Steps to reproduce

  1. Open any content page with a breadcrumb, that have the breadcrumb (page or event, for example)
  2. Inspect the breadcrumb's wrapping <nav> element: no aria-label/aria-labelledby
  3. Compare with the main navigation <nav>, also a navigation landmark

Expected behavior

The breadcrumb <nav> should carry its own accessible name, e.g. aria-label="Breadcrumb", so it appears distinctly in a screen reader's landmark list.

Dominant language
JavaScript
Stars
10
Forks
9
Avg merge
4d 7h
Merged PRs (30d)
54

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plone/aurora

All issues in plone/aurora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.