Opened 4 years ago
Last modified 4 months ago
#53094 new defect (bug)
Twenty Twenty-One: Dark mode issue with cover block colors
Reported by: | kpdaa | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 5.7.1 |
Component: | Bundled Theme | Keywords: | has-screenshots needs-patch |
Focuses: | css | Cc: |
Description
Dear team, I had chosen cover block from block editor, selected background color as cover color, select border for the cover block, add heading. Now, when I see this page in dark mode, the cover block is not converting the dark background. kindly try et your en[alakh.co.in]d see
Attachments (5)
Change History (14)
#1
@
4 years ago
- Summary changed from dark mode issue in twenty twenty one theme to Twenty Twenty-One: Dark mode issue
#3
@
3 years ago
- Focuses css added
- Keywords has-patch added
- Milestone changed from Awaiting Review to 6.0
Thanks for the report!
This can happen with light background colors—when no image is selected—for a Cover block. As seen on #54715, this occurs with the sample content.
For consideration, the patch sets the light background overlay to a very low opacity so it still has a hint of the intended color.
#5
@
3 years ago
I followed reproduction steps in comment 2 precisely except for _not_ using an image. The first screenshot shows what happens before applying the patch, and the second screenshot shows the change after applying the latest patch.
@sabernhardt Is this what you were expecting?
#6
@
3 years ago
- Keywords has-patch removed
That looks the way I expected it without the background image. However, I apparently failed to test the patch with an image to discover that it can affect those blocks, too. Cover blocks are meant to have an image or video (otherwise a Group block could be more appropriate), so it would need stricter matching to avoid changing the block when used as intended.
Hello @kpdaa,
I've tried reproducing your issue but can not.
Here's my setup information:
WordPress version: 5.8-alpha-50427-src)
Are all plugins deactivated
Operating system: macOS Big Sur 11.1
Browser: Firefox Developer Edition 89.0b3
Here are the steps I followed:
Screen record: https://cln.sh/TJEDZG