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]: Breadcrumb - Multiple "navigation" landmarks with the same parent region #16551

Open
2 tasks done
oartigue opened this issue May 23, 2024 · 0 comments
Open
2 tasks done

Comments

@oartigue
Copy link

Package

@carbon/react, carbon-components

Browser

Chrome, Firefox

Operating System

MacOS, Other

Package version

v11

React version

No response

Automated testing tool and ruleset

IBM Accessibility checker

Assistive technology

No response

Description

IBM accessibility checker detects a violation on the Breadcrumb component:
Multiple "navigation" landmarks with the same parent region are not distinguished from one another because they have the same "Breadcrumb" label.

To fix this problem, we need to add an aria-label property on each BreadcrumbItem component. But this property is possible only on Breadcrumb not its own children (BreadcrumbItem).

WCAG 2.1 Violation

No response

Reproduction/example

See steps to reproduce

Steps to reproduce

  • Create a breadcrumb to generate this:
<div class="bai-breadcrumb">
<nav aria-label="Breadcrumb">
<ol class="bx--breadcrumb">
<li class="bx--breadcrumb-item"><a class="bx--link" href="dashboards">Dashboards</a></li>
<li class="bx--breadcrumb-item"><a class="bx--link" href="#">oa</a></li>
<li class="bx--breadcrumb-item bx--breadcrumb-item--current bai-breadcrumb-last"><a class="bx--link" href="#">d1</a></li>
</ol>
</nav>
</div>
  • Run IBM accessibility checker
  • => get this message:
    Multiple "navigation" landmarks with the same parent region are not distinguished from one another because they have the same "Breadcrumb" label
    Multiple landmarks should have a unique 'aria-labelledby' or 'aria-label' or be nested in a different parent regions

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ⏱ Backlog
Development

No branches or pull requests

3 participants