-
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
Global Styles: Don't apply the background and text colors to typography previews #62578
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: +31 B (0%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
Flaky tests detected in edba2df. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9515643420
|
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.
This is testing well for me. Good work! 👍
…hy previews (WordPress#62578) Co-authored-by: scruffian <[email protected]> Co-authored-by: ajlende <[email protected]> Co-authored-by: hbhalodia <[email protected]> Co-authored-by: draganescu <[email protected]> Co-authored-by: richtabor <[email protected]>
…hy previews (#62578) Co-authored-by: scruffian <[email protected]> Co-authored-by: ajlende <[email protected]> Co-authored-by: hbhalodia <[email protected]> Co-authored-by: draganescu <[email protected]> Co-authored-by: richtabor <[email protected]>
I just cherry-picked this PR to the wp/6.6-beta-3 branch to get it included in the next release: 0cc07d4 |
…hy previews (#62578) Co-authored-by: scruffian <[email protected]> Co-authored-by: ajlende <[email protected]> Co-authored-by: hbhalodia <[email protected]> Co-authored-by: draganescu <[email protected]> Co-authored-by: richtabor <[email protected]>
What?
Fix #61217. Alternative to #61898.
Removes all style rules from color and typography variation previews, except the for the property that is in the preset.
Why?
The typography presets only change typography styles so it makes sense to keep these preview clear of any other settings.
How?
Pass the property that we are previewing to the variation component as a prop. If present we use this prop to filter out only this style so it can be used in the preview.
Testing Instructions
Testing Instructions for Keyboard
This is a visual change.
Screenshots or screencast