Allow blocks to be grouped as a Grid#59853
Conversation
|
Size Change: +3 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
andrewserong
left a comment
There was a problem hiding this comment.
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.
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.
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.
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.
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 <isabel_brison@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
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