• Resolved Taras Dashkevych

    (@taskotr)


    Hi Rich,

    I have a quick question regarding to the structure of some blocks.

    I am currently using Gutenberg 4.1.1 and I’ve noticed that structure of some blocks that come with Block Unit Test for Gutenberg are different compared to the Gutenberg blocks.

    For example, let’s take the Pull Quote block.

    Gutenberg output:

    
    <figure class="wp-block-pullquote alignright is-style-default" style="border-color:#048448">
    <blockquote class="has-text-color has-red-color">
    <p>Gutenberg includes a default color palette WordPress theme to provide a more suitable palette to empower users. So here’s how.</p>
    <cite>gutenberg</cite>
    </blockquote>
    </figure>
    

    Block Unit Test for Gutenberg (v1.0.5) output:

    
    <blockquote class="wp-block-pullquote alignleft">
    <p>Here we have a left-aligned pullquote.</p>
    <cite>Rich Tabor</cite>
    </blockquote>
    

    Any ideas why it happens?

    Thank you,
    Taras

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rich Tabor

    (@richtabor)

    Hey @taskotr,

    When markup changes within core blocks, Block Unit Test needs to be updated as well. If you find an issue where a unit test block is broken (likely due to changes in markup) please feel free to open an issue on the GitHub repo.

    I do my best to catch them all, but Gutenberg’s moving’ fast!

    Thread Starter Taras Dashkevych

    (@taskotr)

    Got it. Thanks for the reply, Rich!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTML Structure of some blocks’ is closed to new replies.