Skip to content

Buttons Block: "Problem displaying block" error for button blocks with custom colors or gradient backgrounds #2260

@designsimply

Description

@designsimply

Steps to reproduce:

  1. On the web, create a new post and add a buttons block.
  2. Add a button and select the outline style in block settings.
  3. Add a button and select a theme background and text color in the block settings.
  4. Add a button and select a custom background and text color in the block settings.
  5. Add a button and select a linear gradient background color in the block settings.
  6. Add a button and select a radial gradient background color in the block settings.
  7. Publish the post.
  8. In the app, open the post in the editor and check to see if the button colors are rendered.

Result: button blocks with custom colors or gradient backgrounds are not rendered in the block editor in the app and instead show a "Problem displaying block" error.

WP.com block editor WP.com block settings WPAndroid block editor
Screenshot_20200513-172749 Screenshot_20200513-172942 Screenshot_20200513-143215

Tested with WPAndroid 14.8-rc-3 on Pixel 3 Android 10 (seen in screenshots above) and with WPiOS 14.8.0.2 TestFlight beta on iPhone 11 iOS 13.4.1, both apps were tested using a WordPress.com Free site.

Note: see test cases TC016, TC017, TC018, TC019 at Buttons Block - Test Cases.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions