-
Notifications
You must be signed in to change notification settings - Fork 43
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
Update Column Block styles for WordPress 5.9. #1020
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.
I can still see some significant differences between 5.9 and 5.8, here's what I've identified:
EDIT: The screenshots below are from an instance with Gutenberg's current trunk and do not reflect the current release on 5.9 RC2.
I'm not seeing the same thing as @miguelpeixe. I found it difficult to compare apples to apples with two different sets of content, so what I did was to paste both sets of content into a single post on both 5.8 and 5.9 sites. With both sites using the same content, it's easier to see that the styles match well across both WP versions. The main differences I see are:
@miguelpeixe can you review these two test sites and let us know what you see? |
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.
I'm sorry about that! I was not on 5.9 RC2's Gutenberg. I now can confirm that the columns are behaving as expected!
Thank you @miguelpeixe and @dkoo! 🙌 |
🎉 This PR is included in version 1.45.0-alpha.6 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [1.45.0](v1.44.1...v1.45.0) (2022-01-19) ### Bug Fixes * add Author List block to manifest of blocks to build in production ([#1011](#1011)) ([abd5b7c](abd5b7c)) * add simplified CSS class to carousel to reduce style size ([#983](#983)) ([f8b1b0a](f8b1b0a)) * **author-list:** user query when CAP is not installed ([#1015](#1015)) ([e798d9b](e798d9b)) * force alpha rebuild ([1e55132](1e55132)) * lint errors ([#1010](#1010)) ([c50a1f5](c50a1f5)) * re-add space between stacked columns ([#1022](#1022)) ([d560199](d560199)) * update columns styles for WordPress 5.9 ([#1020](#1020)) ([a38ce32](a38ce32)) * update Subscribe patterns for WordPress 5.9 ([#1017](#1017)) ([5cef283](5cef283)) ### Features * author list block ([#947](#947)) ([b98b8b8](b98b8b8)) * **donate-stripe:** hide fee checkbox if fees are zero ([#985](#985)) ([04e7892](04e7892))
All Submissions:
Changes proposed in this Pull Request:
In the Newspack Blocks suite, we have some column block styles that:
Changes coming in WP 5.9 to add the option to not wrap columns on mobile have overridden some of our own styles. This PR hopefully sorts them out and gets them working again, without causing issues in 5.8.
Closes #1018 and #1019
How to test the changes in this Pull Request:
This will be easiest to test if you can work with two test sites and compare them: one running WordPress 5.8.X, and the other running the 5.9 RC.
npm run build
.npm run build
- it updates a couple styles in the theme: Update Column Block styles for WordPress 5.9. newspack-theme#1670Here are some examples of how things should look:
WordPress 5.9
Regular columns:
"Don't stack on mobile" setting (the first column doesn't have this checked, and the second one does)
Reordered blocks:
Columns blocks with borders:
WordPress 5.8
Regular columns:
Reordered columns:
Columns with borders:
Other information: