-
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
Buttons that don't have .wp-element-button
class have wrong text color
#45213
Comments
@mikachan Flagging for you - should this be moved to the TT3 repo? |
I've intentionally posted this issue here as I think this is a general issue spanning multiple themes or will become a bigger issue if people switch from classic themes to block themes in the future. |
The theme test data has not been updated to use the current block markup. |
I linked this, because it sounds very similar. In that report the unintended outcome is for link text (plain I think the CSS selector |
I'm trying to understand the Button block a bit better. Which is the rationale behind having both In theme.json we can target the core/button block via |
Description
I was currently testing Twenty Twenty-Three with the
Pilgrimage
style variation and imported the official Theme Unit Test data into my installation. Looking at theBlock: Button
post, I noticed this behaviour of the buttons:The text color of the button is the same as the default link color, combined with the button gradient it's almost unreadable. Here's what happens in the CSS:
I've found this issue: #42616 and the related PR: #42669, which update the code to the
a:where(:not(.wp-element-button))
. However this doesn't take into account that there's lots of buttons in already existing content out there that don't have the.wp-element-button
class assigned, as this one got introduced in May this year (#40260). Using a newer block theme will in the worst case, make the buttons not usable until the post gets saved one more time, when the.wp-element-button
class is added to the button blocks.I think the following issue relates in some form to this: #44166
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: