Skip to content

sap.m.Breadcrumbs current location renders as focusable <span> without a role, failing WCAG 4.1.2 #4429

Description

@boydlaw80-byte

What is the issue and how can we reproduce it?

sap.m.Breadcrumbs renders the currentLocationText property as a focusable without a role attribute. Accessibility scanners (e.g. Axe, WAVE) flag this as a violation of WCAG 4.1.2 (Name, Role, Value) since any focusable element must have a defined role so screen readers can correctly announce it.

Steps to reproduce:

Add a sap.m.Breadcrumbs control with currentLocationText set
Open the page in a browser
Inspect the DOM — the current location renders as with no role
Run an accessibility scan (Axe or WAVE) — reports "Element has no role" or "Focusable element has no role"
Expected: The current location element includes an explicit role (e.g. role="link" consistent with the other breadcrumb items, or at minimum role="text" / role="none" if it is intentionally non-interactive)

Actual: is rendered without any role attribute

Suggested Fix:
Add role="link" to the current location span to be consistent with other breadcrumb items, or expose a way for developers to control this.

Which OpenUI5 version is your project targeting?

Latest (no pinned version, loaded from ui5.sap.com CDN)

Is the issue device- or browser-specific?

Not device- or browser-specific, reproducible across all browsers and devices.

Confirmation

  • I have searched the existing issues and reviewed the relevant documentation as well as the API reference.
  • I am not disclosing any internal or sensitive information.

Metadata

Metadata

Type

Projects

Status
New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions