-
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
Update block design principles with a new section on how to group controls #29816
Conversation
…trols This takes a first stab at creating new documentation for block toolbar group best practices. See also #25983.
💯 So fast! Thank you Ari! |
Awesome, this is a great example of what we need to codify more, thanks! |
@@ -15,6 +15,12 @@ Since the block itself represents what will actually appear on the site, interac | |||
|
|||
Basic block settings won’t always make sense in the context of the placeholder/content UI. As a secondary option, options that are critical to the functionality of a block can live in the block toolbar. The Block Toolbar is still highly contextual and visible on all screen sizes. One notable constraint with the Block Toolbar is that it is icon-based UI, so any controls that live in the Block Toolbar need to be ones that can effectively be communicated via an icon or icon group. | |||
|
|||
### Group Block Toolbar controls with related items | |||
|
|||
The Block Toolbar groups controls in segments, hierarchically. The first segment contains block controls, such as the block switcher, the drag handle, and the mover control. The second group commonly contains tools, followed by inline formatting, and the "More" menu. Optionally "Meta" or "Other" groups can separate some tools in their own segment. |
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.
Some suggestions:
The first segment contains block type controls, such as the block switcher, the drag handle, and the mover control. The second group contains common and specific block tools that affect the entire block, followed by inline...
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.
Perfect 👌
Size Change: 0 B Total Size: 1.4 MB ℹ️ View Unchanged
|
Could we link each of the hierarchy names (Block, Tools, Meta, etc.) to the exact values that one should pass to |
Description
This takes a first stab at creating new documentation for block toolbar group best practices.
See also #25983.
Screenshots
There's also a new "Do and don't" section for the block toolbar:
I also updated the placeholder screenshot while I was there:
The rest of the screenshots also need updating, but one step at a time.