-
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
Global Styles: Don't display browse styles unless the theme has full styles available #63083
Conversation
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -19 B (0%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
0d22ec6
to
fa7a474
Compare
Good catch. Fixed in fa7a474 |
Flaky tests detected in fa7a474. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9805784307
|
With the addition of #63173, I wonder if this is still necessary. Perhaps just removing the default style variation within will be fine instead. |
I agree with @richtabor, per his scresnshot, because as a result of this PR, the entire Styles panel goes away: |
Replaced by #63555 |
What?
This removes the "Browse Styles" option from Global Styles when there are no full theme styles available.
Why?
Without this bug fix the browse styles area still appears but is empty.
How?
Create a new hook that gets all of the theme variations and then filters out the color and typography only variations.
Testing Instructions
Screenshots or screencast