SpellerHighlightLayer uses hard coded spell check squiggle color
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
The [spell check underline squiggle](https://github.com/dotnet/wpf/blob/master/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerHighlightLayer.cs#L153) uses a hard coded color. This behaviour is undesirable as it can lead to accessibility problems for users with color vision deficiency and when using custom themes.
For example, when the red squiggle is displayed on a black background (if using the HC Black theme) [insufficient color contrast is predicted](https://accessibilityinsights.io/) for users with Red-Weak/Protanomaly (and Green-Weak/Deuteranomaly).
Original view

[Red-Weak/Protanomaly simulation](https://www.color-blindness.com/coblis-color-blindness-simulator/)


Ideally it would be possible to override this color from controls which support spell check.
Contributor guide
Assessment
This issue has not been assessed yet.