-
Notifications
You must be signed in to change notification settings - Fork 57
Button Blocks are failing to resolve on web #2158
Copy link
Copy link
Closed
Labels
[Type] BugSomething isn't workingSomething isn't working
Description
Describe the bug
When adding a button block to the app and opening on the web the block displays the error "This block contains unexpected or invalid content."
Following the blocks suggested resolution strategy turns it into a paragraph block.
Failing example
<!-- wp:button {"className":"wp-block-button__link"} -->
<a class="wp-block-button wp-block-button__link">Button 1</a>
<!-- /wp:button -->
Successful example
<!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link"></a></div>
<!-- /wp:button -->
The issue appears to be related to {"className":"wp-block-button__link"}
To Reproduce
Steps to reproduce the behavior:
- Add a Button block to a post
- Save the post
- Open the same post on the web
- Block shows a conversion error
Expected behavior
Block should be understood by the web.
Screenshots
Smartphone (please complete the following information):
- Device: Android Pixel 3a
- OS: Android X
- Version: 29
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Type] BugSomething isn't workingSomething isn't working


