Skip to content

Dark Mode: Wrong background color for code block #1368

@newhinton

Description

@newhinton

Describe the bug

Code block uses wrong background color
Image

To Reproduce

Add code block to question while in dark mode

Expected behavior

Proper Contrast

Fix:

I used the following custom css to use a better color. In the default, it used a hardcoded light-grey.


.fmt pre {
  background-color: var(--bs-secondary-bg);
}

The fix might not apply to answers, just the question. I have not checked that yet.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Review

Relationships

None yet

Development

No branches or pull requests

Issue actions