-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Classic themes: Only load classic theme button styles for themes that don't use theme.json #45063
Conversation
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.
The testing instructions check out, but I'm a bit confused about how the original PR (#44334) is intended to work.
For example, in TT (no theme.json added):
No Gutenberg | w/ Gutenberg trunk and this PR |
---|---|
Why have the button styles changed?
ef5277c
to
6a3b2e7
Compare
Great catch @jffng. I added a commit to address part of that, but I think we also need to fix it in the theme, which I did in the wordpress-develop PR here: WordPress/wordpress-develop#3481 Curious what you think of that approach. |
I meant with the theme.json but I guess that's normal, since the theme CSS will override it. It's still working in the background color so it is applying as much as the theme allows |
I tried a bunch of classic themes and the wordpress-develop PR seems to work as expected |
I'm going to hold off merging this until we see what the outcome of WordPress/wordpress-develop#3481 is |
9fad82e
to
6061e53
Compare
This PR seems to target WordPress 6.1, but the latest Gutenberg now supports WordPress 6.2 and above. Also, it looks like the backport PR to the core is already committed. Is it possible to close this PR and #48750? |
This has been patched in core so I think we can close it. |
In #44334 we added fallback styles for buttons to classic themes. This approach won't work for classic themes that use theme.json - the fallback styles should not be for all classic themes, only for those that don't opt in to theme.json.
This changes the conditions when we load this classic theme fallback - now it only loads on themes that don't have theme.json support.
Testing instructions:
- Now switch to this branch and confirm that in the editor the buttons have a yellow background:
cc @WordPress/block-themers