Reusable block: Handle empty content case #32058
Labels
[Block] Block
The "Reusable Block" Block
Mobile App - i.e. Android or iOS
Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
[Type] Bug
An existing feature does not function as intended
Description
Reusable blocks with empty content are not displayed properly.
Design proposed
@iamthomasbishop proposed a solution for this case in this comment, the idea is to use the
Warning
component when the block is selected but render an outlined empty box when is unselected.Step-by-step reproduction instructions
https://<YOUR_SITE>.wordpress.com/wp-admin/post-new.php?post_type=wp_block
Expected behaviour
Empty reusable blocks should show a placeholder telling the user that there's no content.
Actual behaviour
Empty reusable blocks are displaying an empty paragraph that is editable.
Screenshots or screen recording (optional)
reusable-block-empty.mp4
reusable-block-insert-empty.mp4
WordPress information
Device information
rnmobile/add/reusable-block-capability
The text was updated successfully, but these errors were encountered: