Skip to content

Code examples in ledger3.html show as white-on-white when the browser is configured for dark mode  #99

@Gumnos

Description

@Gumnos

I'm not sure when this started happening, and I can't find the ledger3.html source in this sub-tree, but the documentation page brings in a style.css file from gnu.org (possibly an Emacs-to-web type artifact?) where the pre.example blocks get styled with a hard-coded

background-color: #f9f6ed;

This leads to unreadable white text on this mostly-white background. It should likely be something like

background-color: var(--highlight-code-background-color);

where that --highlight-code-background-color CSS variable does get correctly/adequately set in the

@media (prefers-color-scheme: dark) {
  :root {…}

block. If I select the text, it's there and visible as shown in this screenshot of the issue:

Screenshot of the issue in question

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions