-
Notifications
You must be signed in to change notification settings - Fork 523
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
fix(client): make alt text on images appear in dark mode #9250
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, transparent
works, but we should better use the --background-primary
CSS variable instead to keep the behavior similar, which is white with the light theme and 90% black with the dark theme.
Co-authored-by: Claas Augner <[email protected]>
Done @caugner! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! 🙌
@caugner, my PR did not automatically merge. |
#9250 caused a regression by changing the background color of all images from white to the default background color, causing issues with images containing black elements on transparent background. This reverts the image background color to white, but sets the text color to the default text color for the dark theme to resolve the original issue with alt texts. Co-authored-by: Claas Augner <[email protected]>
Summary
Fixes #9130
Problem
The alt text of images is not visible due to the way the background color is set
Solution
I made set the background color to
transparent
for the dark theme. This will make the alt text appear in dark mode.