-
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
Allow blocks to be grouped as a Grid #59853
Conversation
Size Change: +3 B (0%) Total Size: 1.71 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.
Nice simple PR 👍
2024-03-14.15.27.01.mp4
This feels really good to use to me, especially when paired with the on canvas grid interactions, this feels like it's going to unlock some powerful flows 🎉
LGTM! ✨
{ canInsertGrid && ( | ||
<ToolbarButton | ||
icon={ grid } | ||
label={ _x( 'Grid', 'verb' ) } |
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 was a TIL for me, I didn't realise that grid could be used as a verb: https://en.wiktionary.org/wiki/grid#Verb. Nice!
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 wondered if the use here is clear enough? But the alternative would be a verbose or potentially confusing description like "configurable rows and columns". I guess ultimately what matters is if the meaning is sufficiently clear to translators; grid as a verb is unlikely to exist in every language.
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 think it's probably fine for now, particularly since it'd be an easy thing to update. I suppose another option would be to use __( 'Grid' )
with no explanatory comment, to default to a noun 🤔
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'll leave it as is for now.
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. |
Thank you |
Co-authored-by: tellthemachines <[email protected]> Co-authored-by: andrewserong <[email protected]>
What?
Another step towards #57478.
Allows a selection of multiple blocks to be grouped as a Grid.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
grid.mov