aria-current label for current page breadcrumb

Created on 24 December 2022, over 2 years ago
Updated 11 April 2025, 8 days ago

Problem/Motivation

The breadcrumb link for the current page should have the aria-current="page" attribute. See this W3 example of an accessible breadcrumb component: https://www.w3.org/WAI/ARIA/apg/example-index/breadcrumb/index.html.

Proposed resolution

  1. Set the ARIA attribute on the URL object of the current page Link in MenuBasedBreadcrumbBuilder.
  2. Override the system breadcrumb twig template to use the links variable, which contains the URL object, and apply the URL attributes to the rendered link.
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States jayhuskins

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024