Skip to content

Commit 90c868e

Browse files
OnkarRuikarcaugner
andauthored
fix(images): use dark text on white background (#9863)
#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]>
1 parent 0076cdd commit 90c868e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: client/src/document/index.scss

+4-1
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,12 @@
8383
}
8484

8585
img {
86-
background: var(--background-primary);
86+
/* In dark mode, required for images with black text on transparent background. */
87+
background: #fff;
8788
border: 1px solid var(--border-primary) !important;
8889
border-radius: var(--elem-radius);
90+
/* Required for alt texts. */
91+
color: #1b1b1b;
8992
display: inline-block;
9093
display: flex;
9194
height: auto;

0 commit comments

Comments
 (0)