Opened 8 months ago
Last modified 7 months ago
#61022 new defect (bug)
Twenty Eleven: "Follow Blog" pattern has black text on black background
Reported by: | poena | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 6.4 |
Component: | Bundled Theme | Keywords: | needs-patch |
Focuses: | Cc: |
Description
In Twenty Eleven, the custom pattern "Follow Blog" uses a cover block with a black overlay and no image.
In WordPress 6.5, this results in black text over black background, and the text is unreadable.
-I did not test the pattern on previous versions of WordPress.
Testing Instructions
With the default theme color settings:
Create a new post or page.
Open the block inserter.
Select Patterns.
From the pattern category list, select "Twenty Eleven".
Insert the pattern called "Follow Blog": You may need to focus on or hover over the pattern to find the pattern name.
Confirm that both the pattern preview, and the inserted pattern, has black text on black background.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
I experienced the same with 6.5 and 6.4, but not with 6.3 and some earlier versions. The block editor had set the block's text color to white when the pattern was added in 5.8 ([51103]). This happens on the front end and in the editor, whether the theme uses its Light or Dark color scheme.
In more recent versions, the Cover block in the pattern has an
is-light
class, even with the black overlay.I was able to assign a white text color to the Cover block in WordPress 6.5, but if that is used in the registered pattern, older versions would give the 'unexpected or invalid content' error.
Another possibility to consider is converting it to a Group block.