Skip to content

ContentDialog's Title does not have HeadingLevel automation property set #10946

@carlos-zamora

Description

@carlos-zamora

Describe the bug

The title for a content dialog should have the AutomationProperties.HeadingLevel set to something (probably Level1 for simplicity).

Why is this important?

Users who rely on screen reader will feel difficulty in analyzing the structure of the page, if visually appearing heading is not defined as heading programmatically.

WCAG Reference link:
1.3.1 Info and Relationships

Steps to reproduce the bug

  1. Open WinUI 2 Gallery > Dialogs and Flyouts > ContentDialog
  2. Click "Show dialog"
  3. Use accessibility insights to check the heading level of the title of the ContentDialog

Actual behavior

no heading level set

Expected behavior

heading level should be set

Screenshots

Image

NuGet package version

None

Windows version

No response

Additional context

Originally filed on Windows Terminal: microsoft/terminal#19686

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions