Skip to content
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

Button Blocks are failing to resolve on web #2158

Closed
chipsnyder opened this issue Apr 15, 2020 · 1 comment
Closed

Button Blocks are failing to resolve on web #2158

chipsnyder opened this issue Apr 15, 2020 · 1 comment
Labels
[Type] Bug Something isn't working

Comments

@chipsnyder
Copy link
Contributor

chipsnyder commented Apr 15, 2020

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:

  1. Add a Button block to a post
  2. Save the post
  3. Open the same post on the web
  4. Block shows a conversion error

Expected behavior
Block should be understood by the web.

Screenshots

App HTML:
image

Web Conflict:
image

Web Resolution Suggestion:
image

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.

@chipsnyder chipsnyder added the [Type] Bug Something isn't working label Apr 15, 2020
@chipsnyder chipsnyder mentioned this issue Apr 15, 2020
6 tasks
@chipsnyder
Copy link
Contributor Author

This is a bug with using a new version of Gutenberg in-app than what was running on my test site. Closing this ticket. More info can be found here: #2153 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant