-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix Text Color Issue in Table Block in TT1 Theme #8058
base: trunk
Are you sure you want to change the base?
Fix Text Color Issue in Table Block in TT1 Theme #8058
Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
700b306
to
923bc34
Compare
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN:
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Thanks for the PR! This PR works as expected, but I'm wondering why the following style even exists in the first place: table,
.wp-block-table {
&.is-style-regular .has-background,
&.is-style-stripes .has-background,
&.is-style-stripes .has-background thead tr,
&.is-style-stripes .has-background tfoot tr,
&.is-style-stripes .has-background tbody tr {
color: var(--table--has-background-text-color);
}
} Because the following two CSS variables both point to
My guess is that removing this style entirely would be the ideal approach. Perhaps this style was needed when the Table block didn't support color. cc @WordPress/block-themers For additional feedback |
Twenty Twenty-One is not a block theme. |
Please remember that the bundled themes, according to instructions from Matt, must be backwards compatible, |
I understand this of course. This style was added in this commit. According to the commit message, this style was added to solve an issue with dark mode. But there is a similar style here, so it looks fine as far as I've tested. Will there be any backward compatibility issues?
What is "instructions from Matt"? Why is Matt's name being mentioned here? I'm a little confused. |
I wrote that Twenty Twenty-One is not a block theme because you pinged the block theme group. Ideally for us as developers, we would only need to support the latest or two latest versions of WordPress. Then all the bundled themes could be refactored to new standards and a large portion of the CSS could be removed. |
Sorry, I mistakenly thought this group included all the default theme developers.
I strongly agree with this. I know this is not something we should discuss here, but for example, Twenty Twenty-One supports WP version 5.6 and up. Twenty Ten, surprisingly, supports WordPress version 3.0 and up. When trying to fix a bug in bundled themes, it seems nearly impossible to test and ensure that it works on all supported WordPress versions. I have little experience updating bundled themes, but I'm interested to see how you deal with issues like this. |
It is difficult, especially when trying to test on versions that require PHP 5.x 😰 |
Trac Ticket: https://core.trac.wordpress.org/ticket/58608