-
Notifications
You must be signed in to change notification settings - Fork 18k
x/website: Fuzzing documentation image has transparent background, works poorly with dark mode #54954
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
Comments
An alternative might be a white background with 50% opacity, then at least you don't get a block of solid white light on dark mode. |
CC @dmitshur |
Hey would like to pick this up if possible :) |
Cameron's fix is one fine way to solve this. It makes the code readable again, at the cost of having block with white background inside a dark page. I can think of 2 other approaches that would "save" the ambiant dark background:
|
I experimented 2 ways of adding a light-tone shadow:
While these have the advantage of having a single transparent PNG that works in both light theme and dark theme, I'm still not satisfied with the readability of the dark version. See my next comment instead. |
We can achieve much better results by serving a different image for light theme (default) and dark theme. Something like
I could make a CL for this. |
Change https://go.dev/cl/454875 mentions this issue: |
The fuzzing page, https://tip.golang.org/security/fuzz/, has an image describing different components involved. It however has a transparent background, and with the page supporting dark mode, the image gets very tricky to read:

I'm not sure if having a opaque white background would be problematic, but that seems to be the easiest solution.
The text was updated successfully, but these errors were encountered: