dotnet / dotnet/wpf

TextBlock in Checked ToggleButton is illegible

Open
#11,407 0 comments 0 reactions 0 assignees View on GitHub
Investigate Win 11 Theming
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

When using the light or dark fluent theme, a TextBlock in a checked ToggleButton is very hard to read as the foreground doesn't change. If you use plain text it does work as expected.

### Reproduction Steps

```


Foo


Foo

```

### Expected behavior

Both buttons look the same. For my particular settings that means blue background, white foreground.

### Actual behavior

Both buttons look different. For my particular settings that means:
* Top button: blue background / black foreground -> hard to read
* Bottom button: blue background / white foreground

### Regression?

The top button isn't hard to read in Aero2.

### Known Workarounds

_No response_

### Impact

_No response_

### Configuration

.NET 10
Windows 11

### Other information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.