Skip to content

sap.m.Dialog title renders role="heading" without aria-level, failing WCAG 1.3.1 #4428

@boydlaw80-byte

Description

@boydlaw80-byte

What is the issue and how can we reproduce it?

sap.m.Dialog renders its title property internally as a element without an aria-level attribute. This is flagged by accessibility scanners (e.g. Axe, WAVE) as a violation of WCAG 1.3.1 (Info and Relationships) since headings must have a defined level to convey structure to screen reader users.

Steps to reproduce:

Create a sap.m.Dialog with a title property set
Open the dialog in the browser
Inspect the DOM — the title renders as with no aria-level
Run an accessibility scan (Axe or WAVE) — it reports "No heading level defined"
Expected: The dialog title includes aria-level="2" (or a titleLevel property is exposed so developers can control it, similar to sap.m.Panel and sap.m.Page)

Actual: is rendered without aria-level

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

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions