#51985 closed defect (bug) (fixed)
Twenty Twenty-One: Dark Mode and code blocks
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.6.1 | Priority: | normal |
Severity: | normal | Version: | 5.6 |
Component: | Bundled Theme | Keywords: | has-screenshots, good-first-bug, needs-testing, has-patch, fixed-major, twenty-twenty-one-1.1 |
Focuses: | Cc: |
Description
I've installed the 2021 that comes with WP 5.6.
Activated the Dark Mode.
One of my blog posts has a code snippet, which was added to the post using the default code
block inside the Gutenberg editor.
See attached how the code looks in the Dark Mode.
Attachments (5)
Change History (19)
#2
@
4 years ago
No, just the default editor in WordPress 5.6 itself.
The post was initially created using WP 5.5 and its default Gutenberg editor.
#3
@
4 years ago
Hi!
There is an issue in below Gutenberg CSS - https://github.com/WordPress/WordPress/blob/master/wp-includes/css/dist/block-library/theme.css#L79
.wp-block-code { color: #1e1e1e; }
#4
@
4 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 5.6.1
Thanks for the report!
I am also able to reproduce with a bare bones fresh install. Moving to 5.6.1 to get this fixed.
#6
@
4 years ago
I am able to reproduce this on the front both with dark mode enabled,
and with dark mode disabled but with a dark body background color selected in the Customizer.
In the editor the text color is correct.
This ticket was mentioned in Slack in #core-themes by poena. View the logs.
4 years ago
#11
@
4 years ago
- Owner set to desrosj
- Resolution set to fixed
- Status changed from new to closed
In 49825:
Hi!
Thank you for reporting this.
May I ask if you also have the Gutenberg plugin installed and in that case, which version?