-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removes hardcoded body text color from some block patterns #24424
Removes hardcoded body text color from some block patterns #24424
Conversation
Size Change: +466 B (0%) Total Size: 1.16 MB
ℹ️ View Unchanged
|
Most of them worked well for me. ✅ Two columns of text For some reason, the Heading and Paragraph was showing a block error for me in both the Preview and on the page. When I attempted the block recovery, it showed the Heading, but without the proper color contrast. |
I think going forward ideally, it's better to make these fixes in Core itself or in both places. At some point once the plugin will start requiring WP 5.5 as the minimum version, we will be able to remove them entirely from the plugin. |
Hi @enriquesanchez, thanks a lot for working on this 🙇🏻 I see that @mapk already tested it quite well, but I went ahead and tried it myself, too, nevertheless. Here are my findings: The "Headings And Paragraphs" pattern shows an "invalid content" error message: After attempted recovery: The thumbnail in the inserter is also shown with the error message: This also happens with these related blocks: After attempted recovery: The other blocks changed here looks fine: I tested locally in a custom wp-env running WP and with the Rivington theme activated: I'm assuming this should be a simple thing to fix. Let me know if I can help! |
Thanks, @fullofcaffeine and @mapk for help testing! 🙌 I think I've fixed the invalid content issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corresponding Trac ticket for reference: https://core.trac.wordpress.org/ticket/50892 |
Fixes #24391
Description
Removes some hardcoded text color values from patterns that have body text with no specific background color. This ensures that it respects the themes default color for body text and avoids contrast issues, particularly in dark themes.
Screenshots
Two columns of text
Two columns of text with images
Text three columns and buttons
Heading and a paragraph
Types of changes
Visual changes to block patterns.