-
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 filter out typography variations where the heading and body fonts are the same #61327
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: -45 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
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.
LGTM
21b862d
to
d9c547d
Compare
Update packages/edit-site/src/components/global-styles/style-variations-container.js Co-authored-by: Andrei Draganescu <[email protected]> Update packages/edit-site/src/components/global-styles/style-variations-container.js Co-authored-by: Andrei Draganescu <[email protected]> update function name remove variations which are empty once the property has been filtered out move to a reduce function remove duplicate values Global Styles: Don't filter out variations where the heading and body fonts are the sane
d9c547d
to
e13b192
Compare
Flaky tests detected in f8ce6a6. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9191548100
|
…61327) Update packages/edit-site/src/components/global-styles/style-variations-container.js Co-authored-by: Andrei Draganescu <[email protected]> Update packages/edit-site/src/components/global-styles/style-variations-container.js Co-authored-by: Andrei Draganescu <[email protected]> update function name remove variations which are empty once the property has been filtered out move to a reduce function remove duplicate values Global Styles: Don't filter out variations where the heading and body fonts are the sane Co-authored-by: scruffian <[email protected]> Co-authored-by: richtabor <[email protected]>
…61327) Update packages/edit-site/src/components/global-styles/style-variations-container.js Co-authored-by: Andrei Draganescu <[email protected]> Update packages/edit-site/src/components/global-styles/style-variations-container.js Co-authored-by: Andrei Draganescu <[email protected]> update function name remove variations which are empty once the property has been filtered out move to a reduce function remove duplicate values Global Styles: Don't filter out variations where the heading and body fonts are the sane Co-authored-by: scruffian <[email protected]> Co-authored-by: richtabor <[email protected]>
What?
When we show typography variations in Global Styles > Typography we remove variations where the heading and body fonts are the same.
Why?
This was done originally because we were showing the names of the heading and body font families. We no longer do this so I don't think it makes sense to remove variations where the body and heading fonts are the same, as these could still be interesting variations.
How?
Removes the code that filters out heading and body font families and replaces it with the same checks we use for color variations - this just filters out variations which have no styles and settings keys.
Testing Instructions
Screenshots or screencast