dotnet / dotnet/wpf

SpellerHighlightLayer uses hard coded spell check squiggle color

Open
#1,519 2 comments 6 reactions 1 assignee Claimed by @anjaligupta-dev View on GitHub
Accessibility Feature Request
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
![Capture](https://user-images.githubusercontent.com/14054078/62410535-bd9c1200-b5de-11e9-9403-ec0c4f15931a.PNG)

[Red-Weak/Protanomaly simulation](https://www.color-blindness.com/coblis-color-blindness-simulator/)
![redweak](https://user-images.githubusercontent.com/14054078/62410538-c0970280-b5de-11e9-9fc4-27bed00d84ee.PNG)
![redweakmax](https://user-images.githubusercontent.com/14054078/62410656-8b8baf80-b5e0-11e9-83bc-e100dd6b68f9.PNG)

Ideally it would be possible to override this color from controls which support spell check.

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.