Repository navigation
Conversation
🤖 PR meta 🤖🎉 PropsIf 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. Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: -7 B (0%) Total Size: 8.25 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. should cut and paste individual blocks with collapsed selection in
|
|
I sympathize with the want of shortening the toolbar, and I think that that's an admirable goal that we should strive towards. I'm just not sure how I feel about the actual implementation detail of this. Yes, technically speaking, you can use the alignment controls of a group block to control its inner children. However, the way that it's currently working today, where you have to manually opt out of the inner block alignment, is just too difficult for most regular users to grasp. It's more of a power feature to understand the concept of group layout controls, and I'm worried that if we go this direction, it's really going to make this much more difficult for users. I personally would prefer us to keep all of the options there somehow exposed (even if we make them more hidden in the UI), but allow the alignment controls to still be present on every single block, including the paragraph block. |
|
Moving over a comment I posted on the wrong PR! 🙈 Incidentally that also responds to your feedback, Fabian: If we wanted to keep the block alignment as an option, it could be an option that lived in the Layout panel for all blocks. Whether we show it by default, or have you add it via the ToolsPanel, we can discuss, and here's a mockup:
Noting that the dropdown could be a ToggleGroupControl (segmented control) instead, but if we did that, we'd miss out on the ability to, in the dropdown, show help text for unavailable widths. |
|
Hmmm....One thing that for me feels consistent well kind of anyway (perhaps just a wish). Is having the alignment icon in the toolbar for all blocks where it is needed. Also for blocks that have to do with text having text alignments. As the toolbar is the most obvious place for the options that are most needed or used. Customers can add blocks but adding Group blocks and then inner blocks that is one more step which becomes too advanced for many customers. Moving alignments to the sidebar they become more hidden and not so easily seen. Btw the alignment through Group block and the toggle for alignment in the sidebar....I still find that confusing. |
|
Opened #83955 as an alternative to this. |
41a7821 to
142dcfe
Compare
|
Even if we remove a single button from the Paragraph block's toolbar, we will likely encounter the same issue again soon. The toolbar can be easily extended by plugins. In any case, block supports should not be removed from the Paragraph block. These supports have already changed many times in the past.
|
|
I appreciate the looks. @youknowriad gave a similar opinion here. I think it's important we have explored this territory, just so we're knowingly moving forward. In that sense, I think I'll close both of these. What do you think of #83265, though? Still worth keeping? |
|
I think #83265 is still worth keeping, as it simply hid unavailable options rather than disabling alignment block support itself. |

What?
Followup to #83265 and related to this chat. It effectively reverts #73958 and removes the block alignment option from the Paragraph block.
Before:
After:
I realise this will be controversial, so let me get the basics out of the way: the back compat will be there through existing CSS classes, and the motivation is a simpler and more glanceable toolbar, with the implication: if you want wide or full-wide blocks, group them and align the group.
Why?
An option is to close this one. But I've opened this to have a discussion around block toolbar length, specifically because of this chat which very reasonably points out that the toolbar can't keep growing endlessly. We have to have plans and systems for when we add something to it. This is especially pertinent since it's being considered adding both a Trash button, and a "add note" button to the toolbar:
We are bursting at the seams and are reaching a crossroads. It seems we have to decide, what is it for? Until we do, we don't have a good system for deciding what goes there, vs. what doesn't.
Options
It seems we can go two ways: either allow every relevant option possible right in the toolbar, and build a system that allows it to scale to narrow contexts, including mobile. This will likely require some form of eliding buttons or even segments into the ellipsis menu as the viewport grow narrower.
Or, decide that the block toolbar is a curation mechanism. Put every genuinely useful button there and optimise the design for it, but be judicius in what is considered genuinely useful. The precise specs for what we deem "genuinely useful" is part of the discussion we should have. But crucially: it can't be everything. We draw a line in the sand.
Part of drawing that line could be to make more, or all of the block toolbar options available in the inspector in addition to the block toolbar. There's a related discussion here. If block alignments, for example, were globally available in the block toolbar, we could be intentional and suggest only group blocks get those on the block toolbar. The heuristic could be fairly simple: groups get layout tools, text blocks (Paragraph, Heading, List, Quote) get primarily inline formatting tools.
Use of AI Tools
Opus 5.