When inserting an Image block in Gutenberg and setting it to align wide or align full, the above rule limits the image width to 100%, relative to the normal content width, negating the purpose of align-wide and align-full.
There are two issues with this rule.
The image block’s class attribute is usually something like class="wp-block-image alignfull ..."
So the class attribute doesn’t start with “align” but contains it anywhere in the space separated list of classes. The ^= pattern doesn’t catch this correctly.
Instead, the rule should use something like [class*="align"], or even more specific :not(.alignwide,.alignfull)
The second selector of the rule is missing the align-exclusion completely.
It should read something like .wp-block-image:not(.wp-block-gallery .wp-block-image):not(.alignwide,.alignfull)
Dear team,
this issue still exists in Bricks 2.3.6.
I wonder why this takes so long to fix even though I’ve provided the necessary changes.
It’s quite unfortunate that I have to override those rules in all my Bricks projects to restore basic Gutenberg functionality.