Using role: content in blocks and why #441
Replies: 3 comments
-
|
Thanks @justintadlock for picking this up. We did have a prior issue that was closed to cover this more broadly. I just leave the links here for some background: |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for starting this. Agree this is important. There is a small amount of documentation for A new addition is there's also a It's also used for container blocks like buttons, list, social links, navigation. When parent and child blocks have the content role (using either block supports or the block attribute This is something that I think still needs dev documentation. Also related to that is the new list view block supports (Add list view tab to the buttons, list and social icons blocks](WordPress/gutenberg#74120), which shows a mini list view in a block's sidebar (which is also shown in patterns). I think that also needs dev docs! |
Beta Was this translation helpful? Give feedback.
-
|
The topic was approved. The conversation continues on the issue: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In light of the Pattern Editing experiment becoming stable, it's more important that block authors correctly use
role: contentin their blocks to let WP know when something is or is not content.It's probably also worth exploring
useBlockEditingMode()for displaying items based on the mode.This is not a well-formed topic idea just yet. Just adding a few thoughts, and maybe we can get the ball rolling.
Beta Was this translation helpful? Give feedback.
All reactions