-
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
Quote Block: Add align support #64188
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. |
Mobile unit tests are failing, so I'm trying to investigate why 👀 |
dbc29a2
to
52452f7
Compare
Size Change: +9 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
@geriux @dcalhoun I'm trying to add wide support to quote blocks, and I've made two changes to fix the mobile unit test failures. I'd be grateful if you could confirm that these changes are OK 🙇♂️
You can see these error messages in the following log: https://github.com/WordPress/gutenberg/actions/runs/10212071395/job/28255325475 |
I'll take a look now |
I've just tested these changes and they are working as expected, the new align options are working for the mobile editor as well. The code changes look good to me, thanks for the ping! 🚀 |
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.
Looking pretty good!
✅ Align left/right applies to the block and appears in the document flow as I'd expect
✅ The alignment of Pullquote blocks persists between transforms
Here's me messing around with block conversions:
2024-08-14.14.37.40.mp4
I haven't tested in native yet - my computer is complaining about dependencies...
I don't see any errors in IOS, though it's hard to test on the small screen. But it looks like controls appear okay. 2024-08-14.15.21.22.mp4Also on iPad testing the pullquote > quote transform 2024-08-14.15.33.15.mp4 |
Thank you for your reviews! As a follow-up to this PR, I plan to add layout support to this block. After that follow-up is complete, I will reconsider deprecating the Pullquote block in #11610. |
Part of #43248
Related to #11610
What?
This PR adds the
align
support to the Quote block.Why?
In #11610, it is suggested that the Pullquote block may be deprecated. If the Pullquote block is deprecated, the Quote block must support as many of the same features as possible. The most important feature that the Quote block is missing is
align
support.How?
Simply added algin support.
Currently, this block does not support layout, so the content width will be the full width of the block. As a follow-up, I'm considering adding layout support to this block as well, as in #45326.
Testing Instructions
Screenshots or screencast