Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-5999

The classname of Image blocks is fixed to `caption-style-medium caption-alignment-center` and can’t be changed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Should have Should have
    • None
    • None
    • 5
    • Media Library

      Reported by stduerre:

      The classname of Image blocks (within the Advanced menu in the Sidebar) is fixed to `caption-style-medium caption-alignment-center` and can’t be changed.

      The way the image style is implemented is overriding the component prop, so it's impossible to change the values. We'll need to come up with a different implementation.

      See:
      https://github.com/greenpeace/planet4-plugin-gutenberg-blocks/blob/master/assets/src/ImageBlockExtension.js#L78-L88

            Unassigned Unassigned
            pcuadrad Pablo Cuadrado (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: