-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
```diff highlighting colors are really low contrast #16029
Comments
|
I'm sorry, but if my color math is correct, that's close to magenta and bright cyan, neither of which I think make that much sense. Are those supposed to be the light mode colors or the dark mode colors? Feel free to correct my math, but... I don't see that working "better" per se |
Now that i look at it again, element doesn't seem to use any of those themes I linked.
You are very correct. For some reason the dark theme does something weird where it inverts the color and shows that. Chrome
It's like someone swapped the addition and removal colors to 'fix' the invert, turqoise and purple were close enough given the low cotrast. |
Seems like a visual bug, I'd suggest a PR if you see a clear way to fix it. |
Fixed by matrix-org/matrix-react-sdk#6320 |
@justin-sleep Already a PR for that, too: matrix-org/matrix-react-sdk#6355 |
Description
Using this syntax in an element message:
results in:
The problem here is that the + and - green and red colors in element are really low constrast compared to the background.
I think it looks particularly hard to see in the dark theme (note, you might want to see this image surrounded by dark backgrounds):
Note how it's not even green and red, but turqoise and purple.
@TeknikalDomain thinks it looks even more unreadable on the light theme (I say it's bearable):
I narrowed down the offending css to https://github.com/highlightjs/highlight.js/search?q=background%3A+%23dfd%3B
But I didn't want to get into making pull requests there, no idea which theme we're actually using for element.
I would do something like:
This is easy to test with the
Inspect
tool in Chrome.Version information
For the web app:
The text was updated successfully, but these errors were encountered: