Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[A11Y] WCAG 3.2.3 Consistent navigation: Breadcrumbs don't show on all pages #396

Open
jeff-horton-ho-sas opened this issue Mar 18, 2024 · 0 comments

Comments

@jeff-horton-ho-sas
Copy link
Contributor

jeff-horton-ho-sas commented Mar 18, 2024

Describe the accessibility issue
To meet WCAG 3.2.3 Consistent navigation - breadcrumbs don't show on pages excluded from 11ty collections

To Reproduce
Steps to reproduce the behavior:

  1. Go to any of
  2. The page does not show breadcrumbs

Expected behavior
For most of these pages a breadcrumb to the home page should show, for the tags it should show Home > Tags

Screenshots
Expected (example is a standard)
Screenshot 2024-03-18 at 13 15 55
Actual (e.g a tag page)
Screenshot 2024-03-18 at 13 16 04

Additional context
This looks to be due to the automated navigation via the eleventy-navigation plugin relying on the page being in the all documents collection to find it.

  • Now that we have specific collections for each of principles, standards, and patterns we may be able to remove excludeFromEleventyCollections: true for these pages and it just works. If not add configutation using explicit setting of eleventyNavigation.key and .parent won't error due to the page not being in a collection.
  • Alternatively we need to be able to provide manual breadcrumbs for a page via frontmatter, and add this for all pages excluded from collections.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant