arXiv / html_feedback

Supports a student project developing a UI for feedback on arXiv articles rendered as html.
MIT License
17 stars 3 forks source link

White text on white background in dark mode #1471

Open scottclowe opened 3 months ago

scottclowe commented 3 months ago

Description

As part of a "heatmap table", coded in LaTeX, the table cell background has been set to a range of colours near white in LaTeX. In dark mode, arXiv's HTML render sets the background colour to dark-grey and font colour to be white throughout the document. Since the background colour was manually set of these cells, the background colour values from the LaTeX are shown, but the font colour was not explicitly set so dark-mode's default of white is used, resulting on white text on a white background.

I suggest that the HTML dark mode should only set the font colour on contents which use dark mode's background colour, and on content where a background colour has been set it should use a black font colour if unset.

(Optional:) Please add any files, screenshots, or other information here.

image

(Required) What is this issue most closely related to? Select one.

Other

Internal issue ID

c8d313a0-6c0b-4ac0-86fe-326cfec64b7d

Paper URL

https://arxiv.org/html/2406.02465v1

Browser

Firefox/126.0

Device Type

Desktop

github-actions[bot] commented 3 months ago

Hello @scottclowe, thanks for the issue report! We are reviewing your report and will address it as soon as possible.