microsoft / microsoft/microsoft-ui-xaml

TextBox's clear button not tablable and not screen reader

Open
#10,718 0 comments 0 reactions 0 assignees View on GitHub
area-Button area-TextBox bug
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

When input in the textbox the clear button appears, clicking on the button does clear the text. But the clear button is not tabable.

Even when the clear button can be referenced via styling, making the button tabable removes the visibility support and the onclick functionality.

### Steps to reproduce the bug

1. Use a textbox (or checkout WinUi Gallery's Textbox sample)
2. Input text
3. Clear button appears

### Expected behavior

When input in the textbox the clear button appears, clicking on the button does clear the text. But the clear button is not tabable.

Even when the clear button can be referenced via styling, making the button tabable removes the visibility support and the onclick functionality.

### Screenshots

https://github.com/user-attachments/assets/d1702435-a690-4efc-855d-67df18b98c30

### NuGet package version

None

### Windows version

_No response_

### Additional context

Original issue: https://github.com/microsoft/PowerToys/issues/41089

Contributor guide

Open the contributing guide

Research direction

Start with the WinUI Gallery TextBox sample and reproduce the issue using keyboard navigation and a screen reader. Then trace the TextBox clear-button behavior and its styling or control entry points. Done means the visible clear button is keyboard reachable and announced by assistive technology while preserving its visibility and click behavior.

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
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.