microsoft / microsoft/microsoft-ui-xaml

Expander Header not read by screen reader if it's complex

Open
#10,282 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

accessibility area-Accessibility area-Expander bug
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

A screen reader is unable to read the header of an expander if the header was set to anything other than a `TextBlock`.

### Steps to reproduce the bug

1. Create an Expander where the header is overridden as such:

```xml



First text block!
Additional text!

```

2. Use a screen reader to navigate to the expander

### Expected behavior

The screen reader should read out the header content. Instead, it reads "group, collapsed"!

### Screenshots

![Image](https://github.com/user-attachments/assets/ebb63926-96f4-4289-a29f-89805b5e0919)

### NuGet package version

WinUI 2 - Microsoft.UI.Xaml 2.8.2

### Windows version

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the provided Expander XAML and a screen reader, then trace the Expander's accessibility behavior when its header is a StackPanel rather than a TextBlock. Done means the screen reader announces the header content instead of only "group, collapsed".

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
accessibility, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.