You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug symfony#59334 [ErrorHandler] [A11y] Simple proposal for color updates on error stack traces against colorblindness (DocFX)
This PR was submitted for the 7.3 branch but it was merged into the 6.4 branch instead.
Discussion
----------
[ErrorHandler] [A11y] Simple proposal for color updates on error stack traces against colorblindness
| Q | A
| ------------- | ---
| Branch? | 7.3
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | N/A
| License | MIT
Hi!
I'm colorblind, slightly. I know it can be a real headache to try colors that can match all colorblindnesses, it's a nightmare, as a lot of them are opposed and as some fixes can actually make things worse for other people.
I just open this with a very small changeset in colors for stack traces. The rest of the debug pages seem OK to me (profiler, tables, etc.). But currently I'm really struggling to read the highlighted lines and the dark red PHP syntax highlighting for native identifiers.
I only changed those colors, trying to make it better.
Feel free to discuss better proposals, like using the WebAIM WCAG 2.0 checker ([https://webaim.org/resources/contrastchecker/](https://webaim.org/resources/contrastchecker/)).
Background to red text: https://webaim.org/resources/contrastchecker/?fcolor=FF7B72&bcolor=2E3136
Highlight to PHP identifiers will fail, but it's almost impossible without changing all colors. 1.94/1 is still acceptable as most characters are non-word: https://webaim.org/resources/contrastchecker/?fcolor=71663ACC&bcolor=FF7B72
If anyone thinks we can come up with better proposals, there you go!
At least this fixes it for me and non-colorblind people around me seem to find it still readable, if not better, too. :)
Commits
-------
d01b302 Update exception.css
0 commit comments