Community
Participate
Working Groups
Created attachment 266749 [details] blue-on-blue.png The blue string text (foreground) with a light blue selection (background) is hard to see. See the attached screen snap. Here's the 2 colors as seen in a color contrast ratio tool: http://leaverou.github.io/contrast-ratio/#rgb%2868%2C111%2C189%29-on-rgb%28180%2C213%2C255%29 (use up/down arrow keys in this tool to find a passing contrast ratio). The colors are in editorTheme.css: .editorTheme .string { color: #446FBD; /* rgb(68,111,189) */ } .editorTheme .textviewContent ::selection { background-color: #b4d5ff; /* rgb(180,213,255) */ } (also in textstyler.css: .string { color: #446fbd; })
If we change the foreground color (i.e. the color of a string) as follows, then the contrast passes WCAG AA. Please tell me what you think: http://leaverou.github.io/contrast-ratio/#rgb%2851%2C78%2C206%29-on-rgb%28180%2C213%2C255%29
Created attachment 266750 [details] new-blue-on-blue.png Screen snap of selected string with new string color.
I guess the second one seems better but they look almost the same. Ship it and lets see.
Noticed other syntax colors that didn't have enough contrast when selected: - comment (light forest green on light blue) - function name (light turquoise on light blue) - control keywords like for, while, return (light orange on light blue) - task keywords like TODO (blue on light blue) - doc annotations like @private (light grey on light blue) - punctuation operators like +, -, ||, = (light pink on light blue) - parameter names (light pink on light blue) - html attribute names (light gray on light blue) - html tags (light orange on light blue) Changed these to the closest color that passes the 4.5:1 test.
Fixed with http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=d79b249d77d4a7cf01c92f0c2590fdfae85ce57a