microsoft / microsoft/microsoft-ui-xaml
Expander Header not read by screen reader if it's complex
Nobody has claimed this yet.
- 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

### NuGet package version
WinUI 2 - Microsoft.UI.Xaml 2.8.2
### Windows version
_No response_
### Additional context
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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